Search in sources :

Example 1 with IntentFirewall

use of com.android.server.firewall.IntentFirewall in project android_frameworks_base by ParanoidAndroid.

the class ActivityManagerService method main.

public static final Context main(int factoryTest) {
    AThread thr = new AThread();
    thr.start();
    synchronized (thr) {
        while (thr.mService == null) {
            try {
                thr.wait();
            } catch (InterruptedException e) {
            }
        }
    }
    ActivityManagerService m = thr.mService;
    mSelf = m;
    ActivityThread at = ActivityThread.systemMain();
    mSystemThread = at;
    Context context = at.getSystemContext();
    context.setTheme(android.R.style.Theme_Holo);
    m.mContext = context;
    m.mFactoryTest = factoryTest;
    m.mMainStack = new ActivityStack(m, context, true, thr.mLooper);
    m.mIntentFirewall = new IntentFirewall(m.new IntentFirewallInterface());
    m.mBatteryStatsService.publish(context);
    m.mUsageStatsService.publish(context);
    m.mAppOpsService.publish(context);
    synchronized (thr) {
        thr.mReady = true;
        thr.notifyAll();
    }
    m.startRunning(null, null, null, null);
    return context;
}
Also used : Context(android.content.Context) IntentFirewall(com.android.server.firewall.IntentFirewall) ActivityThread(android.app.ActivityThread)

Aggregations

ActivityThread (android.app.ActivityThread)1 Context (android.content.Context)1 IntentFirewall (com.android.server.firewall.IntentFirewall)1