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.java50 private static ActivityManagerService sService; field in OomAdjusterTests
73 sService = mock(ActivityManagerService.class); in setUpOnce()
74 sService.mActivityTaskManager = new ActivityTaskManagerService(sContext); in setUpOnce()
75 sService.mActivityTaskManager.initialize(null, null, sContext.getMainLooper()); in setUpOnce()
76 sService.mAtmInternal = sService.mActivityTaskManager.getAtmInternal(); in setUpOnce()
78 sService.mConstants = new ActivityManagerConstants(sContext, sService, in setUpOnce()
80 sService.mOomAdjuster = new OomAdjuster(sService, sService.mProcessList, null); in setUpOnce()
84 sService.mUsageStatsService = LocalServices.getService(UsageStatsManagerInternal.class); in setUpOnce()
92 mProcessRecord = spy(new ProcessRecord(sService, sContext.getApplicationInfo(), in setUpProcess()
97 assertNotNull(sService.mUsageStatsService); in setUpProcess()
[all …]
DProcessRecordTests.java55 private static ActivityManagerService sService; field in ProcessRecordTests
66 sService = mock(ActivityManagerService.class); in setUpOnce()
67 sService.mActivityTaskManager = new ActivityTaskManagerService(sContext); in setUpOnce()
68 sService.mActivityTaskManager.initialize(null, null, sContext.getMainLooper()); in setUpOnce()
69 sService.mAtmInternal = sService.mActivityTaskManager.getAtmInternal(); in setUpOnce()
88 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.java200 private static IBackupManager sService; field in BackupManager
204 if (sService == null) { in checkServiceBinder()
205 sService = IBackupManager.Stub.asInterface( in checkServiceBinder()
230 if (sService != null) { in dataChanged()
232 sService.dataChanged(mContext.getPackageName()); in dataChanged()
252 if (sService != null) { in dataChanged()
254 sService.dataChanged(packageName); in dataChanged()
338 if (sService != null) { in beginRestoreSession()
342 sService.beginRestoreSessionForUser(mContext.getUserId(), null, null); in beginRestoreSession()
366 if (sService != null) { in setBackupEnabled()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DMockingOomAdjusterTests.java135 private static ActivityManagerService sService; field in MockingOomAdjusterTests
149 sService = mock(ActivityManagerService.class); in setUpOnce()
150 sService.mActivityTaskManager = new ActivityTaskManagerService(sContext); in setUpOnce()
151 sService.mActivityTaskManager.initialize(null, null, sContext.getMainLooper()); in setUpOnce()
152 sService.mPackageManagerInt = sPackageManagerInternal; in setUpOnce()
153 sService.mAtmInternal = spy(sService.mActivityTaskManager.getAtmInternal()); in setUpOnce()
155 sService.mConstants = new ActivityManagerConstants(sContext, sService, in setUpOnce()
157 setFieldValue(ActivityManagerService.class, sService, "mContext", in setUpOnce()
160 pr.init(sService, new ActiveUids(sService, false), null); in setUpOnce()
161 setFieldValue(ActivityManagerService.class, sService, "mProcessList", in setUpOnce()
[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/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/appwidget/
DAppWidgetHost.java63 static IAppWidgetService sService; field in AppWidgetHost
199 sService = IAppWidgetService.Stub.asInterface(b); in bindService()
208 if (sService == null) { in startListening()
221 updates = sService.startListening( in startListening()
253 if (sService == null) { in stopListening()
257 sService.stopListening(mContextOpPackageName, mHostId); in stopListening()
270 if (sService == null) { in allocateAppWidgetId()
274 return sService.allocateAppWidgetId(mContextOpPackageName, mHostId); in allocateAppWidgetId()
302 if (sService == null) { in startAppWidgetConfigureActivityForResult()
306 IntentSender intentSender = sService.createAppWidgetConfigIntentSender( in startAppWidgetConfigureActivityForResult()
[all …]
/frameworks/base/core/java/android/bluetooth/
DBluetoothDevice.java897 private static volatile IBluetooth sService; field in BluetoothDevice
905 if (sService == null) { in getService()
907 sService = adapter.getBluetoothService(sStateChangeCallback); in getService()
910 return sService; in getService()
918 if (sService == null) {
919 sService = bluetoothService;
927 sService = null;
1026 final IBluetooth service = sService; in getName()
1051 final IBluetooth service = sService; in getType()
1074 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()
218 MediaMetadataRetriever::sService.clear(); in binderDied()
225 if (sService != 0) { in ~DeathNotifier()
226 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.java272 private static final Singleton<IMediaCasService> sService = new Singleton<IMediaCasService>() { field in MediaCas
309 return sService.get(); in getService()
/frameworks/base/core/java/android/widget/
DToast.java560 private static INotificationManager sService; field in Toast
564 if (sService != null) { in getService()
565 return sService; in getService()
567 sService = INotificationManager.Stub.asInterface( in getService()
569 return sService; in getService()
/frameworks/base/media/java/android/media/audiopolicy/
DAudioPolicy.java1034 private static IAudioService sService; field in AudioPolicy
1038 if (sService != null) { in getService()
1039 return sService; in getService()
1042 sService = IAudioService.Stub.asInterface(b); in getService()
1043 return sService; in getService()
/frameworks/av/media/libmedia/include/media/
Dmediametadataretriever.h119 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.java469 private static INotificationManager sService; field in NotificationManager
475 if (sService != null) { in getService()
476 return sService; in getService()
479 sService = INotificationManager.Stub.asInterface(b); in getService()
480 return sService; in getService()
/frameworks/base/services/core/java/com/android/server/am/
DBatteryStatsService.java91 private static IBatteryStats sService; field in BatteryStatsService
273 if (sService != null) { in getService()
274 return sService; in getService()
277 sService = asInterface(b); in getService()
278 return sService; in getService()

12