Home
last modified time | relevance | path

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

12345678910>>...18

/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest6.java45 assertTrue(mService.hasShortcutHostPermissionInner(PACKAGE_SYSTEM_LAUNCHER, USER_0)); in testHasShortcutHostPermissionInner_systemLauncherOnly()
46 assertFalse(mService.hasShortcutHostPermissionInner(PACKAGE_FALLBACK_LAUNCHER, USER_0)); in testHasShortcutHostPermissionInner_systemLauncherOnly()
47 assertFalse(mService.hasShortcutHostPermissionInner(CALLING_PACKAGE_1, USER_0)); in testHasShortcutHostPermissionInner_systemLauncherOnly()
48 assertFalse(mService.hasShortcutHostPermissionInner(CALLING_PACKAGE_2, USER_0)); in testHasShortcutHostPermissionInner_systemLauncherOnly()
52 mService.getUserShortcutsLocked(USER_0).getLastKnownLauncher()); in testHasShortcutHostPermissionInner_systemLauncherOnly()
54 mService.getUserShortcutsLocked(USER_0).getCachedLauncher()); in testHasShortcutHostPermissionInner_systemLauncherOnly()
61 mService.getUserShortcutsLocked(USER_0).getLastKnownLauncher()); in testHasShortcutHostPermissionInner_systemLauncherOnly()
63 mService.getUserShortcutsLocked(USER_0).getCachedLauncher()); in testHasShortcutHostPermissionInner_systemLauncherOnly()
75 assertTrue(mService.hasShortcutHostPermissionInner(PACKAGE_SYSTEM_LAUNCHER, USER_0)); in testHasShortcutHostPermissionInner_with3pLauncher()
76 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/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DHearingAidProfile.java38 private BluetoothHearingAid mService; field in HearingAidProfile
54 mService = (BluetoothHearingAid) proxy; in onServiceConnected()
56 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in onServiceConnected()
142 if (mService == null) { in getDevicesByStates()
145 return mService.getDevicesMatchingConnectionStates(states); in getDevicesByStates()
149 if (mService == null) return false; in connect()
150 return mService.connect(device); in connect()
154 if (mService == null) return false; in disconnect()
156 if (mService.getPriority(device) > BluetoothProfile.PRIORITY_ON){ in disconnect()
157 mService.setPriority(device, BluetoothProfile.PRIORITY_ON); in disconnect()
[all …]
DHeadsetProfile.java40 private BluetoothHeadset mService; field in HeadsetProfile
61 mService = (BluetoothHeadset) proxy; in onServiceConnected()
63 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in onServiceConnected()
112 if (mService == null) { in connect()
115 return mService.connect(device); in connect()
119 if (mService == null) { 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()
130 if (mService == null) { in getConnectionStatus()
[all …]
DA2dpSinkProfile.java37 private BluetoothA2dpSink mService; field in A2dpSinkProfile
58 mService = (BluetoothA2dpSink) proxy; in onServiceConnected()
60 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in onServiceConnected()
106 if (mService == null) { in getConnectedDevices()
109 return mService.getDevicesMatchingConnectionStates( in getConnectedDevices()
116 if (mService == null) { in connect()
119 return mService.connect(device); in connect()
123 if (mService == null) { in disconnect()
127 if (mService.getPriority(device) > BluetoothProfile.PRIORITY_ON) { in disconnect()
128 mService.setPriority(device, BluetoothProfile.PRIORITY_ON); in disconnect()
[all …]
DA2dpProfile.java41 private BluetoothA2dp mService; field in A2dpProfile
62 mService = (BluetoothA2dp) proxy; in onServiceConnected()
64 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in onServiceConnected()
144 if (mService == null) { in getDevicesByStates()
147 return mService.getDevicesMatchingConnectionStates(states); in getDevicesByStates()
151 if (mService == null) return false; in connect()
152 return mService.connect(device); in connect()
156 if (mService == null) return false; in disconnect()
158 if (mService.getPriority(device) > BluetoothProfile.PRIORITY_ON){ in disconnect()
159 mService.setPriority(device, BluetoothProfile.PRIORITY_ON); in disconnect()
[all …]
DMapClientProfile.java40 private BluetoothMapClient mService; field in MapClientProfile
62 mService = (BluetoothMapClient) proxy; in onServiceConnected()
64 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in onServiceConnected()
115 if (mService == null) { in connect()
118 return mService.connect(device); in connect()
122 if (mService == null) { in disconnect()
126 if (mService.getPriority(device) > BluetoothProfile.PRIORITY_ON) { in disconnect()
127 mService.setPriority(device, BluetoothProfile.PRIORITY_ON); in disconnect()
129 return mService.disconnect(device); in disconnect()
133 if (mService == null) { in getConnectionStatus()
[all …]
DHfpClientProfile.java40 private BluetoothHeadsetClient mService; field in HfpClientProfile
62 mService = (BluetoothHeadsetClient) proxy; in onServiceConnected()
64 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in onServiceConnected()
115 if (mService == null) { in getConnectedDevices()
118 return mService.getDevicesMatchingConnectionStates( in getConnectedDevices()
126 if (mService == null) { in connect()
129 return mService.connect(device); in connect()
134 if (mService == null) { in disconnect()
138 if (mService.getPriority(device) > BluetoothProfile.PRIORITY_ON){ in disconnect()
139 mService.setPriority(device, BluetoothProfile.PRIORITY_ON); in disconnect()
[all …]
DSapProfile.java40 private BluetoothSap mService; field in SapProfile
60 mService = (BluetoothSap) proxy; in onServiceConnected()
62 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in onServiceConnected()
112 if (mService == null) { in connect()
115 return mService.connect(device); in connect()
119 if (mService == null) { in disconnect()
122 if (mService.getPriority(device) > BluetoothProfile.PRIORITY_ON) { in disconnect()
123 mService.setPriority(device, BluetoothProfile.PRIORITY_ON); in disconnect()
125 return mService.disconnect(device); in disconnect()
129 if (mService == null) { in getConnectionStatus()
[all …]
DPbapClientProfile.java38 private BluetoothPbapClient mService; field in PbapClientProfile
58 mService = (BluetoothPbapClient) proxy; in onServiceConnected()
60 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in onServiceConnected()
88 return (mService != null); in pbapClientExists()
117 if (mService == null) { in getConnectedDevices()
120 return mService.getDevicesMatchingConnectionStates( in getConnectedDevices()
128 if (mService == null) { in connect()
132 return mService.connect(device); in connect()
137 if (mService == null) { in disconnect()
140 return mService.disconnect(device); in disconnect()
[all …]
DMapProfile.java40 private BluetoothMap mService; field in MapProfile
61 mService = (BluetoothMap) proxy; in onServiceConnected()
63 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in onServiceConnected()
119 if (mService == null) { in disconnect()
122 if (mService.getPriority(device) > BluetoothProfile.PRIORITY_ON) { in disconnect()
123 mService.setPriority(device, BluetoothProfile.PRIORITY_ON); in disconnect()
125 return mService.disconnect(device); in disconnect()
129 if (mService == null) { in getConnectionStatus()
132 return mService.getConnectionState(device); in getConnectionStatus()
136 if (mService == null) { in isPreferred()
[all …]
DHidProfile.java37 private BluetoothHidHost mService; field in HidProfile
53 mService = (BluetoothHidHost) proxy; in onServiceConnected()
55 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in onServiceConnected()
102 if (mService == null) return false; in connect()
103 return mService.connect(device); in connect()
107 if (mService == null) return false; in disconnect()
108 return mService.disconnect(device); in disconnect()
112 if (mService == null) { in getConnectionStatus()
115 return mService.getConnectionState(device); in getConnectionStatus()
119 if (mService == null) return false; in isPreferred()
[all …]
/frameworks/base/core/java/android/app/admin/
DDevicePolicyManager.java146 private final IDevicePolicyManager mService; field in DevicePolicyManager
159 mService = service; in DevicePolicyManager()
2339 if (mService != null) { in isAdminActiveAsUser()
2341 return mService.isAdminActive(admin, userId); in isAdminActiveAsUser()
2355 if (mService != null) { in isRemovingAdmin()
2357 return mService.isRemovingAdmin(admin, userId); in isRemovingAdmin()
2381 if (mService != null) { in getActiveAdminsAsUser()
2383 return mService.getActiveAdmins(userId); in getActiveAdminsAsUser()
2409 if (mService != null) { in packageHasActiveAdmins()
2411 return mService.packageHasActiveAdmins(packageName, userId); in packageHasActiveAdmins()
[all …]
/frameworks/base/core/java/android/appwidget/
DAppWidgetManager.java468 private final IAppWidgetService mService; field in AppWidgetManager
489 mService = service; in AppWidgetManager()
513 if (mService == null) { in updateAppWidget()
517 mService.updateAppWidgetIds(mPackageName, appWidgetIds, views); in updateAppWidget()
535 if (mService == null) { in updateAppWidgetOptions()
539 mService.updateAppWidgetOptions(mPackageName, appWidgetId, options); in updateAppWidgetOptions()
557 if (mService == null) { in getAppWidgetOptions()
561 return mService.getAppWidgetOptions(mPackageName, appWidgetId); in getAppWidgetOptions()
587 if (mService == null) { in updateAppWidget()
618 if (mService == null) { in partiallyUpdateAppWidget()
[all …]
/frameworks/base/test-runner/src/android/test/
DServiceTestCase.java118 private T mService; field in ServiceTestCase
131 return mService; in getService()
158 mService = null; in setupService()
160 mService = mServiceClass.newInstance(); in setupService()
162 assertNotNull(mService); in setupService()
168 mService, getContext(), mServiceClass.getName(), getApplication()); in setupService()
170 assertNotNull(mService); in setupService()
190 assertNotNull(mService); in startService()
193 mService.onCreate(); in startService()
196 mService.onStartCommand(intent, 0, mServiceId); in startService()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/power/
DPowerManagerServiceTest.java108 private PowerManagerService mService; field in PowerManagerServiceTest
160 mService = new PowerManagerService(mContextSpy, new Injector() { in setUp()
215 mService.systemReady(null); in startSystem()
233 mService.onBootPhase(SystemService.PHASE_BOOT_COMPLETED); in startSystem()
237 mService.getBinderServiceInstance().goToSleep(SystemClock.uptimeMillis(), in forceSleep()
242 mService.getBinderServiceInstance().nap(SystemClock.uptimeMillis()); in forceDream()
246 mService.getBinderServiceInstance().wakeUp(SystemClock.uptimeMillis(), in forceAwake()
251 mService.getBinderServiceInstance().goToSleep(SystemClock.uptimeMillis(), in forceDozing()
265 mService.updatePowerRequestFromBatterySaverPolicy(mDisplayPowerRequest); in testUpdatePowerScreenPolicy_UpdateDisplayPowerRequest()
274 int reason = mService.getLastShutdownReasonInternal(TEST_LAST_REBOOT_PROPERTY); in testGetLastShutdownReasonInternal()
[all …]
DThermalManagerServiceTest.java67 private ThermalManagerService mService; field in ThermalManagerServiceTest
160 mService = new ThermalManagerService(mContext, mFakeHal); in setUp()
162 assertTrue(mService.mService.registerThermalEventListener(mEventListener1)); in setUp()
163 assertTrue(mService.mService.registerThermalStatusListener(mStatusListener1)); in setUp()
164 assertTrue(mService.mService.registerThermalEventListenerWithType(mEventListener2, in setUp()
166 assertTrue(mService.mService.registerThermalStatusListener(mStatusListener2)); in setUp()
176 mService.onBootPhase(SystemService.PHASE_ACTIVITY_MANAGER_READY); in setUp()
208 assertTrue(mService.mService.registerThermalEventListener(mEventListener1)); in testRegister()
209 assertTrue(mService.mService.registerThermalStatusListener(mStatusListener1)); in testRegister()
218 assertTrue(mService.mService.registerThermalEventListenerWithType(mEventListener2, in testRegister()
[all …]
/frameworks/base/services/core/java/com/android/server/hdmi/
DHdmiCecLocalDevicePlayback.java71 … mAutoTvOff = mService.readBooleanSetting(Global.HDMI_CONTROL_AUTO_DEVICE_OFF_ENABLED, false); in HdmiCecLocalDevicePlayback()
75 mService.writeBooleanSetting(Global.HDMI_CONTROL_AUTO_DEVICE_OFF_ENABLED, mAutoTvOff); in HdmiCecLocalDevicePlayback()
82 if (reason == mService.INITIATED_BY_ENABLE_CEC) { in onAddressAllocated()
83 mService.setAndBroadcastActiveSource(mService.getPhysicalAddress(), in onAddressAllocated()
86 mService.sendCecCommand(HdmiCecMessageBuilder.buildReportPhysicalAddressCommand( in onAddressAllocated()
87 mAddress, mService.getPhysicalAddress(), mDeviceType)); in onAddressAllocated()
88 mService.sendCecCommand(HdmiCecMessageBuilder.buildDeviceVendorIdCommand( in onAddressAllocated()
89 mAddress, mService.getVendorId())); in onAddressAllocated()
90 if (mService.audioSystem() == null) { in onAddressAllocated()
94 mService.sendCecCommand(HdmiCecMessageBuilder.buildGiveSystemAudioModeStatus( in onAddressAllocated()
[all …]
/frameworks/base/core/java/android/app/
DUiModeManager.java127 private IUiModeManager mService; field in UiModeManager
131 mService = IUiModeManager.Stub.asInterface( in UiModeManager()
162 if (mService != null) { in enableCarMode()
164 mService.enableCarMode(flags); in enableCarMode()
185 if (mService != null) { in disableCarMode()
187 mService.disableCarMode(flags); in disableCarMode()
205 if (mService != null) { in getCurrentModeType()
207 return mService.getCurrentModeType(); in getCurrentModeType()
248 if (mService != null) { in setNightMode()
250 mService.setNightMode(mode); in setNightMode()
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DBuzzBeepBlinkTest.java100 private NotificationManagerService mService; field in BuzzBeepBlinkTest
148 mService = spy(new NotificationManagerService(getContext())); in setUp()
149 mService.setAudioManager(mAudioManager); in setUp()
150 mService.setVibrator(mVibrator); in setUp()
151 mService.setSystemReady(true); in setUp()
152 mService.setHandler(mHandler); in setUp()
153 mService.setLights(mLight); in setUp()
154 mService.setScreenOn(false); in setUp()
155 mService.setFallbackVibrationPattern(FALLBACK_VIBRATION_PATTERN); in setUp()
156 mService.setUsageStats(mUsageStats); in setUp()
[all …]
/frameworks/base/services/core/java/com/android/server/policy/keyguard/
DKeyguardServiceWrapper.java40 private IKeyguardService mService; field in KeyguardServiceWrapper
45 mService = service; in KeyguardServiceWrapper()
52 mService.verifyUnlock(callback); in verifyUnlock()
61 mService.setOccluded(isOccluded, animate); in setOccluded()
70 mService.addStateMonitorCallback(callback); in addStateMonitorCallback()
79 mService.dismiss(callback, message); in dismiss()
88 mService.onDreamingStarted(); in onDreamingStarted()
97 mService.onDreamingStopped(); in onDreamingStopped()
106 mService.onStartedGoingToSleep(reason); in onStartedGoingToSleep()
115 mService.onFinishedGoingToSleep(reason, cameraGestureTriggered); in onFinishedGoingToSleep()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DInputManagerCallback.java22 private final WindowManagerService mService; field in InputManagerCallback
41 mService = service; in InputManagerCallback()
55 synchronized (mService.mGlobalLock) { in notifyInputChannelBroken()
56 WindowState windowState = mService.windowForClientLocked(null, token, false); in notifyInputChannelBroken()
75 synchronized (mService.mGlobalLock) { in notifyANR()
77 windowState = mService.windowForClientLocked(null, token, false); in notifyANR()
90 int systemAlertLayer = mService.mPolicy.getWindowLayerFromTypeLw( in notifyANR()
102 mService.saveANRStateLocked(appWindowToken, windowState, reason); in notifyANR()
106 mService.mAtmInternal.saveANRState(reason); in notifyANR()
121 long timeout = mService.mAmInternal.inputDispatchingTimedOut( in notifyANR()
[all …]
DWindowSurfacePlacer.java40 private final WindowManagerService mService; field in WindowSurfacePlacer
59 mService = service; in WindowSurfacePlacer()
61 synchronized (mService.mGlobalLock) { in WindowSurfacePlacer()
106 mService.mAnimationHandler.removeCallbacks(mPerformSurfacePlacement); in performSurfacePlacement()
109 mService.mRoot.mWallpaperActionPending = false; in performSurfacePlacement()
123 final DisplayContent defaultDisplay = mService.getDefaultDisplayContentLocked(); in performSurfacePlacementLoop()
131 if (!mService.mDisplayReady) { in performSurfacePlacementLoop()
140 if (!mService.mForceRemoves.isEmpty()) { in performSurfacePlacementLoop()
143 while (!mService.mForceRemoves.isEmpty()) { in performSurfacePlacementLoop()
144 final WindowState ws = mService.mForceRemoves.remove(0); in performSurfacePlacementLoop()
[all …]
/frameworks/base/core/java/android/hardware/biometrics/
DBiometricManager.java69 private final IBiometricService mService; field in BiometricManager
91 mService = service; in BiometricManager()
107 if (mService != null) { in canAuthenticate()
109 return mService.canAuthenticate(mContext.getOpPackageName()); in canAuthenticate()
130 if (mService != null) { in registerEnabledOnKeyguardCallback()
132 mService.registerEnabledOnKeyguardCallback(callback); in registerEnabledOnKeyguardCallback()
147 if (mService != null) { in setActiveUser()
149 mService.setActiveUser(userId); in setActiveUser()
166 if (mService != null) { in resetLockout()
168 mService.resetLockout(token); in resetLockout()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DLockSettingsServiceTests.java99 mService.setLockCredential("newpwd".getBytes(), CREDENTIAL_TYPE_PASSWORD, in testChangePasswordFailPrimaryUser()
111 mService.setLockCredential(null, CREDENTIAL_TYPE_NONE, PASSWORD.getBytes(), in testClearPasswordPrimaryUser()
113 assertFalse(mService.havePassword(PRIMARY_USER_ID)); in testClearPasswordPrimaryUser()
114 assertFalse(mService.havePattern(PRIMARY_USER_ID)); in testClearPasswordPrimaryUser()
121 mService.setLockCredential(firstUnifiedPassword.getBytes(), in testManagedProfileUnifiedChallenge()
124 mService.setSeparateProfileChallengeEnabled(MANAGED_PROFILE_USER_ID, false, null); in testManagedProfileUnifiedChallenge()
140 assertEquals(VerifyCredentialResponse.RESPONSE_OK, mService.verifyCredential( in testManagedProfileUnifiedChallenge()
157 mService.setLockCredential(secondUnifiedPassword.getBytes(), in testManagedProfileUnifiedChallenge()
165 mService.setLockCredential(null, LockPatternUtils.CREDENTIAL_TYPE_NONE, in testManagedProfileUnifiedChallenge()
176 mService.setLockCredential(primaryPassword.getBytes(), in testManagedProfileSeparateChallenge()
[all …]

12345678910>>...18