⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 system.java

📁 goolge phone 目前没有开放的android 平台的源码
💻 JAVA
字号:
// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   System.java

package android.speech.recognition.impl;

import java.lang.ref.WeakReference;
import java.util.Enumeration;
import java.util.Vector;
import java.util.concurrent.TimeoutException;

public class System
{

    private System()
    {
        registerList = new Vector();
        initLibrary();
        nativeObject = initNativeObject();
        Runtime.getRuntime().addShutdownHook(new Thread() {

            public void run()
            {
                try
                {
                    dispose();
                }
                catch(Throwable t)
                {
                    t.printStackTrace();
                }
            }

            final System this$0;

            
            {
                this$0 = System.this;
                super();
            }
        });
    }

    public static System getInstance()
    {
        /*<invalid signature>*/java.lang.Object local = android/speech/recognition/impl/System;
        JVM INSTR monitorenter ;
        if(instance == null)
            instance = new System();
        return instance;
        Exception exception;
        exception;
        throw exception;
    }

    private void initLibrary()
    {
        if(!libraryLoaded)
        {
            java.lang.System.loadLibrary("UAPI_jni");
            libraryLoaded = true;
        }
    }

    public void register(Runnable r)
    {
        synchronized(this)
        {
            registerList.addElement(new WeakReference(r));
        }
    }

    public void dispose()
        throws TimeoutException, IllegalThreadStateException
    {
        synchronized(android/speech/recognition/impl/System)
        {
            if(nativeObject != 0L)
            {
                Enumeration e = registerList.elements();
                WeakReference weak = null;
                do
                {
                    if(!e.hasMoreElements())
                        break;
                    weak = (WeakReference)e.nextElement();
                    Runnable r = (Runnable)weak.get();
                    if(r != null)
                        r.run();
                } while(true);
                registerList.removeAllElements();
                disposeProxy();
                nativeObject = 0L;
                instance = null;
            }
        }
    }

    protected void finalize()
        throws Throwable
    {
        dispose();
        super.finalize();
    }

    private static native long initNativeObject();

    private static native void disposeProxy();

    private static boolean libraryLoaded;
    private static System instance;
    private static Vector registerList;
    private long nativeObject;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -