Home
last modified time | relevance | path

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

12345678910>>...27

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/
DJobSchedulerServiceTest.java98 private JobSchedulerService mService; field in JobSchedulerServiceTest
180 mService = new TestJobSchedulerService(mContext); in setUp()
188 mService.cancelJobsForUid(TEST_UID, true, in tearDown()
268 ConnectivityController connectivityController = mService.getConnectivityController(); in testGetMinJobExecutionGuaranteeMs()
270 mService.mConstants.RUNTIME_MIN_GUARANTEE_MS = 10 * MINUTE_IN_MILLIS; in testGetMinJobExecutionGuaranteeMs()
271 mService.mConstants.RUNTIME_MIN_UI_GUARANTEE_MS = 2 * HOUR_IN_MILLIS; in testGetMinJobExecutionGuaranteeMs()
272 mService.mConstants.RUNTIME_MIN_UI_DATA_TRANSFER_GUARANTEE_BUFFER_FACTOR = 1.5f; in testGetMinJobExecutionGuaranteeMs()
273 mService.mConstants.RUNTIME_MIN_UI_DATA_TRANSFER_GUARANTEE_MS = HOUR_IN_MILLIS; in testGetMinJobExecutionGuaranteeMs()
274 mService.mConstants.RUNTIME_UI_LIMIT_MS = 6 * HOUR_IN_MILLIS; in testGetMinJobExecutionGuaranteeMs()
276 assertEquals(mService.mConstants.RUNTIME_MIN_EJ_GUARANTEE_MS, in testGetMinJobExecutionGuaranteeMs()
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/
DUiModeManagerServiceTest.java117 private IUiModeManager mService; field in UiModeManagerServiceTest
218 mService = mUiManagerService.getService(); in setUp()
231 mService.setNightMode(MODE_NIGHT_NO); in setNightModeActivated_overridesFunctionCorrectly()
238 mService.setNightMode(MODE_NIGHT_AUTO); in setNightModeActivated_overridesFunctionCorrectly()
241 mService.setNightModeActivated(true); in setNightModeActivated_overridesFunctionCorrectly()
261 mService.setNightModeCustomType(MODE_NIGHT_CUSTOM_TYPE_BEDTIME); in setNightModeActivated_true_withCustomModeBedtime_shouldOverrideNightModeCorrectly()
264 mService.setNightModeActivated(true); in setNightModeActivated_true_withCustomModeBedtime_shouldOverrideNightModeCorrectly()
272 mService.setNightModeCustomType(MODE_NIGHT_CUSTOM_TYPE_BEDTIME); in setNightModeActivated_false_withCustomModeBedtime_shouldOverrideNightModeCorrectly()
275 mService.setNightModeActivated(true); in setNightModeActivated_false_withCustomModeBedtime_shouldOverrideNightModeCorrectly()
276 mService.setNightModeActivated(false); in setNightModeActivated_false_withCustomModeBedtime_shouldOverrideNightModeCorrectly()
[all …]
/frameworks/base/core/java/android/app/admin/
DDevicePolicyManager.java218 private final IDevicePolicyManager mService; field in DevicePolicyManager
233 mService = service; in DevicePolicyManager()
243 return mService; in getService()
4060 if (mService != null) { in setMtePolicy()
4062 mService.setMtePolicy(policy, mContext.getPackageName()); in setMtePolicy()
4082 if (mService != null) { in getMtePolicy()
4084 return mService.getMtePolicy(mContext.getPackageName()); in getMtePolicy()
4138 if (mService == null) return false; in isSafeOperation()
4141 return mService.isSafeOperation(reason); in isSafeOperation()
4160 if (mService != null) { in acknowledgeNewUserDisclaimer()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest6.java32 assertFalse(mService.hasShortcutHostPermissionInner(PACKAGE_SYSTEM_LAUNCHER, USER_0)); in testHasShortcutHostPermissionInner_with3pLauncher_complicated()
33 assertFalse(mService.hasShortcutHostPermissionInner(PACKAGE_FALLBACK_LAUNCHER, USER_0)); in testHasShortcutHostPermissionInner_with3pLauncher_complicated()
34 assertFalse(mService.hasShortcutHostPermissionInner(CALLING_PACKAGE_1, USER_0)); in testHasShortcutHostPermissionInner_with3pLauncher_complicated()
35 assertTrue(mService.hasShortcutHostPermissionInner(CALLING_PACKAGE_2, USER_0)); in testHasShortcutHostPermissionInner_with3pLauncher_complicated()
39 mService.getUserShortcutsLocked(USER_0).getCachedLauncher()); in testHasShortcutHostPermissionInner_with3pLauncher_complicated()
44 assertTrue(mService.hasShortcutHostPermissionInner(CALLING_PACKAGE_1, USER_0)); in testHasShortcutHostPermissionInner_with3pLauncher_complicated()
48 mService.getUserShortcutsLocked(USER_0).getCachedLauncher()); in testHasShortcutHostPermissionInner_with3pLauncher_complicated()
54 assertTrue(mService.hasShortcutHostPermissionInner(PACKAGE_SYSTEM_LAUNCHER, USER_0)); in testHasShortcutHostPermissionInner_with3pLauncher_complicated()
55 assertFalse(mService.hasShortcutHostPermissionInner(CALLING_PACKAGE_1, USER_0)); in testHasShortcutHostPermissionInner_with3pLauncher_complicated()
59 mService.getUserShortcutsLocked(USER_0).getCachedLauncher()); in testHasShortcutHostPermissionInner_with3pLauncher_complicated()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DLockscreenRepairModeTest.java48 mService.initializeSyntheticPassword(PRIMARY_USER_ID); in setUp()
53 mService.setLockCredential(newPin("1234"), nonePassword(), PRIMARY_USER_ID); in verifyPin_writeRepairModePW()
57 mService.verifyCredential( in verifyPin_writeRepairModePW()
61 mService.getCredentialType(USER_REPAIR_MODE)); in verifyPin_writeRepairModePW()
66 mService.setLockCredential(newPattern("4321"), nonePassword(), PRIMARY_USER_ID); in verifyPattern_writeRepairModePW()
70 mService.verifyCredential( in verifyPattern_writeRepairModePW()
74 mService.getCredentialType(USER_REPAIR_MODE)); in verifyPattern_writeRepairModePW()
79 mService.setLockCredential(newPassword("4321"), nonePassword(), PRIMARY_USER_ID); in verifyPassword_writeRepairModePW()
83 mService.verifyCredential( in verifyPassword_writeRepairModePW()
87 mService.getCredentialType(USER_REPAIR_MODE)); in verifyPassword_writeRepairModePW()
[all …]
DWeakEscrowTokenTests.java55 mService.initializeSyntheticPassword(PRIMARY_USER_ID); in setUp()
65 long handle = mService.addWeakEscrowToken(token, PRIMARY_USER_ID, mockListener); in testWeakTokenActivatedImmediatelyIfNoUserPassword()
66 assertTrue(mService.isWeakEscrowTokenActive(handle, PRIMARY_USER_ID)); in testWeakTokenActivatedImmediatelyIfNoUserPassword()
67 assertTrue(mService.isWeakEscrowTokenValid(handle, token, PRIMARY_USER_ID)); in testWeakTokenActivatedImmediatelyIfNoUserPassword()
79 mService.setLockCredential(password, nonePassword(), PRIMARY_USER_ID); in testWeakTokenActivatedLaterWithUserPassword()
81 long handle = mService.addWeakEscrowToken(token, PRIMARY_USER_ID, mockListener); in testWeakTokenActivatedLaterWithUserPassword()
83 assertFalse(mService.isWeakEscrowTokenActive(handle, PRIMARY_USER_ID)); in testWeakTokenActivatedLaterWithUserPassword()
85 assertEquals(VerifyCredentialResponse.RESPONSE_OK, mService.verifyCredential( in testWeakTokenActivatedLaterWithUserPassword()
88 assertTrue(mService.isWeakEscrowTokenActive(handle, PRIMARY_USER_ID)); in testWeakTokenActivatedLaterWithUserPassword()
89 assertTrue(mService.isWeakEscrowTokenValid(handle, token, PRIMARY_USER_ID)); in testWeakTokenActivatedLaterWithUserPassword()
[all …]
DLockscreenFrpTest.java58 mService.initializeSyntheticPassword(PRIMARY_USER_ID); in setUp()
63 mService.setLockCredential(newPin("1234"), nonePassword(), PRIMARY_USER_ID); in testFrpCredential_setPin()
65 assertEquals(CREDENTIAL_TYPE_PIN, mService.getCredentialType(USER_FRP)); in testFrpCredential_setPin()
67 mService.verifyCredential(newPin("1234"), USER_FRP, 0 /* flags */) in testFrpCredential_setPin()
73 mService.setLockCredential(newPattern("4321"), nonePassword(), PRIMARY_USER_ID); in testFrpCredential_setPattern()
75 assertEquals(CREDENTIAL_TYPE_PATTERN, mService.getCredentialType(USER_FRP)); in testFrpCredential_setPattern()
77 mService.verifyCredential(newPattern("4321"), USER_FRP, 0 /* flags */) in testFrpCredential_setPattern()
83 mService.setLockCredential(newPassword("4321"), nonePassword(), PRIMARY_USER_ID); in testFrpCredential_setPassword()
85 assertEquals(CREDENTIAL_TYPE_PASSWORD, mService.getCredentialType(USER_FRP)); in testFrpCredential_setPassword()
87 mService.verifyCredential(newPassword("4321"), USER_FRP, 0 /* flags */) in testFrpCredential_setPassword()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/
DBackupManagerServiceTest.java105 private BackupManagerServiceTestable mService; field in BackupManagerServiceTest
153 mService.setBackupServiceActive(NON_SYSTEM_USER, true); in onUnlockUser_startsUserService()
158 assertNotNull(mService.getUserService(NON_SYSTEM_USER)); in onUnlockUser_startsUserService()
175 mService.setBackupServiceActive(UserHandle.USER_SYSTEM, false); in startServiceForUser_backupNotActiveForUser_doesNotStartUserService()
177 mService.startServiceForUser(UserHandle.USER_SYSTEM); in startServiceForUser_backupNotActiveForUser_doesNotStartUserService()
179 assertNull(mService.getUserService(UserHandle.USER_SYSTEM)); in startServiceForUser_backupNotActiveForUser_doesNotStartUserService()
186 mService.startServiceForUser(NON_SYSTEM_USER); in startServiceForUser_backupEnabledGloballyAndActiveForUser_startsUserService()
188 assertNotNull(mService.getUserService(NON_SYSTEM_USER)); in startServiceForUser_backupEnabledGloballyAndActiveForUser_startsUserService()
205 mService.setBackupServiceActive(UserHandle.USER_SYSTEM, false); in isBackupServiceActive_systemUser_isDefault_deactivated_returnsFalse()
207 assertFalse(mService.isBackupServiceActive(UserHandle.USER_SYSTEM)); in isBackupServiceActive_systemUser_isDefault_deactivated_returnsFalse()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/devicestate/
DDeviceStateManagerServiceTest.java85 private DeviceStateManagerService mService; field in DeviceStateManagerServiceTest
99 mService = new DeviceStateManagerService(InstrumentationRegistry.getContext(), mPolicy, in setupDeviceStateManagerService()
103 mService.mActivityTaskManagerInternal = mock(ActivityTaskManagerInternal.class); in setupDeviceStateManagerService()
105 when(mService.mActivityTaskManagerInternal.getTopApp()) in setupDeviceStateManagerService()
116 mService.getHandler().runWithScissors(() -> {}, 0); in flushHandler()
122 assertEquals(mService.getCommittedState(), Optional.of(DEFAULT_DEVICE_STATE)); in baseStateChanged()
123 assertEquals(mService.getPendingState(), Optional.empty()); in baseStateChanged()
126 assertEquals(mService.getBaseState(), Optional.of(DEFAULT_DEVICE_STATE)); in baseStateChanged()
132 assertEquals(mService.getCommittedState(), Optional.of(OTHER_DEVICE_STATE)); in baseStateChanged()
133 assertEquals(mService.getPendingState(), Optional.empty()); in baseStateChanged()
[all …]
/frameworks/av/services/mediaresourcemanager/test/
DResourceManagerService_test.cpp105 mService->addResource(client1Info, mTestClient1, resources1); in addResource()
109 mService->addResource(client1Info, mTestClient1, resources11); in addResource()
119 mService->addResource(client2Info, mTestClient2, resources2); in addResource()
127 mService->addResource(client3Info, mTestClient3, resources3); in addResource()
130 mService->addResource(client3Info, mTestClient3, resources3); in addResource()
132 const PidResourceInfosMap &map = mService->mMap; in addResource()
157 mService->addResource(client1Info, mTestClient1, resources1); in testCombineResourceWithNegativeValues()
162 const PidResourceInfosMap &map = mService->mMap; in testCombineResourceWithNegativeValues()
174 mService->addResource(client1Info, mTestClient1, resources1); in testCombineResourceWithNegativeValues()
178 mService->addResource(client1Info, mTestClient1, resources1); in testCombineResourceWithNegativeValues()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DInputManagerCallback.java49 private final WindowManagerService mService; field in InputManagerCallback
68 mService = service; in InputManagerCallback()
82 synchronized (mService.mGlobalLock) { in notifyInputChannelBroken()
83 WindowState windowState = mService.mInputToWindowMap.get(token); in notifyInputChannelBroken()
101 mService.mAnrController.notifyAppUnresponsive(applicationHandle, timeoutRecord); in notifyNoFocusedWindowAnr()
109 mService.mAnrController.notifyWindowUnresponsive(token, pid, timeoutRecord); in notifyWindowUnresponsive()
114 mService.mAnrController.notifyWindowResponsive(token, pid); in notifyWindowResponsive()
120 synchronized (mService.mGlobalLock) { in notifyConfigurationChanged()
121 mService.mRoot.forAllDisplays(DisplayContent::sendNewConfiguration); in notifyConfigurationChanged()
135 if (mService.mPointerLocationEnabled == pointerLocationEnabled) { in notifyPointerLocationChanged()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/permission/
DPermissionManagerServiceLoggingDecorator.java45 private final PermissionManagerServiceInterface mService; field in PermissionManagerServiceLoggingDecorator
50 mService = service; in PermissionManagerServiceLoggingDecorator()
57 return mService.backupRuntimePermissions(userId); in backupRuntimePermissions()
65 mService.restoreRuntimePermissions(backup, userId); in restoreRuntimePermissions()
72 mService.restoreDelayedRuntimePermissions(packageName, userId); in restoreDelayedRuntimePermissions()
79 mService.dump(fd, pw, args); in dump()
85 return mService.getAllPermissionGroups(flags); in getAllPermissionGroups()
92 return mService.getPermissionGroupInfo(groupName, flags); in getPermissionGroupInfo()
100 return mService.getPermissionInfo(permName, flags, opPackageName); in getPermissionInfo()
107 return mService.queryPermissionsByGroup(groupName, flags); in queryPermissionsByGroup()
[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/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DLocalBluetoothLeBroadcastAssistant.java60 private BluetoothLeBroadcastAssistant mService; field in LocalBluetoothLeBroadcastAssistant
72 mService = (BluetoothLeBroadcastAssistant) proxy;
74 List<BluetoothDevice> deviceList = mService.getConnectedDevices();
131 if (mService == null) { in addSource()
135 mService.addSource(sink, metadata, isGroupOp); in addSource()
188 if (mService == null) { in removeSource()
192 mService.removeSource(sink, sourceId); in removeSource()
199 if (mService == null) { in startSearchingForSources()
203 mService.startSearchingForSources(filters); in startSearchingForSources()
216 if (mService == null) { in isSearchInProgress()
[all …]
DHapClientProfile.java71 private BluetoothHapClient mService; field in HapClientProfile
79 mService = (BluetoothHapClient) proxy; in onServiceConnected()
81 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in onServiceConnected()
153 if (mService == null) { in getDevicesByStates()
156 return mService.getDevicesMatchingConnectionStates(states); in getDevicesByStates()
167 if (mService == null) { in getHearingAidType()
170 return mService.getHearingAidType(device); in getHearingAidType()
180 if (mService == null) { in supportsSynchronizedPresets()
183 return mService.supportsSynchronizedPresets(device); in supportsSynchronizedPresets()
193 if (mService == null) { in supportsIndependentPresets()
[all …]
DA2dpSinkProfile.java40 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 …]
/frameworks/base/services/core/java/com/android/server/appop/
DAppOpsCheckingServiceLoggingDecorator.java36 private final AppOpsCheckingServiceInterface mService; field in AppOpsCheckingServiceLoggingDecorator
39 mService = service; in AppOpsCheckingServiceLoggingDecorator()
45 mService.writeState(); in writeState()
51 mService.readState(); in readState()
57 mService.shutdown(); in shutdown()
63 mService.systemReady(); in systemReady()
69 return mService.getNonDefaultUidModes(uid); in getNonDefaultUidModes()
76 return mService.getNonDefaultPackageModes(packageName, userId); in getNonDefaultPackageModes()
82 return mService.getUidMode(uid, op); in getUidMode()
88 return mService.setUidMode(uid, op, mode); in setUidMode()
[all …]
DAppOpsCheckingServiceTracingDecorator.java36 private final AppOpsCheckingServiceInterface mService; field in AppOpsCheckingServiceTracingDecorator
40 mService = appOpsCheckingServiceInterface; in AppOpsCheckingServiceTracingDecorator()
48 mService.writeState(); in writeState()
59 mService.readState(); in readState()
70 mService.shutdown(); in shutdown()
81 mService.systemReady(); in systemReady()
92 return mService.getNonDefaultUidModes(uid); in getNonDefaultUidModes()
103 return mService.getNonDefaultPackageModes(packageName, userId); in getNonDefaultPackageModes()
113 return mService.getUidMode(uid, op); in getUidMode()
123 return mService.setUidMode(uid, op, mode); in setUidMode()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/power/
DPowerManagerServiceTest.java170 private PowerManagerService mService; field in PowerManagerServiceTest
248 mService = new PowerManagerService(mContextSpy, new PowerManagerService.Injector() { in createService()
358 return mService; in createService()
379 mService.onBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY); in startSystem()
397 mService.onBootPhase(SystemService.PHASE_BOOT_COMPLETED); in startSystem()
401 mService.getBinderServiceInstance().goToSleep(mClock.now(), in forceSleep()
406 mService.getBinderServiceInstance().nap(mClock.now()); in forceDream()
410 mService.getBinderServiceInstance().wakeUp(mClock.now(), in forceAwake()
415 mService.getBinderServiceInstance().goToSleep(mClock.now(), in forceDozing()
487 int reason = mService.getLastShutdownReasonInternal(); in testGetLastShutdownReasonInternal()
[all …]
/frameworks/base/media/java/android/media/tv/tunerresourcemanager/
DTunerResourceManager.java94 private final ITunerResourceManager mService; field in TunerResourceManager
101 mService = service; in TunerResourceManager()
126 mService.registerClientProfile(profile, in registerClientProfile()
151 mService.unregisterClientProfile(clientId); in unregisterClientProfile()
177 result = mService.updateClientPriority(clientId, priority, niceValue); in updateClientPriority()
192 result = mService.hasUnusedFrontend(frontendType); in hasUnusedFrontend()
215 result = mService.isLowestPriority(clientId, frontendType); in isLowestPriority()
233 mService.storeResourceMap(resourceType); in storeResourceMap()
251 mService.clearResourceMap(resourceType); in clearResourceMap()
268 mService.restoreResourceMap(resourceType); in restoreResourceMap()
[all …]
/frameworks/base/services/core/java/com/android/server/hdmi/
DHdmiCecLocalDevicePlayback.java86 if (reason == mService.INITIATED_BY_ENABLE_CEC) { in onAddressAllocated()
87 mService.setAndBroadcastActiveSource(mService.getPhysicalAddress(), in onAddressAllocated()
91 mService.sendCecCommand( in onAddressAllocated()
94 mService.getPhysicalAddress(), in onAddressAllocated()
96 mService.sendCecCommand( in onAddressAllocated()
98 getDeviceInfo().getLogicalAddress(), mService.getVendorId())); in onAddressAllocated()
103 if (mService.audioSystem() == null) { in onAddressAllocated()
107 mService.sendCecCommand( in onAddressAllocated()
116 mService.setSystemAudioActivated(false); in onAddressAllocated()
134 mService.getHdmiCecNetwork().addCecDevice(info); in launchDeviceDiscovery()
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DBuzzBeepBlinkTest.java124 private NotificationManagerService mService; field in BuzzBeepBlinkTest
175 mService = spy(new NotificationManagerService(getContext(), mNotificationRecordLogger, in setUp()
177 mService.setVibratorHelper(new VibratorHelper(getContext())); in setUp()
178 mService.setAudioManager(mAudioManager); in setUp()
179 mService.setSystemReady(true); in setUp()
180 mService.setHandler(mHandler); in setUp()
181 mService.setLights(mLight); in setUp()
182 mService.setScreenOn(false); in setUp()
183 mService.setUsageStats(mUsageStats); in setUp()
184 mService.setAccessibilityManager(accessibilityManager); in setUp()
[all …]
/frameworks/base/core/java/android/appwidget/
DAppWidgetManager.java518 private final IAppWidgetService mService; field in AppWidgetManager
541 mService = service; in AppWidgetManager()
543 if (mService == null) { in AppWidgetManager()
548 mService.notifyProviderInheritance(getInstalledProvidersForPackage(mPackageName, in AppWidgetManager()
592 if (mService == null) { in updateAppWidget()
599 mService.updateAppWidgetIds(mPackageName, appWidgetIds, views); in updateAppWidget()
609 mService.updateAppWidgetIds(mPackageName, appWidgetIds, views); in updateAppWidget()
630 if (mService == null) { in updateAppWidgetOptions()
634 mService.updateAppWidgetOptions(mPackageName, appWidgetId, options); in updateAppWidgetOptions()
652 if (mService == null) { in getAppWidgetOptions()
[all …]
/frameworks/base/services/core/java/com/android/server/policy/keyguard/
DKeyguardServiceWrapper.java42 private IKeyguardService mService; field in KeyguardServiceWrapper
47 mService = service; in KeyguardServiceWrapper()
54 mService.verifyUnlock(callback); in verifyUnlock()
63 mService.setOccluded(isOccluded, animate); in setOccluded()
72 mService.addStateMonitorCallback(callback); in addStateMonitorCallback()
81 mService.dismiss(callback, message); in dismiss()
90 mService.onDreamingStarted(); in onDreamingStarted()
99 mService.onDreamingStopped(); in onDreamingStopped()
108 mService.onStartedGoingToSleep(pmSleepReason); in onStartedGoingToSleep()
118 mService.onFinishedGoingToSleep(pmSleepReason, cameraGestureTriggered); in onFinishedGoingToSleep()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DHapClientProfileTest.java65 private BluetoothHapClient mService; field in HapClientProfileTest
82 mServiceListener.onServiceConnected(BluetoothProfile.HAP_CLIENT, mService); in onServiceConnected_isProfileReady()
98 mServiceListener.onServiceConnected(BluetoothProfile.HAP_CLIENT, mService); in getConnectionStatus_returnCorrectConnectionState()
99 when(mService.getConnectionState(mBluetoothDevice)) in getConnectionStatus_returnCorrectConnectionState()
108 mServiceListener.onServiceConnected(BluetoothProfile.HAP_CLIENT, mService); in isEnabled_connectionPolicyAllowed_returnTrue()
109 when(mService.getConnectionPolicy(mBluetoothDevice)).thenReturn(CONNECTION_POLICY_ALLOWED); in isEnabled_connectionPolicyAllowed_returnTrue()
116 mServiceListener.onServiceConnected(BluetoothProfile.HAP_CLIENT, mService); in isEnabled_connectionPolicyForbidden_returnFalse()
117 when(mService.getConnectionPolicy(mBluetoothDevice)) in isEnabled_connectionPolicyForbidden_returnFalse()
125 mServiceListener.onServiceConnected(BluetoothProfile.HAP_CLIENT, mService); in getConnectionPolicy_returnCorrectConnectionPolicy()
126 when(mService.getConnectionPolicy(mBluetoothDevice)).thenReturn(CONNECTION_POLICY_ALLOWED); in getConnectionPolicy_returnCorrectConnectionPolicy()
[all …]

12345678910>>...27