Home
last modified time | relevance | path

Searched refs:mService (Results 1 – 25 of 257) sorted by relevance

1234567891011

/frameworks/base/core/java/android/app/admin/
DDevicePolicyManager.java98 private final IDevicePolicyManager mService; field in DevicePolicyManager
113 mService = service; in DevicePolicyManager()
120 return me.mService != null ? me : null; in create()
1064 if (mService != null) { in isAdminActiveAsUser()
1066 return mService.isAdminActive(admin, userId); in isAdminActiveAsUser()
1079 if (mService != null) { in isRemovingAdmin()
1081 return mService.isRemovingAdmin(admin, userId); in isRemovingAdmin()
1105 if (mService != null) { in getActiveAdminsAsUser()
1107 return mService.getActiveAdmins(userId); in getActiveAdminsAsUser()
1130 if (mService != null) { in packageHasActiveAdmins()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest6.java44 assertTrue(mService.hasShortcutHostPermissionInner(PACKAGE_SYSTEM_LAUNCHER, USER_0)); in testHasShortcutHostPermissionInner_systemLauncherOnly()
45 assertFalse(mService.hasShortcutHostPermissionInner(PACKAGE_FALLBACK_LAUNCHER, USER_0)); in testHasShortcutHostPermissionInner_systemLauncherOnly()
46 assertFalse(mService.hasShortcutHostPermissionInner(CALLING_PACKAGE_1, USER_0)); in testHasShortcutHostPermissionInner_systemLauncherOnly()
47 assertFalse(mService.hasShortcutHostPermissionInner(CALLING_PACKAGE_2, USER_0)); in testHasShortcutHostPermissionInner_systemLauncherOnly()
51 mService.getUserShortcutsLocked(USER_0).getLastKnownLauncher()); in testHasShortcutHostPermissionInner_systemLauncherOnly()
53 mService.getUserShortcutsLocked(USER_0).getCachedLauncher()); in testHasShortcutHostPermissionInner_systemLauncherOnly()
60 mService.getUserShortcutsLocked(USER_0).getLastKnownLauncher()); in testHasShortcutHostPermissionInner_systemLauncherOnly()
62 mService.getUserShortcutsLocked(USER_0).getCachedLauncher()); in testHasShortcutHostPermissionInner_systemLauncherOnly()
74 assertTrue(mService.hasShortcutHostPermissionInner(PACKAGE_SYSTEM_LAUNCHER, USER_0)); in testHasShortcutHostPermissionInner_with3pLauncher()
75 assertFalse(mService.hasShortcutHostPermissionInner(PACKAGE_FALLBACK_LAUNCHER, USER_0)); in testHasShortcutHostPermissionInner_with3pLauncher()
[all …]
/frameworks/av/services/mediaresourcemanager/test/
DResourceManagerService_test.cpp57 : mReclaimed(false), mPid(pid), mService(service) {} in TestClient()
61 mService->removeResource(mPid, (int64_t) client.get()); in reclaimResource()
84 sp<ResourceManagerService> mService; member
98 : mService(new ResourceManagerService(new TestProcessInfo)), in ResourceManagerServiceTest()
99 mTestClient1(new TestClient(kTestPid1, mService)), in ResourceManagerServiceTest()
100 mTestClient2(new TestClient(kTestPid2, mService)), in ResourceManagerServiceTest()
101 mTestClient3(new TestClient(kTestPid2, mService)) { in ResourceManagerServiceTest()
156 mService->addResource(kTestPid1, getId(mTestClient1), mTestClient1, resources1); in addResource()
160 mService->addResource(kTestPid1, getId(mTestClient1), mTestClient1, resources11); in addResource()
166 mService->addResource(kTestPid2, getId(mTestClient2), mTestClient2, resources2); in addResource()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DSession.java63 final WindowManagerService mService; field in Session
77 mService = service; in Session()
101 synchronized (mService.mWindowMap) { in Session()
102 if (mService.mInputMethodManager == null && mService.mHaveInputMethods) { in Session()
105 mService.mInputMethodManager = IInputMethodManager.Stub.asInterface(b); in Session()
112 if (mService.mInputMethodManager != null) { in Session()
113 mService.mInputMethodManager.addClient(client, inputContext, in Session()
122 if (mService.mInputMethodManager != null) { in Session()
123 mService.mInputMethodManager.removeClient(client); in Session()
150 if (mService.mInputMethodManager != null) { in binderDied()
[all …]
DWindowSurfacePlacer.java88 private final WindowManagerService mService; field in WindowSurfacePlacer
152 mService = service; in WindowSurfacePlacer()
153 mWallpaperControllerLocked = mService.mWallpaperControllerLocked; in WindowSurfacePlacer()
181 mService.mH.removeMessages(DO_TRAVERSAL); in performSurfacePlacement()
197 if (mService.mWaitingForConfig) { in performSurfacePlacementLoop()
204 if (!mService.mDisplayReady) { in performSurfacePlacementLoop()
213 if (!mService.mForceRemoves.isEmpty()) { in performSurfacePlacementLoop()
216 while (!mService.mForceRemoves.isEmpty()) { in performSurfacePlacementLoop()
217 WindowState ws = mService.mForceRemoves.remove(0); in performSurfacePlacementLoop()
219 mService.removeWindowInnerLocked(ws); in performSurfacePlacementLoop()
[all …]
/frameworks/base/core/java/android/bluetooth/
DBluetoothHeadsetClient.java369 private IBluetoothHeadsetClient mService; field in BluetoothHeadsetClient
381 mService = null;
390 if (mService == null) {
454 if (mService != null) { in close()
456 mService = null; in close()
481 if (mService != null && isEnabled() && in connect()
484 return mService.connect(device); in connect()
490 if (mService == null) Log.w(TAG, "Proxy not attached to service"); in connect()
505 if (mService != null && isEnabled() && in disconnect()
508 return mService.disconnect(device); in disconnect()
[all …]
DBluetoothHeadset.java270 private IBluetoothHeadset mService; field in BluetoothHeadset
283 if (mService == null) {
327 if (mService != null) { in doUnbind()
383 if (mService != null && isEnabled() && in connect()
386 return mService.connect(device); in connect()
392 if (mService == null) Log.w(TAG, "Proxy not attached to service"); in connect()
424 if (mService != null && isEnabled() && in disconnect()
427 return mService.disconnect(device); in disconnect()
433 if (mService == null) Log.w(TAG, "Proxy not attached to service"); in disconnect()
442 if (mService != null && isEnabled()) { in getConnectedDevices()
[all …]
DBluetoothInputDevice.java205 private IBluetoothInputDevice mService; field in BluetoothInputDevice
215 mService = null;
224 if (mService == null) {
282 if (mService != null) { in close()
284 mService = null; in close()
316 if (mService != null && isEnabled() && isValidDevice(device)) { in connect()
318 return mService.connect(device); in connect()
324 if (mService == null) Log.w(TAG, "Proxy not attached to service"); in connect()
356 if (mService != null && isEnabled() && isValidDevice(device)) { in disconnect()
358 return mService.disconnect(device); in disconnect()
[all …]
DBluetoothA2dpSink.java127 private IBluetoothA2dpSink mService; field in BluetoothA2dpSink
138 mService = null;
147 if (mService == null) {
203 if (mService != null) { in close()
205 mService = null; in close()
241 if (mService != null && isEnabled() && in connect()
244 return mService.connect(device); in connect()
250 if (mService == null) Log.w(TAG, "Proxy not attached to service"); in connect()
282 if (mService != null && isEnabled() && in disconnect()
285 return mService.disconnect(device); in disconnect()
[all …]
DBluetoothA2dp.java121 @GuardedBy("mServiceLock") private IBluetoothA2dp mService; field in BluetoothA2dp
132 mService = null;
142 if (mService == null) {
200 if (mService != null) { in close()
201 mService = null; in close()
241 if (mService != null && isEnabled() && in connect()
243 return mService.connect(device); in connect()
245 if (mService == null) Log.w(TAG, "Proxy not attached to service"); in connect()
285 if (mService != null && isEnabled() && in disconnect()
287 return mService.disconnect(device); in disconnect()
[all …]
DBluetoothSap.java69 private IBluetoothSap mService; field in BluetoothSap
100 mService = null;
109 if (mService == null) {
178 if (mService != null) { in close()
180 mService = null; in close()
198 if (mService != null) { in getState()
200 return mService.getState(); in getState()
218 if (mService != null) { in getClient()
220 return mService.getClient(); in getClient()
237 if (mService != null) { in isConnected()
[all …]
DBluetoothMap.java42 private IBluetoothMap mService; field in BluetoothMap
63 mService = null;
72 if (mService == null) {
140 if (mService != null) { in close()
142 mService = null; in close()
159 if (mService != null) { in getState()
161 return mService.getState(); in getState()
178 if (mService != null) { in getClient()
180 return mService.getClient(); in getClient()
196 if (mService != null) { in isConnected()
[all …]
/frameworks/base/core/java/android/appwidget/
DAppWidgetManager.java425 private final IAppWidgetService mService; field in AppWidgetManager
446 mService = service; in AppWidgetManager()
470 if (mService == null) { in updateAppWidget()
474 mService.updateAppWidgetIds(mPackageName, appWidgetIds, views); in updateAppWidget()
492 if (mService == null) { in updateAppWidgetOptions()
496 mService.updateAppWidgetOptions(mPackageName, appWidgetId, options); in updateAppWidgetOptions()
514 if (mService == null) { in getAppWidgetOptions()
518 return mService.getAppWidgetOptions(mPackageName, appWidgetId); in getAppWidgetOptions()
544 if (mService == null) { in updateAppWidget()
575 if (mService == null) { in partiallyUpdateAppWidget()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DA2dpSinkProfile.java38 private BluetoothA2dpSink mService; field in A2dpSinkProfile
61 mService = (BluetoothA2dpSink) proxy; in onServiceConnected()
63 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in onServiceConnected()
107 if (mService == null) return new ArrayList<BluetoothDevice>(0); in getConnectedDevices()
108 return mService.getDevicesMatchingConnectionStates( in getConnectedDevices()
115 if (mService == null) return false; in connect()
126 mService.disconnect(src); in connect()
129 return mService.connect(device); in connect()
133 if (mService == null) return false; in disconnect()
135 if (mService.getPriority(device) > BluetoothProfile.PRIORITY_ON){ in disconnect()
[all …]
DSapProfile.java41 private BluetoothSap mService; field in SapProfile
63 mService = (BluetoothSap) proxy; in onServiceConnected()
65 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in onServiceConnected()
113 if (mService == null) return false; in connect()
114 List<BluetoothDevice> sinks = mService.getConnectedDevices(); in connect()
117 mService.disconnect(sink); in connect()
120 return mService.connect(device); in connect()
124 if (mService == null) return false; in disconnect()
125 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in disconnect()
127 if (mService.getPriority(device) > BluetoothProfile.PRIORITY_ON) { in disconnect()
[all …]
DA2dpProfile.java38 private BluetoothA2dp mService; field in A2dpProfile
61 mService = (BluetoothA2dp) proxy; in onServiceConnected()
63 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in onServiceConnected()
107 if (mService == null) return new ArrayList<BluetoothDevice>(0); in getConnectedDevices()
108 return mService.getDevicesMatchingConnectionStates( in getConnectedDevices()
115 if (mService == null) return false; in connect()
119 mService.disconnect(sink); in connect()
122 return mService.connect(device); in connect()
126 if (mService == null) return false; in disconnect()
128 if (mService.getPriority(device) > BluetoothProfile.PRIORITY_ON){ in disconnect()
[all …]
DHeadsetProfile.java41 private BluetoothHeadset mService; field in HeadsetProfile
64 mService = (BluetoothHeadset) proxy; in onServiceConnected()
66 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in onServiceConnected()
114 if (mService == null) return false; in connect()
115 List<BluetoothDevice> sinks = mService.getConnectedDevices(); in connect()
121 return mService.connect(device); in connect()
125 if (mService == null) return false; in disconnect()
126 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in disconnect()
133 if (mService.getPriority(device) > BluetoothProfile.PRIORITY_ON) { in disconnect()
134 mService.setPriority(device, BluetoothProfile.PRIORITY_ON); in disconnect()
[all …]
DHfpClientProfile.java41 private BluetoothHeadsetClient mService; field in HfpClientProfile
65 mService = (BluetoothHeadsetClient) proxy; in onServiceConnected()
67 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in onServiceConnected()
116 if (mService == null) return new ArrayList<BluetoothDevice>(0); in getConnectedDevices()
117 return mService.getDevicesMatchingConnectionStates( in getConnectedDevices()
125 if (mService == null) return false; in connect()
138 mService.disconnect(src); in connect()
141 return mService.connect(device); in connect()
146 if (mService == null) return false; in disconnect()
148 if (mService.getPriority(device) > BluetoothProfile.PRIORITY_ON){ in disconnect()
[all …]
DMapProfile.java41 private BluetoothMap mService; field in MapProfile
64 mService = (BluetoothMap) proxy; in onServiceConnected()
66 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in onServiceConnected()
120 if (mService == null) return false; in disconnect()
121 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in disconnect()
123 if (mService.getPriority(device) > BluetoothProfile.PRIORITY_ON) { in disconnect()
124 mService.setPriority(device, BluetoothProfile.PRIORITY_ON); in disconnect()
126 return mService.disconnect(device); in disconnect()
133 if (mService == null) return BluetoothProfile.STATE_DISCONNECTED; in getConnectionStatus()
134 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in getConnectionStatus()
[all …]
DPbapClientProfile.java39 private BluetoothPbapClient mService; field in PbapClientProfile
63 mService = (BluetoothPbapClient) proxy; in onServiceConnected()
65 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in onServiceConnected()
96 return (mService != null); in pbapClientExists()
122 if (mService == null) { in getConnectedDevices()
125 return mService.getDevicesMatchingConnectionStates( in getConnectedDevices()
135 if (mService == null) { in connect()
148 mService.disconnect(device); in connect()
153 return mService.connect(device); in connect()
160 if (mService == null) { in disconnect()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/notification/
DBuzzBeepBlinkTest.java55 private NotificationManagerService mService; field in BuzzBeepBlinkTest
74 mService = new NotificationManagerService(getContext()); in setUp()
75 mService.setAudioManager(mAudioManager); in setUp()
76 mService.setVibrator(mVibrator); in setUp()
77 mService.setSystemReady(true); in setUp()
78 mService.setHandler(mHandler); in setUp()
79 mService.setSystemNotificationSound("beep!"); in setUp()
216 mService.buzzBeepBlinkLocked(r); in testBeep()
230 mService.buzzBeepBlinkLocked(r); in testBeepInsistently()
240 mService.buzzBeepBlinkLocked(r); in testNoInterruptionForMin()
[all …]
/frameworks/base/test-runner/src/android/test/
DServiceTestCase.java117 private T mService; field in ServiceTestCase
130 return mService; in getService()
157 mService = null; in setupService()
159 mService = mServiceClass.newInstance(); in setupService()
161 assertNotNull(mService); in setupService()
166 mService.attach( in setupService()
175 assertNotNull(mService); in setupService()
195 assertNotNull(mService); in startService()
198 mService.onCreate(); in startService()
201 mService.onStartCommand(intent, 0, mServiceId); in startService()
[all …]
/frameworks/base/services/backup/java/com/android/server/backup/
DTrampoline.java53 volatile BackupManagerService mService; field in Trampoline
76 mService = new BackupManagerService(mContext, this); in initialize()
103 mService = new BackupManagerService(mContext, this); in setBackupServiceActive()
106 mService = null; in setBackupServiceActive()
128 return mService != null; in isBackupServiceActive()
137 BackupManagerService svc = mService; in dataChanged()
146 BackupManagerService svc = mService; in clearBackupData()
154 BackupManagerService svc = mService; in agentConnected()
162 BackupManagerService svc = mService; in agentDisconnected()
170 BackupManagerService svc = mService; in restoreAtInstall()
[all …]
/frameworks/base/core/java/android/app/
DUiModeManager.java124 private IUiModeManager mService; field in UiModeManager
127 mService = IUiModeManager.Stub.asInterface( in UiModeManager()
158 if (mService != null) { in enableCarMode()
160 mService.enableCarMode(flags); in enableCarMode()
181 if (mService != null) { in disableCarMode()
183 mService.disableCarMode(flags); in disableCarMode()
200 if (mService != null) { in getCurrentModeType()
202 return mService.getCurrentModeType(); in getCurrentModeType()
233 if (mService != null) { in setNightMode()
235 mService.setNightMode(mode); in setNightMode()
[all …]
/frameworks/base/services/core/java/com/android/server/policy/keyguard/
DKeyguardServiceWrapper.java39 private IKeyguardService mService; field in KeyguardServiceWrapper
43 mService = service; in KeyguardServiceWrapper()
50 mService.verifyUnlock(callback); in verifyUnlock()
59 mService.keyguardDone(authenticated, wakeup); in keyguardDone()
68 mService.setOccluded(isOccluded); in setOccluded()
77 mService.addStateMonitorCallback(callback); in addStateMonitorCallback()
86 mService.dismiss(allowWhileOccluded); in dismiss()
95 mService.onDreamingStarted(); in onDreamingStarted()
104 mService.onDreamingStopped(); in onDreamingStopped()
113 mService.onStartedGoingToSleep(reason); in onStartedGoingToSleep()
[all …]

1234567891011