Lines Matching refs:sContext
46 private static Context sContext; field in LauncherAppState
66 return sContext; in getContext()
70 if (sContext != null) { in setApplicationContext()
71 … Log.w(Launcher.TAG, "setApplicationContext called twice! old=" + sContext + " new=" + context); in setApplicationContext()
73 sContext = context.getApplicationContext(); in setApplicationContext()
77 if (sContext == null) { in LauncherAppState()
84 TestingUtils.startTrackingMemory(sContext); in LauncherAppState()
87 mInvariantDeviceProfile = new InvariantDeviceProfile(sContext); in LauncherAppState()
88 mIconCache = new IconCache(sContext, mInvariantDeviceProfile); in LauncherAppState()
89 mWidgetCache = new WidgetPreviewLoader(sContext, mIconCache); in LauncherAppState()
91 mAppFilter = AppFilter.loadByName(sContext.getString(R.string.app_filter_class)); in LauncherAppState()
94 LauncherAppsCompat.getInstance(sContext).addOnAppsChangedCallback(mModel); in LauncherAppState()
106 sContext.registerReceiver(mModel, filter); in LauncherAppState()
107 UserManagerCompat.getInstance(sContext).enableAndResetCache(); in LauncherAppState()
108 new ConfigMonitor(sContext).register(); in LauncherAppState()
110 sContext.registerReceiver( in LauncherAppState()
118 sContext.unregisterReceiver(mModel); in onTerminate()
119 final LauncherAppsCompat launcherApps = LauncherAppsCompat.getInstance(sContext); in onTerminate()
121 PackageInstallerCompat.getInstance(sContext).onStop(); in onTerminate()