Home
last modified time | relevance | path

Searched refs:sService (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DOomAdjusterTests.java47 private static ActivityManagerService sService; field in OomAdjusterTests
62 sService = mock(ActivityManagerService.class); in setUpOnce()
63 sService.mActivityTaskManager = new ActivityTaskManagerService(sContext); in setUpOnce()
64 sService.mActivityTaskManager.initialize(null, null, sContext.getMainLooper()); in setUpOnce()
65 sService.mAtmInternal = sService.mActivityTaskManager.getAtmInternal(); in setUpOnce()
67 sService.mConstants = new ActivityManagerConstants(sContext, sService, in setUpOnce()
69 sService.mOomAdjuster = new OomAdjuster(sService, sService.mProcessList, null); in setUpOnce()
73 sService.mUsageStatsService = LocalServices.getService(UsageStatsManagerInternal.class); in setUpOnce()
81 mProcessRecord = spy(new ProcessRecord(sService, sContext.getApplicationInfo(), in setUpProcess()
86 assertNotNull(sService.mUsageStatsService); in setUpProcess()
[all …]
DProcessRecordTests.java51 private static ActivityManagerService sService; field in ProcessRecordTests
62 sService = mock(ActivityManagerService.class); in setUpOnce()
63 sService.mActivityTaskManager = new ActivityTaskManagerService(sContext); in setUpOnce()
64 sService.mActivityTaskManager.initialize(null, null, sContext.getMainLooper()); in setUpOnce()
65 sService.mAtmInternal = sService.mActivityTaskManager.getAtmInternal(); in setUpOnce()
73 mProcessRecord = spy(new ProcessRecord(sService, sContext.getApplicationInfo(), in setUpProcess()
/frameworks/base/core/java/android/nfc/cardemulation/
DCardEmulation.java134 static INfcCardEmulation sService; field in CardEmulation
140 sService = service; in CardEmulation()
208 return sService.isDefaultServiceForCategory(mContext.getUserId(), service, category); in isDefaultServiceForCategory()
212 if (sService == null) { in isDefaultServiceForCategory()
217 return sService.isDefaultServiceForCategory(mContext.getUserId(), service, in isDefaultServiceForCategory()
239 return sService.isDefaultServiceForAid(mContext.getUserId(), service, aid); in isDefaultServiceForAid()
243 if (sService == null) { in isDefaultServiceForAid()
248 return sService.isDefaultServiceForAid(mContext.getUserId(), service, aid); in isDefaultServiceForAid()
333 return sService.registerAidGroupForService(mContext.getUserId(), service, aidGroup); in registerAidsForService()
337 if (sService == null) { in registerAidsForService()
[all …]
DNfcFCardEmulation.java51 static INfcFCardEmulation sService; field in NfcFCardEmulation
57 sService = service; in NfcFCardEmulation()
121 return sService.getSystemCodeForService(mContext.getUserId(), service); in getSystemCodeForService()
125 if (sService == null) { in getSystemCodeForService()
130 return sService.getSystemCodeForService(mContext.getUserId(), service); in getSystemCodeForService()
167 return sService.registerSystemCodeForService(mContext.getUserId(), in registerSystemCodeForService()
172 if (sService == null) { in registerSystemCodeForService()
177 return sService.registerSystemCodeForService(mContext.getUserId(), in registerSystemCodeForService()
198 return sService.removeSystemCodeForService(mContext.getUserId(), service); in unregisterSystemCodeForService()
202 if (sService == null) { in unregisterSystemCodeForService()
[all …]
/frameworks/base/core/java/android/app/backup/
DBackupManager.java198 private static IBackupManager sService; field in BackupManager
202 if (sService == null) { in checkServiceBinder()
203 sService = IBackupManager.Stub.asInterface( in checkServiceBinder()
228 if (sService != null) { in dataChanged()
230 sService.dataChanged(mContext.getPackageName()); in dataChanged()
250 if (sService != null) { in dataChanged()
252 sService.dataChanged(packageName); in dataChanged()
336 if (sService != null) { in beginRestoreSession()
340 sService.beginRestoreSessionForUser(mContext.getUserId(), null, null); in beginRestoreSession()
364 if (sService != null) { in setBackupEnabled()
[all …]
/frameworks/base/core/java/android/service/persistentdata/
DPersistentDataBlockManager.java53 private IPersistentDataBlockService sService; field in PersistentDataBlockManager
78 sService = service; in PersistentDataBlockManager()
96 return sService.write(data); in write()
108 return sService.read(); in read()
122 return sService.getDataBlockSize(); in getDataBlockSize()
136 return sService.getMaximumDataBlockSize(); in getMaximumDataBlockSize()
151 sService.wipe(); in wipe()
165 sService.setOemUnlockEnabled(enabled); in setOemUnlockEnabled()
182 return sService.getOemUnlockEnabled(); in getOemUnlockEnabled()
202 return sService.getFlashLockState(); in getFlashLockState()
/frameworks/base/core/java/android/appwidget/
DAppWidgetHost.java62 static IAppWidgetService sService; field in AppWidgetHost
186 sService = IAppWidgetService.Stub.asInterface(b); in bindService()
195 if (sService == null) { in startListening()
208 updates = sService.startListening( in startListening()
236 if (sService == null) { in stopListening()
240 sService.stopListening(mContextOpPackageName, mHostId); in stopListening()
253 if (sService == null) { in allocateAppWidgetId()
257 return sService.allocateAppWidgetId(mContextOpPackageName, mHostId); in allocateAppWidgetId()
285 if (sService == null) { in startAppWidgetConfigureActivityForResult()
289 IntentSender intentSender = sService.createAppWidgetConfigIntentSender( in startAppWidgetConfigureActivityForResult()
[all …]
/frameworks/base/core/java/android/nfc/dta/
DNfcDta.java34 private static INfcDta sService; field in NfcDta
41 sService = service; in NfcDta()
78 sService.enableDta(); in enableDta()
92 sService.disableDta(); in disableDta()
107 return sService.enableServer(serviceName, serviceSap, miu, rwSize, testCaseId); in enableServer()
120 sService.disableServer(); in disableServer()
135 return sService.enableClient(serviceName, miu, rwSize, testCaseId); in enableClient()
148 sService.disableClient(); in disableClient()
162 return sService.registerMessageService(msgServiceName); in registerMessageService()
/frameworks/base/core/java/android/os/
DUpdateLock.java34 private static IUpdateLock sService; field in UpdateLock
36 if (sService == null) { in checkService()
37 sService = IUpdateLock.Stub.asInterface( in checkService()
120 if (sService != null) { in acquireLocked()
122 sService.acquireUpdateLock(mToken, mTag); in acquireLocked()
145 if (sService != null) { in releaseLocked()
147 sService.releaseUpdateLock(mToken); in releaseLocked()
166 sService.releaseUpdateLock(mToken); in finalize()
/frameworks/base/core/java/android/util/
DStatsLog.java39 private static IStatsManager sService; field in StatsLog
66 sService = null; in logStart()
94 sService = null; in logStop()
123 sService = null; in logEvent()
165 sService = null; in logBinaryPushStateChanged()
206 sService = null; in logWatchdogRollbackOccurred()
219 if (sService != null) { in getIStatsManagerLocked()
220 return sService; in getIStatsManagerLocked()
222 sService = IStatsManager.Stub.asInterface(ServiceManager.getService("stats")); in getIStatsManagerLocked()
223 return sService; in getIStatsManagerLocked()
/frameworks/base/core/java/android/bluetooth/
DBluetoothDevice.java896 private static volatile IBluetooth sService; field in BluetoothDevice
904 if (sService == null) { in getService()
906 sService = adapter.getBluetoothService(sStateChangeCallback); in getService()
909 return sService; in getService()
917 if (sService == null) {
918 sService = bluetoothService;
926 sService = null;
1025 final IBluetooth service = sService; in getName()
1054 final IBluetooth service = sService; in getType()
1077 final IBluetooth service = sService; in getAlias()
[all …]
/frameworks/base/core/java/android/nfc/
DNfcAdapter.java369 static INfcAdapter sService; field in NfcAdapter
604 sService = getServiceInterface(); in getNfcAdapter()
605 if (sService == null) { in getNfcAdapter()
611 sTagService = sService.getNfcTagInterface(); in getNfcAdapter()
619 sNfcFCardEmulationService = sService.getNfcFCardEmulationInterface(); in getNfcAdapter()
625 sCardEmulationService = sService.getNfcCardEmulationInterface(); in getNfcAdapter()
733 return sService; in getService()
773 return sService.getNfcDtaInterface(mContext.getPackageName()); in getNfcDtaInterface()
796 sService = service; in attemptDeadServiceRecovery()
835 return sService.getState() == STATE_ON; in isEnabled()
[all …]
DNfcActivityManager.java242 NfcAdapter.sService.setReaderMode(token, this, flags, extras); in setReaderMode()
340 NfcAdapter.sService.setAppCallback(this); in requestNfcServiceCallback()
348 NfcAdapter.sService.verifyNfcPermission(); in verifyNfcPermission()
/frameworks/base/nfc-extras/java/com/android/nfc_extras/
DNfcAdapterExtras.java62 private static INfcAdapterExtras sService; field in NfcAdapterExtras
80 sService = service; in initService()
101 if (sService == null) { in get()
169 return sService; in getService()
180 int route = sService.getCardEmulationRoute(mPackageName); in getCardEmulationRoute()
202 sService.setCardEmulationRoute(mPackageName, route.route); in setCardEmulationRoute()
232 sService.authenticate(mPackageName, token); in authenticate()
248 return sService.getDriverName(mPackageName); in getDriverName()
/frameworks/av/media/libmedia/
Dmediametadataretriever.cpp35 sp<IMediaPlayerService> MediaMetadataRetriever::sService; member in android::MediaMetadataRetriever
41 if (sService == 0) { in getService()
56 sService = interface_cast<IMediaPlayerService>(binder); in getService()
58 ALOGE_IF(sService == 0, "no MediaPlayerService!?"); in getService()
59 return sService; in getService()
220 MediaMetadataRetriever::sService.clear(); in binderDied()
227 if (sService != 0) { in ~DeathNotifier()
228 IInterface::asBinder(sService)->unlinkToDeath(this); in ~DeathNotifier()
/frameworks/layoutlib/bridge/src/android/view/
DWindowManagerGlobal_Delegate.java31 private static IWindowManager sService; field in WindowManagerGlobal_Delegate
35 return sService; in getWindowManagerService()
41 sService = service; in setWindowManagerService()
/frameworks/base/media/java/android/media/
DAudioRecordingMonitorImpl.java48 private static IAudioService sService; //lazy initialization, use getService() field in AudioRecordingMonitorImpl
243 if (sService != null) { in getService()
244 return sService; in getService()
247 sService = IAudioService.Stub.asInterface(b); in getService()
248 return sService; in getService()
DPlayerBase.java51 private static IAudioService sService; //lazy initialization, use getService() field in PlayerBase
374 if (sService != null) { in getService()
375 return sService; in getService()
378 sService = IAudioService.Stub.asInterface(b); in getService()
379 return sService; in getService()
DMediaCas.java107 private static final Singleton<IMediaCasService> sService = new Singleton<IMediaCasService>() { field in MediaCas
130 return sService.get(); in getService()
/frameworks/base/core/java/android/widget/
DToast.java345 private static INotificationManager sService; field in Toast
349 if (sService != null) { in getService()
350 return sService; in getService()
352 sService = INotificationManager.Stub.asInterface(ServiceManager.getService("notification")); in getService()
353 return sService; in getService()
/frameworks/base/media/java/android/media/audiopolicy/
DAudioPolicy.java947 private static IAudioService sService; field in AudioPolicy
951 if (sService != null) { in getService()
952 return sService; in getService()
955 sService = IAudioService.Stub.asInterface(b); in getService()
956 return sService; in getService()
/frameworks/av/media/libmedia/include/media/
Dmediametadataretriever.h120 static sp<IMediaPlayerService> sService; variable
/frameworks/native/libs/binder/tests/
DbinderSafeInterfaceTest.cpp607 static sp<ISafeInterfaceTest> sService; in getRemoteService() local
612 if (sService == nullptr) { in getRemoteService()
631 sService = interface_cast<ISafeInterfaceTest>(binder); in getRemoteService()
632 EXPECT_TRUE(sService != nullptr); in getRemoteService()
634 sService->setDeathToken(sDeathToken); in getRemoteService()
637 return sService; in getRemoteService()
/frameworks/base/core/java/android/app/
DNotificationManager.java382 private static INotificationManager sService; field in NotificationManager
388 if (sService != null) { in getService()
389 return sService; in getService()
392 sService = INotificationManager.Stub.asInterface(b); in getService()
393 return sService; in getService()
/frameworks/base/services/core/java/com/android/server/am/
DBatteryStatsService.java93 private static IBatteryStats sService; field in BatteryStatsService
275 if (sService != null) { in getService()
276 return sService; in getService()
279 sService = asInterface(b); in getService()
280 return sService; in getService()

12