/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | ShortcutManagerTest6.java | 45 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/base/core/java/android/app/admin/ |
D | DevicePolicyManager.java | 146 private final IDevicePolicyManager mService; field in DevicePolicyManager 159 mService = service; in DevicePolicyManager() 2340 if (mService != null) { in isAdminActiveAsUser() 2342 return mService.isAdminActive(admin, userId); in isAdminActiveAsUser() 2356 if (mService != null) { in isRemovingAdmin() 2358 return mService.isRemovingAdmin(admin, userId); in isRemovingAdmin() 2382 if (mService != null) { in getActiveAdminsAsUser() 2384 return mService.getActiveAdmins(userId); in getActiveAdminsAsUser() 2410 if (mService != null) { in packageHasActiveAdmins() 2412 return mService.packageHasActiveAdmins(packageName, userId); in packageHasActiveAdmins() [all …]
|
/frameworks/av/services/mediaresourcemanager/test/ |
D | ResourceManagerService_test.cpp | 113 : mReclaimed(false), mPid(pid), mService(service) {} in TestClient() 117 mService->removeClient(mPid, (int64_t) client.get()); in reclaimResource() 140 sp<ResourceManagerService> mService; member 164 mService(new ResourceManagerService(new TestProcessInfo, mSystemCB)), in ResourceManagerServiceTest() 165 mTestClient1(new TestClient(kTestPid1, mService)), in ResourceManagerServiceTest() 166 mTestClient2(new TestClient(kTestPid2, mService)), in ResourceManagerServiceTest() 167 mTestClient3(new TestClient(kTestPid2, mService)) { in ResourceManagerServiceTest() 224 mService->addResource(kTestPid1, kTestUid1, getId(mTestClient1), mTestClient1, resources1); in addResource() 228 mService->addResource(kTestPid1, kTestUid1, getId(mTestClient1), mTestClient1, resources11); in addResource() 234 mService->addResource(kTestPid2, kTestUid2, getId(mTestClient2), mTestClient2, resources2); in addResource() [all …]
|
/frameworks/base/core/java/android/appwidget/ |
D | AppWidgetManager.java | 468 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/services/tests/uiservicestests/src/com/android/server/notification/ |
D | BuzzBeepBlinkTest.java | 100 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/tests/servicestests/src/com/android/server/power/ |
D | PowerManagerServiceTest.java | 112 private PowerManagerService mService; field in PowerManagerServiceTest 168 mService = new PowerManagerService(mContextSpy, new Injector() { in createService() 202 return mService; in createService() 224 mService.systemReady(null); in startSystem() 242 mService.onBootPhase(SystemService.PHASE_BOOT_COMPLETED); in startSystem() 246 mService.getBinderServiceInstance().goToSleep(SystemClock.uptimeMillis(), in forceSleep() 251 mService.getBinderServiceInstance().nap(SystemClock.uptimeMillis()); in forceDream() 255 mService.getBinderServiceInstance().wakeUp(SystemClock.uptimeMillis(), in forceAwake() 260 mService.getBinderServiceInstance().goToSleep(SystemClock.uptimeMillis(), in forceDozing() 275 mService.updatePowerRequestFromBatterySaverPolicy(mDisplayPowerRequest); in testUpdatePowerScreenPolicy_UpdateDisplayPowerRequest() [all …]
|
D | ThermalManagerServiceTest.java | 67 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/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
D | A2dpProfile.java | 45 private BluetoothA2dp mService; field in A2dpProfile 67 mService = (BluetoothA2dp) proxy; in onServiceConnected() 69 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in onServiceConnected() 150 if (mService == null) { in getDevicesByStates() 153 return mService.getDevicesMatchingConnectionStates(states); in getDevicesByStates() 157 if (mService == null) { in getConnectionStatus() 160 return mService.getConnectionState(device); in getConnectionStatus() 173 if (mService == null) return null; in getActiveDevice() 174 return mService.getActiveDevice(); in getActiveDevice() 179 if (mService == null) { in isEnabled() [all …]
|
D | HeadsetProfile.java | 44 private BluetoothHeadset mService; field in HeadsetProfile 66 mService = (BluetoothHeadset) proxy; in onServiceConnected() 68 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in onServiceConnected() 118 if (mService == null) { in getConnectionStatus() 121 return mService.getConnectionState(device); in getConnectionStatus() 135 if (mService == null) { in getActiveDevice() 138 return mService.getActiveDevice(); in getActiveDevice() 142 if (mService == null) { in isAudioOn() 145 return mService.isAudioOn(); in isAudioOn() 149 if (mService == null) { in getAudioState() [all …]
|
D | HearingAidProfile.java | 42 private BluetoothHearingAid mService; field in HearingAidProfile 59 mService = (BluetoothHearingAid) proxy; in onServiceConnected() 61 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in onServiceConnected() 148 if (mService == null) { in getDevicesByStates() 151 return mService.getDevicesMatchingConnectionStates(states); in getDevicesByStates() 155 if (mService == null) { in getConnectionStatus() 158 return mService.getConnectionState(device); in getConnectionStatus() 171 if (mService == null) return new ArrayList<>(); in getActiveDevices() 172 return mService.getActiveDevices(); in getActiveDevices() 177 if (mService == null || device == null) { in isEnabled() [all …]
|
D | A2dpSinkProfile.java | 40 private BluetoothA2dpSink mService; field in A2dpSinkProfile 61 mService = (BluetoothA2dpSink) proxy; in onServiceConnected() 63 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in onServiceConnected() 109 if (mService == null) { in getConnectedDevices() 112 return mService.getDevicesMatchingConnectionStates( in getConnectedDevices() 119 if (mService == null) { in getConnectionStatus() 122 return mService.getConnectionState(device); in getConnectionStatus() 127 if (mService == null) { in isEnabled() 130 return mService.getConnectionPolicy(device) > CONNECTION_POLICY_FORBIDDEN; in isEnabled() 135 if (mService == null) { in getConnectionPolicy() [all …]
|
D | PbapClientProfile.java | 41 private BluetoothPbapClient mService; field in PbapClientProfile 61 mService = (BluetoothPbapClient) proxy; in onServiceConnected() 63 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in onServiceConnected() 91 return (mService != null); in pbapClientExists() 120 if (mService == null) { in getConnectedDevices() 123 return mService.getDevicesMatchingConnectionStates( in getConnectedDevices() 130 if (mService == null) { in getConnectionStatus() 133 return mService.getConnectionState(device); in getConnectionStatus() 138 if (mService == null) { in isEnabled() 141 return mService.getConnectionPolicy(device) > CONNECTION_POLICY_FORBIDDEN; in isEnabled() [all …]
|
D | SapProfile.java | 43 private BluetoothSap mService; field in SapProfile 63 mService = (BluetoothSap) proxy; in onServiceConnected() 65 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in onServiceConnected() 115 if (mService == null) { in getConnectionStatus() 118 return mService.getConnectionState(device); in getConnectionStatus() 123 if (mService == null) { in isEnabled() 126 return mService.getConnectionPolicy(device) > CONNECTION_POLICY_FORBIDDEN; in isEnabled() 131 if (mService == null) { in getConnectionPolicy() 134 return mService.getConnectionPolicy(device); in getConnectionPolicy() 140 if (mService == null) { in setEnabled() [all …]
|
/frameworks/base/services/core/java/com/android/server/hdmi/ |
D | HdmiCecLocalDevicePlayback.java | 71 … 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 …]
|
D | HdmiCecLocalDeviceAudioSystem.java | 116 mService.readBooleanSetting(Global.HDMI_CEC_SWITCH_ENABLED, false); in HdmiCecLocalDeviceAudioSystem() 118 mService.readBooleanSetting(Global.HDMI_SYSTEM_AUDIO_CONTROL_ENABLED, true); in HdmiCecLocalDeviceAudioSystem() 144 TvInputInfo tvInfo = mService.getTvInputManager().getTvInputInfo(inputId); in addOrUpdateTvInput() 180 if (info.getPhysicalAddress() == mService.getPhysicalAddress()) { in addCecDevice() 295 mService.invokeDeviceEventListeners(info, status); in invokeDeviceEventListener() 303 mService.wakeUp(); in onHotplug() 305 if (mService.getPortInfo(portId).getType() == HdmiPortInfo.PORT_OUTPUT) { in onHotplug() 324 mService.unregisterTvInputCallback(mTvInputCallback); in disableDevice() 335 mService.writeStringSystemProperty( in onStandby() 346 if (reason == mService.INITIATED_BY_ENABLE_CEC) { in onAddressAllocated() [all …]
|
/frameworks/base/test-runner/src/android/test/ |
D | ServiceTestCase.java | 118 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/core/java/com/android/server/policy/keyguard/ |
D | KeyguardServiceWrapper.java | 40 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/ |
D | InputManagerCallback.java | 22 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 …]
|
D | WindowSurfacePlacer.java | 40 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 …]
|
D | AppTaskImpl.java | 39 private ActivityTaskManagerService mService; field in AppTaskImpl 45 mService = service; in AppTaskImpl() 61 synchronized (mService.mGlobalLock) { in finishAndRemoveTask() 65 if (!mService.mStackSupervisor.removeTaskByIdLocked(mTaskId, false, in finishAndRemoveTask() 79 synchronized (mService.mGlobalLock) { in getTaskInfo() 82 TaskRecord tr = mService.mRootActivityContainer.anyTaskForId(mTaskId, in getTaskInfo() 87 return mService.getRecentTasks().createRecentTaskInfo(tr); in getTaskInfo() 100 if (!mService.isSameApp(callingUid, callingPackage)) { in moveToFront() 108 synchronized (mService.mGlobalLock) { in moveToFront() 109 if (!mService.checkAppSwitchAllowedLocked(callingPid, callingUid, -1, -1, in moveToFront() [all …]
|
/frameworks/base/core/java/android/hardware/biometrics/ |
D | BiometricManager.java | 69 private final IBiometricService mService; field in BiometricManager 91 mService = service; in BiometricManager() 115 if (mService != null) { in canAuthenticate() 117 return mService.canAuthenticate(mContext.getOpPackageName(), userId); in canAuthenticate() 138 if (mService != null) { in hasEnrolledBiometrics() 140 return mService.hasEnrolledBiometrics(userId); in hasEnrolledBiometrics() 157 if (mService != null) { in registerEnabledOnKeyguardCallback() 159 mService.registerEnabledOnKeyguardCallback(callback); in registerEnabledOnKeyguardCallback() 174 if (mService != null) { in setActiveUser() 176 mService.setActiveUser(userId); in setActiveUser() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
D | LockSettingsServiceTests.java | 106 mService.setLockCredential("newpwd".getBytes(), CREDENTIAL_TYPE_PASSWORD, in testChangePasswordFailPrimaryUser() 119 mService.setLockCredential(null, CREDENTIAL_TYPE_NONE, PASSWORD.getBytes(), in testClearPasswordPrimaryUser() 121 assertFalse(mService.havePassword(PRIMARY_USER_ID)); in testClearPasswordPrimaryUser() 122 assertFalse(mService.havePattern(PRIMARY_USER_ID)); in testClearPasswordPrimaryUser() 130 mService.setLockCredential(firstUnifiedPassword.getBytes(), in testManagedProfileUnifiedChallenge() 133 mService.setSeparateProfileChallengeEnabled(MANAGED_PROFILE_USER_ID, false, null); in testManagedProfileUnifiedChallenge() 149 assertEquals(VerifyCredentialResponse.RESPONSE_OK, mService.verifyCredential( in testManagedProfileUnifiedChallenge() 166 mService.setLockCredential(secondUnifiedPassword.getBytes(), in testManagedProfileUnifiedChallenge() 174 mService.setLockCredential(null, LockPatternUtils.CREDENTIAL_TYPE_NONE, in testManagedProfileUnifiedChallenge() 186 mService.setLockCredential(primaryPassword.getBytes(), in testManagedProfileSeparateChallenge() [all …]
|
/frameworks/base/core/java/android/app/ |
D | UiModeManager.java | 205 private IUiModeManager mService; field in UiModeManager 219 mService = IUiModeManager.Stub.asInterface( in UiModeManager() 311 if (mService != null) { in enableCarMode() 313 mService.enableCarMode(flags, priority, in enableCarMode() 363 if (mService != null) { in disableCarMode() 365 mService.disableCarModeByCallingPackage(flags, in disableCarMode() 384 if (mService != null) { in getCurrentModeType() 386 return mService.getCurrentModeType(); in getCurrentModeType() 427 if (mService != null) { in setNightMode() 429 mService.setNightMode(mode); in setNightMode() [all …]
|
/frameworks/base/services/backup/java/com/android/server/backup/ |
D | Trampoline.java | 112 private volatile BackupManagerService mService; field in Trampoline 208 return mService != null && mService.getServiceUsers().get(userId) != null in isUserReadyForBackup() 256 if (mService == null) { in initializeService() 257 mService = createBackupManagerService(); in initializeService() 276 if (mService != null && isBackupActivatedForUser(userId)) { in startServiceForUser() 278 mService.startServiceForUser(userId); in startServiceForUser() 289 if (mService != null) { in stopUser() 291 mService.stopServiceForUser(userId); in stopUser() 354 if (mService == null) { in setBackupServiceActive() 355 mService = createBackupManagerService(); in setBackupServiceActive() [all …]
|
/frameworks/base/core/java/android/os/ |
D | SystemVibrator.java | 32 private final IVibratorService mService; field in SystemVibrator 37 mService = IVibratorService.Stub.asInterface(ServiceManager.getService("vibrator")); in SystemVibrator() 43 mService = IVibratorService.Stub.asInterface(ServiceManager.getService("vibrator")); in SystemVibrator() 48 if (mService == null) { in hasVibrator() 53 return mService.hasVibrator(); in hasVibrator() 61 if (mService == null) { in hasAmplitudeControl() 66 return mService.hasAmplitudeControl(); in hasAmplitudeControl() 75 if (mService == null) { in setAlwaysOnEffect() 80 return mService.setAlwaysOnEffect(uid, opPkg, alwaysOnId, effect, attributes); in setAlwaysOnEffect() 90 if (mService == null) { in vibrate() [all …]
|