/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | ANQPRequestManagerTest.java | 107 PasspointEventHandler mHandler; field in ANQPRequestManagerTest 130 mManager = new ANQPRequestManager(mHandler, mClock, mWifiInjector, in setUp() 143 when(mHandler.requestANQP(TEST_BSSID, R1_ANQP_WITHOUT_RC)).thenReturn(true); in requestR1ANQPElementsWithoutRC() 146 verify(mHandler).requestANQP(TEST_BSSID, R1_ANQP_WITHOUT_RC); in requestR1ANQPElementsWithoutRC() 158 when(mHandler.requestANQP(TEST_BSSID, R1_ANQP_WITH_RC)).thenReturn(true); in requestR1ANQPElementsWithRC() 161 verify(mHandler).requestANQP(TEST_BSSID, R1_ANQP_WITH_RC); in requestR1ANQPElementsWithRC() 173 when(mHandler.requestANQP(TEST_BSSID, R1R2_ANQP_WITHOUT_RC)).thenReturn(true); in requestR1R2ANQPElementsWithoutRC() 176 verify(mHandler).requestANQP(TEST_BSSID, R1R2_ANQP_WITHOUT_RC); in requestR1R2ANQPElementsWithoutRC() 188 when(mHandler.requestANQP(TEST_BSSID, R1R2_ANQP_WITH_RC)).thenReturn(true); in requestR1R2ANQPElementsWithRC() 191 verify(mHandler).requestANQP(TEST_BSSID, R1R2_ANQP_WITH_RC); in requestR1R2ANQPElementsWithRC() [all …]
|
D | PasspointEventHandlerTest.java | 58 PasspointEventHandler mHandler; field in PasspointEventHandlerTest 66 mHandler = new PasspointEventHandler(mWifiInjector, mCallbacks); in setUp() 84 assertTrue(mHandler.requestANQP(BSSID, elementToRequest)); in requestR1AnqpElement() 89 assertFalse(mHandler.requestANQP(BSSID, elementToRequest)); in requestR1AnqpElement() 107 assertTrue(mHandler.requestANQP(BSSID, elementToRequest)); in requestR2AnqpElement() 112 assertFalse(mHandler.requestANQP(BSSID, elementToRequest)); in requestR2AnqpElement() 133 assertTrue(mHandler.requestANQP(BSSID, elementToRequest)); in requestMixAnqpElements() 138 assertFalse(mHandler.requestANQP(BSSID, elementToRequest)); in requestMixAnqpElements() 148 assertTrue(mHandler.requestIcon(BSSID, ICON_FILENAME)); in requestIconFile() 152 assertFalse(mHandler.requestIcon(BSSID, ICON_FILENAME)); in requestIconFile() [all …]
|
/packages/modules/Telephony/services/QualifiedNetworksService/tests/src/com/android/telephony/qns/ |
D | CellularNetworkStatusTrackerTest.java | 39 private Handler mHandler; field in CellularNetworkStatusTrackerTest 47 mHandler = new Handler(Looper.getMainLooper()); in setUp() 58 NetworkCapabilities.NET_CAPABILITY_IMS, mHandler, 0); in testRegisterQnsTelephonyInfoChanged() 61 NetworkCapabilities.NET_CAPABILITY_IMS, mHandler, 0, null, true); in testRegisterQnsTelephonyInfoChanged() 64 NetworkCapabilities.NET_CAPABILITY_XCAP, mHandler, 1); in testRegisterQnsTelephonyInfoChanged() 67 NetworkCapabilities.NET_CAPABILITY_XCAP, mHandler, 1, null, true); in testRegisterQnsTelephonyInfoChanged() 70 NetworkCapabilities.NET_CAPABILITY_MMS, mHandler, 2); in testRegisterQnsTelephonyInfoChanged() 73 NetworkCapabilities.NET_CAPABILITY_MMS, mHandler, 2, null, true); in testRegisterQnsTelephonyInfoChanged() 76 NetworkCapabilities.NET_CAPABILITY_EIMS, mHandler, 0); in testRegisterQnsTelephonyInfoChanged() 79 NetworkCapabilities.NET_CAPABILITY_EIMS, mHandler, 0, null, true); in testRegisterQnsTelephonyInfoChanged() [all …]
|
D | QnsTimerTest.java | 92 waitForDelayedHandlerAction(mQnsTimer.mHandler, 10, 200); in testRegisterTimerForScreenOff() 95 waitForDelayedHandlerAction(mQnsTimer.mHandler, 10, 200); in testRegisterTimerForScreenOff() 98 assertTrue(mQnsTimer.mHandler.hasMessages(EVENT_QNS_TIMER_EXPIRED)); in testRegisterTimerForScreenOff() 106 waitForDelayedHandlerAction(mQnsTimer.mHandler, 10, 200); in testRegisterTimerForScreenOn() 109 waitForDelayedHandlerAction(mQnsTimer.mHandler, 10, 200); in testRegisterTimerForScreenOn() 112 assertTrue(mQnsTimer.mHandler.hasMessages(EVENT_QNS_TIMER_EXPIRED)); in testRegisterTimerForScreenOn() 122 waitForDelayedHandlerAction(mQnsTimer.mHandler, 10, 200); in testUnregisterForInvalidId() 130 waitForDelayedHandlerAction(mQnsTimer.mHandler, 10, 200); in testUnregisterTimerForScreenOff() 132 assertFalse(mQnsTimer.mHandler.hasMessages(EVENT_QNS_TIMER_EXPIRED)); in testUnregisterTimerForScreenOff() 140 waitForDelayedHandlerAction(mQnsTimer.mHandler, 10, 200); in testUnregisterTimerForScreenOn() [all …]
|
D | AccessNetworkEvaluatorTest.java | 99 private Handler mHandler; field in AccessNetworkEvaluatorTest 153 mHandler = new AneHandler(); in setUp() 155 waitForLastHandlerAction(mAne.mHandler); in setUp() 189 mAne.registerForQualifiedNetworksChanged(mHandler, QUALIFIED_NETWORKS_CHANGED); in testRegisterForQualifiedNetworksChanged() 190 mAne.registerForQualifiedNetworksChanged(mHandler, 2); in testRegisterForQualifiedNetworksChanged() 199 mAne.registerForQualifiedNetworksChanged(mHandler, QUALIFIED_NETWORKS_CHANGED); in testUnregisterForQualifiedNetworksChanged() 267 mAne.registerForQualifiedNetworksChanged(mHandler, QUALIFIED_NETWORKS_CHANGED); in testNotifyForQualifiedNetworksChanged() 275 waitForLastHandlerAction(mAne.mHandler); in testMoveTransportTypeAllowed() 337 waitForLastHandlerAction(mAne.mHandler); in testMoveTransportTypeAllowedEmergencyOverIms() 409 waitForLastHandlerAction(mAne.mHandler); in testVopsCheckRequired() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/pbapclient/ |
D | PbapClientConnectionHandlerTest.java | 78 private PbapClientConnectionHandler mHandler; field in PbapClientConnectionHandlerTest 105 mHandler = in setUp() 125 assertThat(mHandler.connectSocket()).isFalse(); in connectSocket_whenBluetoothIsNotEnabled_returnsFalse() 131 mHandler.setPseRecord(record); in connectSocket_whenBluetoothIsNotEnabled_returnsFalse_withInvalidL2capPsm() 134 assertThat(mHandler.connectSocket()).isFalse(); in connectSocket_whenBluetoothIsNotEnabled_returnsFalse_withInvalidL2capPsm() 140 mHandler.setPseRecord(record); in connectSocket_whenBluetoothIsNotEnabled_returnsFalse_withValidL2capPsm() 143 assertThat(mHandler.connectSocket()).isFalse(); in connectSocket_whenBluetoothIsNotEnabled_returnsFalse_withValidL2capPsm() 150 assertThat(mHandler.connectObexSession()).isFalse(); in connectObexSession_returnsFalse_withoutConnectingSocket() 157 mHandler.setPseRecord(record); in abort() 158 mHandler.connectSocket(); // Workaround for setting mSocket as non-null value in abort() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/ |
D | CarVolumeCallbackHandlerTest.java | 38 private CarVolumeCallbackHandler mHandler; field in CarVolumeCallbackHandlerTest 44 mHandler = new CarVolumeCallbackHandler(); in setUp() 47 mHandler.registerCallback(mCallback1.asBinder(), uid, true); in setUp() 49 mHandler.registerCallback(mCallback2.asBinder(), uid, true); in setUp() 55 mHandler.unregisterCallback(mCallback1.asBinder(), uid); in tearDown() 56 mHandler.unregisterCallback(mCallback2.asBinder(), uid); in tearDown() 61 mHandler.onVolumeGroupChange(ZONE_ID, GROUP_ID, FLAGS); in onVolumeGroupChange_callsAllRegisteredCallbacks() 87 mHandler.unregisterCallback(mCallback1.asBinder(), uid); in onVolumeGroupChange_doesNotCallUnregisteredCallbacks() 88 mHandler.onVolumeGroupChange(ZONE_ID, GROUP_ID, FLAGS); in onVolumeGroupChange_doesNotCallUnregisteredCallbacks() 101 mHandler.checkAndRepriotize(uid, false); in onVolumeGroupChange_doesNotCallDeprioritizedCallback() [all …]
|
/packages/modules/Connectivity/framework/src/android/net/ |
D | NetworkAgent.java | 106 private final Handler mHandler; field in NetworkAgent 585 mHandler = new NetworkAgentHandler(looper); in NetworkAgent() 762 mNetwork = cm.registerNetworkAgent(new NetworkAgentBinder(mHandler), in register() 767 mNetwork = cm.registerNetworkAgent(new NetworkAgentBinder(mHandler), in register() 781 private final Handler mHandler; field in NetworkAgent.NetworkAgentBinder 784 mHandler = handler; in NetworkAgentBinder() 789 mHandler.sendMessage(mHandler.obtainMessage(EVENT_AGENT_CONNECTED, registry)); in onRegistered() 794 mHandler.sendMessage(mHandler.obtainMessage(EVENT_AGENT_DISCONNECTED)); in onDisconnected() 799 mHandler.sendMessage(mHandler.obtainMessage(CMD_REQUEST_BANDWIDTH_UPDATE)); in onBandwidthUpdateRequested() 808 mHandler.sendMessage(mHandler.obtainMessage(CMD_REPORT_NETWORK_STATUS, in onValidationStatusChanged() [all …]
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/files/ |
D | ActionHandlerTest.java | 99 private ActionHandler<TestActivity> mHandler; field in ActionHandlerTest 141 mHandler = createHandler(); in setUp() 148 mHandler.openSelectedInNewWindow(); in testOpenSelectedInNewWindow() 161 mHandler.springOpenDirectory(TestEnv.FOLDER_0); in testSpringOpenDirectory() 171 mHandler.cutToClipboard(); in testCutSelectedDocuments_NoGivenSelection() 180 mHandler.cutToClipboard(); in testCutSelectedDocuments_ContainsNonMovableItem() 191 mHandler.copyToClipboard(); in testCopySelectedDocuments_NoGivenSelection() 200 mHandler.showDeleteDialog(); in testShowDeleteDialog_NoSelection() 214 mHandler.deleteSelectedDocuments(docs, mEnv.state.stack.peek()); in testDeleteSelectedDocuments() 223 mHandler.shareSelectedDocuments(); in testShareSelectedDocuments_ShowsChooser() [all …]
|
/packages/services/Telephony/testapps/TestRcsApp/TestApp/src/com/google/android/sample/rcsclient/ |
D | ContactListActivity.java | 58 private Handler mHandler; field in ContactListActivity 84 mHandler = new Handler() { in onCreate() 101 mSummaryObserver = new SummaryObserver(mHandler); in onCreate() 174 mHandler.sendMessage(mHandler.obtainMessage(RENDER_LISTVIEW)); in querySummaryData() 214 mHandler.sendMessage(mHandler.obtainMessage(SHOW_STATUS, tips)); in initSipDelegate() 217 mHandler.sendMessageDelayed(mHandler.obtainMessage(SHOW_STATUS, timeoutTips), in initSipDelegate() 223 if (mHandler.hasMessages(SHOW_STATUS)) { in initSipDelegate() 224 mHandler.removeMessages(SHOW_STATUS); in initSipDelegate() 226 mHandler.sendMessage(mHandler.obtainMessage(SHOW_STATUS, tips)); in initSipDelegate() 229 mHandler.sendMessageDelayed(mHandler.obtainMessage(SHOW_STATUS, timeoutTips), in initSipDelegate() [all …]
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/tvinput/ |
D | TunerSessionWorker.java | 209 private final Handler mHandler; field in TunerSessionWorker 294 mHandler = handler; in TunerSessionWorker() 300 mHandler = new Handler(handlerThread.getLooper(), this); in TunerSessionWorker() 314 context, mHandler, this::handleMessageAudioCapabilitiesChanged); in TunerSessionWorker() 316 mHandler.post(() -> handleMessageAudioCapabilitiesChanged(audioCapabilities)); in TunerSessionWorker() 361 mHandler.removeCallbacksAndMessages(null); in tune() 368 mHandler.removeCallbacksAndMessages(null); in stopTune() 382 mHandler.sendEmptyMessage(MSG_SET_SURFACE); in setSurface() 392 mHandler.sendEmptyMessage(MSG_SET_STREAM_VOLUME); in setStreamVolume() 402 mHandler.sendEmptyMessage(MSG_UPDATE_CAPTION_TRACK); in setCaptionEnabled() [all …]
|
D | TunerSessionWorkerExoV2.java | 208 private final Handler mHandler; field in TunerSessionWorkerExoV2 296 mHandler = handler; in TunerSessionWorkerExoV2() 302 mHandler = new Handler(handlerThread.getLooper(), this); in TunerSessionWorkerExoV2() 316 context, mHandler, this::handleMessageAudioCapabilitiesChanged); in TunerSessionWorkerExoV2() 318 mHandler.post(() -> handleMessageAudioCapabilitiesChanged(audioCapabilities)); in TunerSessionWorkerExoV2() 361 mHandler.removeCallbacksAndMessages(null); in tune() 368 mHandler.removeCallbacksAndMessages(null); in stopTune() 382 mHandler.sendEmptyMessage(MSG_SET_SURFACE); in setSurface() 392 mHandler.sendEmptyMessage(MSG_SET_STREAM_VOLUME); in setStreamVolume() 402 mHandler.sendEmptyMessage(MSG_UPDATE_CAPTION_TRACK); in setCaptionEnabled() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/ |
D | ActiveDeviceManager.java | 118 private Handler mHandler = null; field in ActiveDeviceManager 165 mHandler.post(() -> handleAdapterStateChanged(newState)); in onBluetoothStateChange() 181 mHandler.post(() -> handleA2dpConnected(device)); in profileConnectionStateChanged() 184 mHandler.post(() -> handleHfpConnected(device)); in profileConnectionStateChanged() 187 mHandler.post(() -> handleLeAudioConnected(device)); in profileConnectionStateChanged() 190 mHandler.post(() -> handleHearingAidConnected(device)); in profileConnectionStateChanged() 193 mHandler.post(() -> handleHapConnected(device)); in profileConnectionStateChanged() 199 mHandler.post(() -> handleA2dpDisconnected(device)); in profileConnectionStateChanged() 202 mHandler.post(() -> handleHfpDisconnected(device)); in profileConnectionStateChanged() 205 mHandler.post(() -> handleLeAudioDisconnected(device)); in profileConnectionStateChanged() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/power/ |
D | PowerComponentHandlerUnitTest.java | 65 private PowerComponentHandler mHandler; field in PowerComponentHandlerUnitTest 71 mHandler = new PowerComponentHandler(mContext, mSystemInterface, in setUp() 73 mHandler.init(/* customComponents = */ null); in setUp() 78 CarPowerPolicy policy = mHandler.getAccumulatedPolicy(); in testGetAccumulatedPolicy_firstTime() 96 mHandler.applyPowerPolicy(policy); in testApplyPowerPolicy_oneTime() 98 assertPolicyIdentical(expected, mHandler.getAccumulatedPolicy()); in testApplyPowerPolicy_oneTime() 114 mHandler.applyPowerPolicy(policy); in testApplyPowerPolicy_multipleTimes() 117 assertPolicyIdentical(expected, mHandler.getAccumulatedPolicy()); in testApplyPowerPolicy_multipleTimes() 123 mHandler.registerCustomComponents(new Integer[]{customComponentId}); in testApplyPowerPolicy_withCustomComponents() 129 mHandler.applyPowerPolicy(policy1); in testApplyPowerPolicy_withCustomComponents() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/ |
D | ConnectivityListenerLite.java | 40 private final Handler mHandler; field in ConnectivityListenerLite 49 mHandler = new Handler(Looper.getMainLooper()) { in ConnectivityListenerLite() 57 mNetworkCallback = new DefaultNetworkCallback(mHandler); in ConnectivityListenerLite() 79 mHandler.removeCallbacksAndMessages(null); in onDestroy() 94 private final Handler mHandler; field in ConnectivityListenerLite.DefaultNetworkCallback 97 this.mHandler = handler; in DefaultNetworkCallback() 103 mHandler.removeMessages(CONNECTIVITY_CHANGE); in onAvailable() 104 mHandler.sendEmptyMessageDelayed(CONNECTIVITY_CHANGE, DELAY); in onAvailable() 110 mHandler.removeMessages(CONNECTIVITY_CHANGE); in onLost() 111 mHandler.sendEmptyMessageDelayed(CONNECTIVITY_CHANGE, DELAY); in onLost()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiThreadRunner.java | 56 private final Handler mHandler; field in WifiThreadRunner 61 mHandler = handler; in WifiThreadRunner() 87 boolean runWithScissorsSuccess = runWithScissors(mHandler, in call() 96 wifiThreadThrowable.setStackTrace(mHandler.getLooper().getThread().getStackTrace()); in call() 124 runWithScissors(mHandler, runnable, RUN_WITH_SCISSORS_TIMEOUT_MILLIS, false, in run() 155 runWithScissors(mHandler, runnable, RUN_WITH_SCISSORS_TIMEOUT_MILLIS, true, in runAtFront() 162 wifiThreadThrowable.setStackTrace(mHandler.getLooper().getThread().getStackTrace()); in runAtFront() 195 mHandler.postAtFrontOfQueue(() -> { in prepareForAutoDispatch() 209 Message m = Message.obtain(mHandler, runnable); in post() 211 return mHandler.sendMessage(m); in post() [all …]
|
/packages/modules/DeviceLock/DeviceLockController/tests/robolectric/src/com/android/devicelockcontroller/policy/ |
D | NotificationsPolicyHandlerTest.java | 53 private NotificationsPolicyHandler mHandler; field in NotificationsPolicyHandlerTest 57 mHandler = new NotificationsPolicyHandler(mSystemDeviceLockManager, in setUp() 64 assertThat(mHandler.onProvisioned().get()).isTrue(); in onProvisioned_shouldDoNothing() 71 assertThat(mHandler.onProvisionPaused().get()).isTrue(); in onProvisionPaused_shouldDoNothing() 79 assertThat(mHandler.onProvisionInProgress().get()).isTrue(); in onProvisionInProgress_withSuccess_shouldTryToSetSystemFixedFlag() 88 assertThat(mHandler.onProvisionInProgress().get()).isTrue(); in onProvisionInProgress_withFailure_shouldTryToSetSystemFixedFlag() 96 assertThat(mHandler.onProvisionFailed().get()).isTrue(); in onProvisionFailed_shouldDoNothing() 104 assertThat(mHandler.onCleared().get()).isTrue(); in onCleared_withSuccess_shouldTryToClearSystemFixedFlag() 113 assertThat(mHandler.onCleared().get()).isTrue(); in onCleared_withFailure_shouldTryToClearSystemFixedFlag() 121 assertThat(mHandler.onLocked().get()).isTrue(); in onLocked_shouldDoNothing() [all …]
|
D | ControllerKeepAlivePolicyHandlerTest.java | 52 private ControllerKeepAlivePolicyHandler mHandler; field in ControllerKeepAlivePolicyHandlerTest 56 mHandler = new ControllerKeepAlivePolicyHandler(mSystemDeviceLockManager, in setUp() 64 assertThat(mHandler.onProvisioned().get()).isTrue(); in onProvisioned_withSuccess_shouldDisableControllerKeepalive() 74 assertThat(mHandler.onProvisioned().get()).isTrue(); in onProvisioned_withFailure_shouldDisableControllerKeepalive() 84 assertThat(mHandler.onProvisionPaused().get()).isTrue(); in onProvisionPaused_withSuccess_shouldDisableControllerKeepalive() 94 assertThat(mHandler.onProvisionPaused().get()).isTrue(); in onProvisionPaused_withFailure_shouldDisableControllerKeepalive() 104 assertThat(mHandler.onProvisionInProgress().get()).isTrue(); in onProvisionInProgress_withSuccess_shouldEnableControllerKeepalive() 114 assertThat(mHandler.onProvisionInProgress().get()).isTrue(); in onProvisionInProgress_withFailure_shouldEnableControllerKeepalive() 123 assertThat(mHandler.onProvisionFailed().get()).isTrue(); in onProvisionFailed_shouldDoNothing() 130 assertThat(mHandler.onCleared().get()).isTrue(); in onCleared_shouldDoNothing() [all …]
|
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/ |
D | AudioSession.java | 87 private AudioSessionHandler mHandler; field in AudioSession 96 mHandler = new AudioSessionHandler(Looper.getMainLooper()); in AudioSession() 100 mOffloadListener = new AudioOffloadListener(mHandler); in AudioSession() 104 mAudioListener = new AudioListener(mHandler); in AudioSession() 119 mHandler = new AudioSessionHandler(looper); in AudioSession() 122 mAudioListener = new AudioListener(mHandler); in AudioSession() 124 mOffloadListener = new AudioOffloadListener(mHandler); in AudioSession() 134 return mHandler; in getAudioSessionHandler() 148 Utils.sendMessage(mHandler, CMD_OPEN_SESSION, sessionParams); in openSession() 158 Utils.sendMessage(mHandler, CMD_CLOSE_SESSION); in closeSession() [all …]
|
D | AudioListener.java | 37 final private Handler mHandler; field in AudioListener 43 mHandler = handler; in AudioListener() 90 Utils.sendMessage(mHandler, event, result, Utils.UNUSED, config); in onMessage() 96 Utils.sendMessage(mHandler, event, config); in onMessage() 106 Utils.sendMessage(mHandler, event, extensions); in onMessage() 110 Utils.sendMessage(mHandler, event, in onMessage() 115 Utils.sendMessage(mHandler, event, configAnbr); in onMessage() 120 Utils.sendMessage(mHandler, event, dtmfDigit, durationMs); in onMessage() 123 Utils.sendMessage(mHandler, event, CallQuality.CREATOR.createFromParcel(parcel)); in onMessage() 129 Utils.sendMessage(mHandler, event, in onMessage()
|
D | VideoSession.java | 70 private VideoSessionHandler mHandler; field in VideoSession 78 mHandler = new VideoSessionHandler(Looper.getMainLooper()); in VideoSession() 81 mVideoListener = new VideoListener(mHandler); in VideoSession() 93 mHandler = new VideoSessionHandler(looper); in VideoSession() 96 mVideoListener = new VideoListener(mHandler); in VideoSession() 101 return mHandler; in getVideoSessionHandler() 111 Utils.sendMessage(mHandler, CMD_OPEN_SESSION, sessionParams); in openSession() 121 Utils.sendMessage(mHandler, CMD_CLOSE_SESSION); in closeSession() 134 Utils.sendMessage(mHandler, CMD_MODIFY_SESSION, config); in modifySession() 142 Utils.sendMessage(mHandler, CMD_SET_PREVIEW_SURFACE, surface); in setPreviewSurface() [all …]
|
D | TextSession.java | 58 private TextSessionHandler mHandler; field in TextSession 66 mHandler = new TextSessionHandler(Looper.getMainLooper()); in TextSession() 69 mTextListener = new TextListener(mHandler); in TextSession() 81 mHandler = new TextSessionHandler(looper); in TextSession() 84 mTextListener = new TextListener(mHandler); in TextSession() 89 return mHandler; in getTextSessionHandler() 99 Utils.sendMessage(mHandler, CMD_OPEN_SESSION, sessionParams); in openSession() 109 Utils.sendMessage(mHandler, CMD_CLOSE_SESSION); in closeSession() 122 Utils.sendMessage(mHandler, CMD_MODIFY_SESSION, config); in modifySession() 130 Utils.sendMessage(mHandler, CMD_SET_MEDIA_QUALITY_THRESHOLD, threshold); in setMediaQualityThreshold() [all …]
|
/packages/modules/AdServices/sdksandbox/tests/unittest/src/android/app/sdksandbox/sdkprovider/ |
D | SdkSandboxActivityRegistryTest.java | 62 private SdkSandboxActivityHandler mHandler; field in SdkSandboxActivityRegistryTest 78 mHandler = Mockito.spy(activity -> {}); in setUp() 87 mRegistry.unregister(mHandler); in tearDown() 97 IBinder token1 = mRegistry.register(mSdkContext, mHandler); in testRegisterSdkSandboxActivityHandler() 98 IBinder token2 = mRegistry.register(mSdkContext, mHandler); in testRegisterSdkSandboxActivityHandler() 107 mRegistry.register(mSdkContext, mHandler); in testRegisterSdkSandboxActivityHandler_NewHandler_CallsStatsd() 119 IBinder token = mRegistry.register(mSdkContext, mHandler); in testUnregisterSdkSandboxActivityHandler() 121 mRegistry.unregister(mHandler); in testUnregisterSdkSandboxActivityHandler() 143 mRegistry.register(mSdkContext, mHandler); in testUnregisterSdkSandboxActivityHandler_ExistingHandler_CallsStatsd() 146 mRegistry.unregister(mHandler); in testUnregisterSdkSandboxActivityHandler_ExistingHandler_CallsStatsd() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | WifiThreadRunnerTest.java | 57 private Handler mHandler; field in WifiThreadRunnerTest 69 mHandler = spy(mHandlerThread.getThreadHandler()); in setUp() 71 mWifiThreadRunner = new WifiThreadRunner(mHandler); in setUp() 83 }).when(mHandler).runWithScissors(any(), anyLong()); in callSuccess_returnExpectedValue() 93 doReturn(false).when(mHandler).sendMessage(any()); in callFailure_returnValueOnTimeout() 108 }).when(mHandler).runWithScissors(any(), anyLong()); in runSuccess() 118 doReturn(false).when(mHandler).sendMessage(any()); in runFailure() 128 doReturn(true).when(mHandler).sendMessage(any()); in postSuccess() 133 verify(mHandler).sendMessage(mCaptor.capture()); in postSuccess() 141 doReturn(false).when(mHandler).sendMessage(any()); in postFailure() [all …]
|
/packages/services/Telephony/src/com/android/phone/otasp/ |
D | OtaspActivationService.java | 99 mHandler.sendEmptyMessage(EVENT_START_OTASP_CALL); in onCreate() 112 private Handler mHandler = new Handler() { field in OtaspActivationService 152 mPhone.registerForServiceStateChanged(mHandler, EVENT_SERVICE_STATE_CHANGED, null); in onStartOtaspCall() 156 mPhone.registerForCdmaOtaStatusChange(mHandler, EVENT_CDMA_PROVISION_STATUS_UPDATE, null); in onStartOtaspCall() 157 mPhone.registerForPreciseCallStateChanged(mHandler, EVENT_CALL_STATE_CHANGED, null); in onStartOtaspCall() 166 mHandler.sendEmptyMessageDelayed(EVENT_CDMA_OTASP_CALL_RETRY, in onStartOtaspCall() 209 mPhone.unregisterForCdmaOtaStatusChange(mHandler); in unregisterAll() 210 mPhone.unregisterForSubscriptionInfoReady(mHandler); in unregisterAll() 211 mPhone.unregisterForServiceStateChanged(mHandler); in unregisterAll() 212 mPhone.unregisterForPreciseCallStateChanged(mHandler); in unregisterAll() [all …]
|