Home
last modified time | relevance | path

Searched refs:sContext (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/services/core/java/com/android/server/audio/
DRotationHelper.java48 private static Context sContext; field in RotationHelper
60 sContext = context; in init()
67 ((DisplayManager) sContext.getSystemService(Context.DISPLAY_SERVICE)) in enable()
73 ((DisplayManager) sContext.getSystemService(Context.DISPLAY_SERVICE)) in disable()
83 int newRotation = ((WindowManager) sContext.getSystemService( in updateOrientation()
/frameworks/base/tests/utils/SleepUtils/AlarmService/src/com/android/testing/alarmservice/
DAlarmService.java27 static Context sContext; field in AlarmService
32 sContext = this; in onCreate()
49 sContext = null; in onDestroy()
DWakeUpController.java49 (PowerManager) AlarmService.sContext.getSystemService(Context.POWER_SERVICE); in getWakeLock()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DPhoneFactory.java84 static private Context sContext; field in PhoneFactory
109 sContext = context; in makeDefaultPhone()
149 boolean isDynamicBinding = sContext.getResources().getBoolean( in makeDefaultPhone()
152 String defaultImsPackage = sContext.getResources().getString( in makeDefaultPhone()
156 sImsResolver = new ImsResolver(sContext, defaultImsPackage, numPhones, in makeDefaultPhone()
244 sSubscriptionMonitor = new SubscriptionMonitor(tr, sContext, sc, numPhones); in makeDefaultPhone()
247 sContext, sc, Looper.myLooper(), tr, sCommandsInterfaces, in makeDefaultPhone()
261 sContext, i, sPhones[i].mDcTracker); in makeDefaultPhone()
324 return SipPhoneFactory.makePhone(sipUri, sContext, sPhoneNotifier); in makeSipPhone()
366 value = Settings.Global.getInt(sContext.getContentResolver(), in isSMSPromptEnabled()
[all …]
/frameworks/base/core/java/android/util/
DNtpTrustedTime.java41 private static Context sContext; field in NtpTrustedTime
76 sContext = context; in getInstance()
87 mCM = sContext.getSystemService(ConnectivityManager.class); in forceRefresh()
104 mCM = sContext.getSystemService(ConnectivityManager.class); in forceRefresh()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBstatsCpuTimesValidationTest.java110 private static Context sContext; field in BstatsCpuTimesValidationTest
120 sContext = InstrumentationRegistry.getContext(); in setupOnce()
122 sContext.getPackageManager().setApplicationEnabledSetting(TEST_PKG, in setupOnce()
124 sTestPkgUid = sContext.getPackageManager().getPackageUid(TEST_PKG, 0); in setupOnce()
134 Settings.Global.putString(sContext.getContentResolver(), in tearDownOnce()
141 sOriginalBatteryStatsConsts = Settings.Global.getString(sContext.getContentResolver(), in setDesiredReadyDelay()
158 Settings.Global.putString(sContext.getContentResolver(), in setDesiredReadyDelay()
514 final String bstatsConstants = Settings.Global.getString(sContext.getContentResolver(), in testCpuFreqTimes_trackingDisabled()
570 Settings.Global.putString(sContext.getContentResolver(), in testCpuFreqTimes_trackingDisabled()
595 Settings.Global.putString(sContext.getContentResolver(), in updateTrackPerProcStateCpuTimesSetting()
[all …]
/frameworks/base/core/tests/coretests/src/android/os/
DBinderProxyCountingTest.java91 private static Context sContext; field in BinderProxyCountingTest
115 sContext = InstrumentationRegistry.getContext(); in setUpOnce()
116 sTestPkgUid = sContext.getPackageManager().getPackageUid(TEST_APP_PKG, 0); in setUpOnce()
117 ((ActivityManager) sContext.getSystemService(Context.ACTIVITY_SERVICE)).killUid(sTestPkgUid, in setUpOnce()
139 sContext.bindService(intent, connection, in bindService()
152 sContext.unbindService(service); in unbindService()
/frameworks/base/core/java/android/provider/
DFontsContract.java166 private volatile static Context sContext; // set once in setApplicationContextForResources field in FontsContract
175 sContext = context.getApplicationContext(); in setApplicationContextForResources()
357 FontFamilyResult result = fetchFonts(sContext, null, request); in getFontSync()
359 Typeface typeface = buildTypeface(sContext, null, result.getFonts()); in getFontSync()