Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DSyntheticPasswordTests.java337 long handle = mLocalService.addEscrowToken(token, PRIMARY_USER_ID, null); in testTokenBasedResetPassword()
338 assertFalse(mLocalService.isEscrowTokenActive(handle, PRIMARY_USER_ID)); in testTokenBasedResetPassword()
343 assertTrue(mLocalService.isEscrowTokenActive(handle, PRIMARY_USER_ID)); in testTokenBasedResetPassword()
346 mLocalService.setLockCredentialWithToken(pattern, handle, token, PRIMARY_USER_ID); in testTokenBasedResetPassword()
367 long handle = mLocalService.addEscrowToken(token, PRIMARY_USER_ID, null); in testTokenBasedClearPassword()
368 assertFalse(mLocalService.isEscrowTokenActive(handle, PRIMARY_USER_ID)); in testTokenBasedClearPassword()
372 assertTrue(mLocalService.isEscrowTokenActive(handle, PRIMARY_USER_ID)); in testTokenBasedClearPassword()
374 mLocalService.setLockCredentialWithToken(nonePassword(), handle, token, PRIMARY_USER_ID); in testTokenBasedClearPassword()
376 mLocalService.setLockCredentialWithToken(pattern, handle, token, in testTokenBasedClearPassword()
393 long handle = mLocalService.addEscrowToken(token, PRIMARY_USER_ID, null); in testTokenBasedResetPasswordAfterCredentialChanges()
[all …]
DWeakEscrowTokenTests.java113 assertTrue(mLocalService.setLockCredentialWithToken( in testWeakTokensRemovedIfCredentialChanged()
115 assertFalse(mLocalService.isEscrowTokenActive(handle, PRIMARY_USER_ID)); in testWeakTokensRemovedIfCredentialChanged()
173 assertNull(mLocalService.getUserPasswordMetrics(PRIMARY_USER_ID)); in testUnlockUserWithToken_weakEscrowToken()
175 assertTrue(mLocalService.unlockUserWithToken(handle, token, PRIMARY_USER_ID)); in testUnlockUserWithToken_weakEscrowToken()
177 mLocalService.getUserPasswordMetrics(PRIMARY_USER_ID)); in testUnlockUserWithToken_weakEscrowToken()
DLockSettingsServiceTests.java435 mLocalService.registerLockSettingsStateListener(listener); in testVerifyCredential_notifyLockSettingsStateListeners_whenGoodPassword()
452 mLocalService.registerLockSettingsStateListener(listener); in testVerifyCredential_notifyLockSettingsStateListeners_whenBadPassword()
469 mLocalService.registerLockSettingsStateListener(listener); in testLockSettingsStateListener_registeredThenUnregistered()
475 mLocalService.unregisterLockSettingsStateListener(listener); in testLockSettingsStateListener_registeredThenUnregistered()
DBaseLockSettingsServiceTests.java91 LockSettingsInternal mLocalService; field in BaseLockSettingsServiceTests
238 mLocalService = LocalServices.getService(LockSettingsInternal.class); in setUp_baseServices()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/companion/virtual/
DVirtualDeviceManagerServiceMockingTest.java52 private VirtualDeviceManagerInternal mLocalService; field in VirtualDeviceManagerServiceMockingTest
57 mLocalService = mVdms.getLocalServiceInstance(); in setUp()
63 mLocalService.onAuthenticationPrompt(UID_1); in onAuthenticationPrompt_noDevices_noCrash()
71 mLocalService.onAuthenticationPrompt(UID_1); in onAuthenticationPrompt_oneDevice_showToastWhereUidIsRunningIsCalled()
87 mLocalService.onAuthenticationPrompt(UID_1); in onAuthenticationPrompt_twoDevices_showToastWhereUidIsRunningIsCalledOnBoth()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/deviceidle/
DBluetoothConstraint.java45 private final DeviceIdleInternal mLocalService; field in BluetoothConstraint
55 mLocalService = localService; in BluetoothConstraint()
91 mLocalService.onConstraintStateChanged(this, /* active= */ false); in cancelMonitoringDueToTimeout()
105 mLocalService.onConstraintStateChanged(this, /* active= */ mConnected); in updateAndReportActiveLocked()
129 mLocalService.exitIdle("bluetooth");
/frameworks/base/services/tests/servicestests/src/com/android/server/companion/virtual/
DVirtualDeviceManagerServiceTest.java239 private VirtualDeviceManagerInternal mLocalService; field in VirtualDeviceManagerServiceTest
392 new CameraAccessController(mContext, mLocalService, mCameraAccessBlockedCallback); in setUp()
398 mLocalService = mVdms.getLocalServiceInstance(); in setUp()
416 assertThat(mLocalService.getDeviceIdForDisplayId(Display.INVALID_DISPLAY)) in getDeviceIdForDisplayId_invalidDisplayId_returnsDefault()
424 assertThat(mLocalService.getDeviceIdForDisplayId(Display.DEFAULT_DISPLAY)) in getDeviceIdForDisplayId_defaultDisplayId_returnsDefault()
432 assertThat(mLocalService.getDeviceIdForDisplayId(NON_EXISTENT_DISPLAY_ID)) in getDeviceIdForDisplayId_nonExistentDisplayId_returnsDefault()
442 assertThat(mLocalService.getDeviceIdForDisplayId(DISPLAY_ID_1)) in getDeviceIdForDisplayId_withValidVirtualDisplayId_returnsDeviceId()
449 assertThat(mLocalService.isValidVirtualDeviceId(DEVICE_ID_INVALID)).isFalse(); in isDeviceIdValid_invalidDeviceId_returnsFalse()
455 assertThat(mLocalService.isValidVirtualDeviceId(DEVICE_ID_DEFAULT)).isFalse(); in isDeviceIdValid_defaultDeviceId_returnsFalse()
461 assertThat(mLocalService.isValidVirtualDeviceId(mDeviceImpl.getDeviceId())).isTrue(); in isDeviceIdValid_validVirtualDeviceId_returnsTrue()
[all …]
/frameworks/base/core/tests/coretests/src/android/content/
DCrossUserContentService.java28 return mLocalService.asBinder(); in onBind()
31 private ICrossUserContentService mLocalService = new ICrossUserContentService.Stub() { field in CrossUserContentService
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/cpu/
DCpuMonitorServiceTest.java108 private CpuMonitorInternal mLocalService; field in CpuMonitorServiceTest
143 mLocalService.addCpuAvailabilityCallback(/* executor= */ null, in testAddRemoveCpuAvailabilityCallbackOnDebugBuild()
159 mLocalService.removeCpuAvailabilityCallback(mockCallback); in testAddRemoveCpuAvailabilityCallbackOnDebugBuild()
176 mLocalService.addCpuAvailabilityCallback(/* executor= */ null, in testAddRemoveCpuAvailabilityCallbackOnUserBuild()
192 mLocalService.removeCpuAvailabilityCallback(mockCallback); in testAddRemoveCpuAvailabilityCallbackOnUserBuild()
204 mLocalService.removeCpuAvailabilityCallback(mockCallback); in testRemoveInvalidCpuAvailabilityCallback()
548 mLocalService = LocalServices.getService(CpuMonitorInternal.class); in startService()
550 assertWithMessage("CpuMonitorInternal local service").that(mLocalService).isNotNull(); in startService()
585 mLocalService.addCpuAvailabilityCallback(executor, config, mockCallback); in addCpuAvailabilityCallback()
/frameworks/base/services/companion/java/com/android/server/companion/virtual/
DVirtualDeviceManagerService.java107 private final VirtualDeviceManagerInternal mLocalService; field in VirtualDeviceManagerService
146 mLocalService = new LocalService(); in VirtualDeviceManagerService()
180 publishLocalService(VirtualDeviceManagerInternal.class, mLocalService); in onStart()
228 return new CameraAccessController(userContext, mLocalService, this::onCameraAccessBlocked); in getCameraAccessController()
233 return mLocalService; in getLocalServiceInstance()
246 mLocalService.onAppsOnVirtualDeviceChanged(); in notifyRunningAppsChanged()
377 mLocalService.onPersistentDeviceIdsRemoved(removedPersistentDeviceIds); in onCdmAssociationsChanged()
593 return new ArrayList<>(mLocalService.getAllPersistentDeviceIds()); in getAllPersistentDeviceIds()
705 return mLocalService in getDeviceIdsForUid()
/frameworks/base/services/tests/servicestests/src/com/android/server/people/
DPeopleServiceTest.java88 private PeopleService.LocalService mLocalService; field in PeopleServiceTest
137 mLocalService = (PeopleService.LocalService) mServiceInternal; in setUp()
163 SessionInfo sessionInfo = mLocalService.getSessionInfo(mSessionId); in testRegisterCallbacks()
/frameworks/base/services/core/java/com/android/server/location/
DLocationManagerService.java257 private final LocalService mLocalService; field in LocationManagerService
287 mLocalService = new LocalService(); in LocationManagerService()
288 LocalServices.addService(LocationManagerInternal.class, mLocalService); in LocationManagerService()
941 boolean isLocationProvider = mLocalService.isProvider(null, identity); in validateLocationRequest()
1057 boolean isLocationProvider = mLocalService.isProvider(null, identity); in validateLastLocationRequest()
1089 return mLocalService.getGnssTimeMillis(); in getGnssTimeMillis()
1383 return mLocalService.isProviderEnabledForUser(provider, userId); in isProviderEnabledForUser()
/frameworks/base/services/core/java/com/android/server/cpu/
DCpuMonitorService.java105 private final CpuMonitorInternal mLocalService = new CpuMonitorInternal() { field in CpuMonitorService
190 publishLocalService(CpuMonitorInternal.class, mLocalService); in onStart()
/frameworks/base/services/core/java/com/android/server/storage/
DDeviceStorageMonitorService.java328 publishLocalService(DeviceStorageMonitorInternal.class, mLocalService); in onStart()
335 private final DeviceStorageMonitorInternal mLocalService = new DeviceStorageMonitorInternal() { field in DeviceStorageMonitorService
/frameworks/base/services/core/java/com/android/server/pm/
DUserManagerService.java541 private final LocalService mLocalService; field in UserManagerService
1074 mLocalService = new LocalService(); in UserManagerService()
1075 LocalServices.addService(UserManagerInternal.class, mLocalService); in UserManagerService()
1145 return mLocalService; in getInternalForInjectorOnly()
1805 if (!km.isDeviceLocked(mLocalService.getProfileParentId(userId)) in requestQuietModeEnabled()
2425 return mLocalService.isUserUnlockingOrUnlocked(userId); in isUserUnlockingOrUnlocked()
2431 return mLocalService.isUserUnlocked(userId); in isUserUnlocked()
2437 return mLocalService.isUserRunning(userId); in isUserRunning()
2764 if (mLocalService.hasUserRestriction(DISALLOW_USER_SWITCH, userId)) { in getUserSwitchability()
2777 final boolean systemUserUnlocked = mLocalService.isUserUnlocked(UserHandle.USER_SYSTEM); in getUserSwitchability()
[all …]
DCrossProfileAppsServiceImpl.java80 private final LocalService mLocalService = new LocalService(); field in CrossProfileAppsServiceImpl
733 return mLocalService;
/frameworks/base/services/core/java/com/android/server/apphibernation/
DAppHibernationService.java167 LocalServices.addService(AppHibernationManagerInternal.class, mLocalService); in AppHibernationService()
829 private final AppHibernationManagerInternal mLocalService = new LocalService(this); field in AppHibernationService
/frameworks/base/services/core/java/com/android/server/power/
DLowPowerStandbyController.java148 private final LowPowerStandbyControllerInternal mLocalService = new LocalService(); field in LowPowerStandbyController
419 LocalServices.addService(LowPowerStandbyControllerInternal.class, mLocalService); in systemReady()
DPowerManagerService.java327 private final LocalService mLocalService; field in PowerManagerService
1171 mLocalService = new LocalService();
1319 publishLocalService(PowerManagerInternal.class, mLocalService);
6965 return mLocalService;
/frameworks/base/services/contentcapture/java/com/android/server/contentcapture/
DContentCaptureManagerService.java166 private final LocalService mLocalService = new LocalService(); field in ContentCaptureManagerService
325 publishLocalService(ContentCaptureManagerInternal.class, mLocalService); in onStart()
/frameworks/base/services/autofill/java/com/android/server/autofill/
DAutofillManagerService.java172 private final LocalService mLocalService = new LocalService(); field in AutofillManagerService
478 publishLocalService(AutofillManagerInternal.class, mLocalService); in onStart()
/frameworks/base/services/core/java/com/android/server/
DUiModeManagerService.java224 private final LocalService mLocalService = new LocalService(); field in UiModeManagerService
526 publishLocalService(UiModeManagerInternal.class, mLocalService); in onStart()
/frameworks/av/media/libaudioclient/
DAudioSystem.cpp113 mService = mLocalService; in getService()
160 mLocalService = service; in setLocalService()
198 sp<ServiceInterface> mLocalService GUARDED_BY(mMutex);
/frameworks/base/apex/jobscheduler/service/java/com/android/server/
DDeviceIdleController.java329 private DeviceIdleInternal mLocalService; field in DeviceIdleController
2676 mLocalService = new LocalService(); in onStart()
2677 publishLocalService(DeviceIdleInternal.class, mLocalService); in onStart()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java933 final LocalService mLocalService; field in DevicePolicyManagerService
2090 mLocalService = new LocalService(); in DevicePolicyManagerService()
2118 LocalServices.addService(DevicePolicyManagerLiteInternal.class, mLocalService); in DevicePolicyManagerService()
2170 LocalServices.addService(DevicePolicyManagerInternal.class, mLocalService); in DevicePolicyManagerService()
4825 mLocalService.notifyCrossProfileProvidersChanged(caller.getUserId(),
4879 mLocalService.notifyCrossProfileProvidersChanged(caller.getUserId(),
10549 mLocalService.broadcastIntentToManifestReceivers(intent,