Home
last modified time | relevance | path

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

12345678

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiTrafficPollerTest.java99 verify(mTrafficStateCallback).onStateChanged( in testClientNotification()
114 mInOrder.verify(mTrafficStateCallback).onStateChanged( in testDataActivityUpdatePacketThreshold()
120 mInOrder.verify(mTrafficStateCallback).onStateChanged( in testDataActivityUpdatePacketThreshold()
127 .onStateChanged(WifiManager.TrafficStateCallback.DATA_ACTIVITY_OUT); in testDataActivityUpdatePacketThreshold()
132 mInOrder.verify(mTrafficStateCallback).onStateChanged( in testDataActivityUpdatePacketThreshold()
139 .onStateChanged(WifiManager.TrafficStateCallback.DATA_ACTIVITY_IN); in testDataActivityUpdatePacketThreshold()
156 verify(mTrafficStateCallback, never()).onStateChanged(anyInt()); in testRemoveClient()
172 verify(mTrafficStateCallback).onStateChanged( in testRemoveClientWithWrongCallback()
200 verify(mTrafficStateCallback, never()).onStateChanged(anyInt()); in addCallbackFailureOnLinkToDeath()
209 verify(mTrafficStateCallback).onStateChanged( in unchangedDataActivityNotNotified()
[all …]
DSupplicantStaIfaceHalHidlImplTest.java1163 mISupplicantStaIfaceCallback.onStateChanged( in testStateChangeCallbackWithNoConfiguredNetwork()
1185 mISupplicantStaIfaceCallback.onStateChanged( in testStateChangeToAssociatedCallback()
1207 mISupplicantStaIfaceCallback.onStateChanged( in testStateChangeToCompletedCallback()
1229 mISupplicantStaIfaceCallback.onStateChanged( in testDisconnectedCallback()
1269 mISupplicantStaIfaceCallback.onStateChanged( in testAuthFailurePasswordOnDisconnect()
1274 mISupplicantStaIfaceCallback.onStateChanged( in testAuthFailurePasswordOnDisconnect()
1298 mISupplicantStaIfaceCallback.onStateChanged( in testWapiPskWrongPasswordNotification()
1303 mISupplicantStaIfaceCallback.onStateChanged( in testWapiPskWrongPasswordNotification()
1337 mISupplicantStaIfaceCallback.onStateChanged( in testAuthFailureEapOnDisconnect()
1342 mISupplicantStaIfaceCallback.onStateChanged( in testAuthFailureEapOnDisconnect()
[all …]
DSupplicantStaIfaceHalAidlImplTest.java993 mISupplicantStaIfaceCallback.onStateChanged( in testStateChangeCallbackWithNoConfiguredNetwork()
1015 mISupplicantStaIfaceCallback.onStateChanged( in testStateChangeToAssociatedCallback()
1037 mISupplicantStaIfaceCallback.onStateChanged( in testStateChangeToCompletedCallback()
1094 mISupplicantStaIfaceCallback.onStateChanged( in testDisconnectedCallback()
1135 mISupplicantStaIfaceCallback.onStateChanged( in testAuthFailurePasswordOnDisconnect()
1140 mISupplicantStaIfaceCallback.onStateChanged( in testAuthFailurePasswordOnDisconnect()
1164 mISupplicantStaIfaceCallback.onStateChanged( in testWapiPskWrongPasswordNotification()
1169 mISupplicantStaIfaceCallback.onStateChanged( in testWapiPskWrongPasswordNotification()
1203 mISupplicantStaIfaceCallback.onStateChanged( in testAuthFailureEapOnDisconnect()
1208 mISupplicantStaIfaceCallback.onStateChanged( in testAuthFailureEapOnDisconnect()
[all …]
/packages/apps/Settings/src/com/android/settings/wifi/tether/
DWifiTetherSoftApManager.java38 void onStateChanged(int state, int failureReason) { in onStateChanged() method in WifiTetherSoftApManager
39 mWifiTetherSoftApCallback.onStateChanged(state, failureReason); in onStateChanged()
47 void onStateChanged(int state, int failureReason); in onStateChanged() method
68 public void onStateChanged(int state, int failureReason) { in onStateChanged() method in WifiTetherSoftApManager.WifiManagerSoftApCallback
72 controller.onStateChanged(state, failureReason); in onStateChanged()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarLocationServiceTest.java338 mCarLocationService.onStateChanged(CarPowerManager.STATE_SHUTDOWN_PREPARE, future); in testStoresLocationUponShutdownPrepare()
356 mCarLocationService.onStateChanged(CarPowerManager.STATE_SUSPEND_ENTER, in testDoesNotThrowExceptionUponPowerStateChanged()
358 mCarLocationService.onStateChanged(CarPowerManager.STATE_SUSPEND_EXIT, in testDoesNotThrowExceptionUponPowerStateChanged()
360 mCarLocationService.onStateChanged(CarPowerManager.STATE_SHUTDOWN_ENTER, in testDoesNotThrowExceptionUponPowerStateChanged()
362 mCarLocationService.onStateChanged(CarPowerManager.STATE_ON, /* future= */ null); in testDoesNotThrowExceptionUponPowerStateChanged()
363 mCarLocationService.onStateChanged(CarPowerManager.STATE_WAIT_FOR_VHAL, in testDoesNotThrowExceptionUponPowerStateChanged()
365 mCarLocationService.onStateChanged(CarPowerManager.STATE_SHUTDOWN_CANCELLED, in testDoesNotThrowExceptionUponPowerStateChanged()
367 mCarLocationService.onStateChanged(CarPowerManager.STATE_HIBERNATION_EXIT, in testDoesNotThrowExceptionUponPowerStateChanged()
369 mCarLocationService.onStateChanged(CarPowerManager.STATE_HIBERNATION_ENTER, in testDoesNotThrowExceptionUponPowerStateChanged()
391 mCarLocationService.onStateChanged(CarPowerManager.STATE_SHUTDOWN_PREPARE, future); in testDoesNotStoreNullLocation()
[all …]
/packages/services/Car/tests/CarServiceTest/src/com/android/car/garagemode/
DGarageModeControllerTest.java144 mController.onStateChanged(CarPowerManager.STATE_SHUTDOWN_PREPARE, INVALID_TIMEOUT); in testOnShutdownPrepare_shouldInitiateGarageMode()
159 mController.onStateChanged(CarPowerManager.STATE_SHUTDOWN_PREPARE, INVALID_TIMEOUT); in testOnShutdownCancelled_shouldCancelGarageMode()
162 mController.onStateChanged(CarPowerManager.STATE_SHUTDOWN_CANCELLED, INVALID_TIMEOUT); in testOnShutdownCancelled_shouldCancelGarageMode()
206 controller.onStateChanged(CarPowerManager.STATE_SHUTDOWN_CANCELLED, INVALID_TIMEOUT); in testOnStateChanged()
210 controller.onStateChanged(CarPowerManager.STATE_SHUTDOWN_ENTER, INVALID_TIMEOUT); in testOnStateChanged()
214 controller.onStateChanged(CarPowerManager.STATE_SUSPEND_ENTER, INVALID_TIMEOUT); in testOnStateChanged()
218 controller.onStateChanged(CarPowerManager.STATE_HIBERNATION_ENTER, INVALID_TIMEOUT); in testOnStateChanged()
222 controller.onStateChanged(CarPowerManager.STATE_INVALID , INVALID_TIMEOUT); in testOnStateChanged()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/wifi/
DCarWifiServiceUnitTest.java167 getCarPowerStateListener().onStateChanged(CarPowerManager.STATE_ON, 0); in testPersistCarSettingOn_userUnlockBeforePowerOn_tetheringOn()
168 getSoftApCallback().onStateChanged(WIFI_AP_STATE_ENABLED, 0); in testPersistCarSettingOn_userUnlockBeforePowerOn_tetheringOn()
184 getCarPowerStateListener().onStateChanged(CarPowerManager.STATE_ON, 0); in testPersistCarSettingOn_notOnLast_noTethering()
199 getCarPowerStateListener().onStateChanged(CarPowerManager.STATE_ON, 0); in testPersistCarSettingOn_tetheringAlreadyEnabled_noTethering()
213 getCarPowerStateListener().onStateChanged(CarPowerManager.STATE_ON, 0); in testPersistCarSettingOn_powerOnBeforeUserUnlock_tetheringOn()
215 getSoftApCallback().onStateChanged(WIFI_AP_STATE_ENABLED, 0); in testPersistCarSettingOn_powerOnBeforeUserUnlock_tetheringOn()
229 getCarPowerStateListener().onStateChanged(CarPowerManager.STATE_ON, 0); in testPersistCarSettingOff_powerOnBeforeUserUnlock_noTethering()
240 getCarPowerStateListener().onStateChanged(CarPowerManager.STATE_ON, 0); in testPersistCarSettingOff_userUnlockBeforePowerOn_noTethering()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DSupplicantStaIfaceCallbackHidlV1_1Impl.java62 public void onStateChanged(int newState, byte[/* 6 */] bssid, int id, ArrayList<Byte> ssid, in onStateChanged() method in SupplicantStaIfaceCallbackHidlV1_1Impl
64 mCallbackV10.onStateChanged(newState, bssid, id, ssid, filsHlpSent); in onStateChanged()
68 public void onStateChanged(int newState, byte[/* 6 */] bssid, int id, in onStateChanged() method in SupplicantStaIfaceCallbackHidlV1_1Impl
70 onStateChanged(newState, bssid, id, ssid, false); in onStateChanged()
DSupplicantStaIfaceCallbackHidlV1_2Impl.java73 public void onStateChanged(int newState, byte[/* 6 */] bssid, int id, ArrayList<Byte> ssid, in onStateChanged() method in SupplicantStaIfaceCallbackHidlV1_2Impl
75 mCallbackV11.onStateChanged(newState, bssid, id, ssid, filsHlpSent); in onStateChanged()
79 public void onStateChanged(int newState, byte[/* 6 */] bssid, int id, in onStateChanged() method in SupplicantStaIfaceCallbackHidlV1_2Impl
81 onStateChanged(newState, bssid, id, ssid, false); in onStateChanged()
/packages/apps/Camera2/src/com/android/camera/
DButtonManager.java237 public void onStateChanged(int state); in onStateChanged() method
684 cb.onStateChanged(state); in initializeFlashButton()
713 cb.onStateChanged(state); in initializeTorchButton()
742 cb.onStateChanged(state); in initializeHdrPlusFlashButton()
777 cb.onStateChanged(cameraId); in initializeCameraButton()
804 cb.onStateChanged(state); in initializeHdrPlusButton()
837 cb.onStateChanged(state); in initializeHdrButton()
871 cb.onStateChanged(state); in initializeCountdownButton()
908 cb.onStateChanged(state); in initializeGridLinesButton()
978 cb.onStateChanged(state); in initializePanoOrientationButtons()
[all …]
/packages/apps/Car/SystemUI/src/com/android/systemui/car/telecom/
DInCallServiceImpl.java46 public void onStateChanged(Call call, int state) {
49 listener.onStateChanged(call, state);
140 void onStateChanged(Call call, int state); in onStateChanged() method
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryHeaderPreferenceControllerTest.java103 mController.onStateChanged(mLifecycleOwner, Lifecycle.Event.ON_CREATE); in onStateChanged_onCreate_receiverCreated()
112 mController.onStateChanged(mLifecycleOwner, Lifecycle.Event.ON_START); in onStateChanged_onStart_receiverRegistered()
121 mController.onStateChanged(mLifecycleOwner, Lifecycle.Event.ON_STOP); in onStateChanged_onStop_receiverUnregistered()
/packages/modules/Uwb/framework/tests/src/android/uwb/
DAdapterStateListenerTest.java77 verify(callback, times(numTimes)).onStateChanged(anyInt(), anyInt());
249 verify(callback, times(1)).onStateChanged(stateOut, reasonOut);
274 verify(callback).onStateChanged(AdapterStateCallback.STATE_ENABLED_ACTIVE,
289 verify(callback2).onStateChanged(AdapterStateCallback.STATE_ENABLED_ACTIVE,
/packages/modules/NetworkStack/apishim/35/com/android/networkstack/apishim/
DWifiManagerShimImpl.java67 public void onStateChanged(SoftApState state) { in startTetheredHotspot()
68 callbackShim.onStateChanged(new SoftApStateShim() { in startTetheredHotspot()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DFlashNotificationsPreviewPreferenceControllerTest.java161 mController.onStateChanged(mock(LifecycleOwner.class), Lifecycle.Event.ON_RESUME); in onStateChanged_onResume_cameraUri_verifyRegister()
170 mController.onStateChanged(mock(LifecycleOwner.class), Lifecycle.Event.ON_RESUME); in onStateChanged_onResume_screenUri_verifyRegister()
179 mController.onStateChanged(mock(LifecycleOwner.class), Lifecycle.Event.ON_PAUSE); in onStateChanged_onPause_verifyUnregister()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/telemetry/sessioncontroller/
DSessionControllerUnitTest.java126 mPowerStateListenerCaptor.getValue().onStateChanged(CarPowerManager.STATE_ON, 0); in testRegisterCallback_stateChangeTriggersCallback()
142 mPowerStateListenerCaptor.getValue().onStateChanged(CarPowerManager.STATE_ON, 0); in testGetSessionAnnotation_sessionOnSessionOffSequence()
161 mPowerStateListenerCaptor.getValue().onStateChanged(CarPowerManager.STATE_SHUTDOWN_PREPARE, in testGetSessionAnnotation_sessionOnSessionOffSequence()
/packages/services/Car/car-lib/src/android/car/hardware/power/
DCarPowerManager.java295 void onStateChanged(@CarPowerState int state); in onStateChanged() method
333 void onStateChanged(@CarPowerState int state, in onStateChanged() method
720 public void onStateChanged(int state, long expirationTimeMs) in setServiceForListenerLocked()
739 () -> listenerWithCompletion.onStateChanged(state, future)); in setServiceForListenerLocked()
755 executor.execute(() -> listener.onStateChanged(state)); in setServiceForListenerLocked()
/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/policy/
DFinalizationStateDispatchQueue.java98 return mCallback.onStateChanged(oldState, newState); in handleStateChange()
135 ListenableFuture<Void> onStateChanged(@FinalizationState int oldState, in onStateChanged() method
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/vc/
DVolumeControlInputDescriptorTest.java131 mDescriptor.onStateChanged( in setState_withValidIdButIncorrectSettings_valueIsNotUpdated()
153 mDescriptor.onStateChanged(VALID_ID, gainSetting, mute, gainMode); in setState_withValidIdAndCorrectSettings_valueIsUpdated()
168 mDescriptor.onStateChanged( in setState_withInvalidId_valueIsNotUpdated()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/
DDownloadRoleHolderActivity.java85 mViewModel.observeState().observe(this, this::onStateChanged); in onCreate()
90 private void onStateChanged(Integer state) { in onStateChanged() method in DownloadRoleHolderActivity
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/networkconnection/
DEstablishNetworkConnectionActivity.java70 mViewModel.observeState().observe(this, this::onStateChanged); in onCreate()
73 private void onStateChanged(int state) { in onStateChanged() method in EstablishNetworkConnectionActivity
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/telecom/
DInCallServiceImplTest.java97 mInCallService.mCallStateChangedCallback.onStateChanged(mMockCall, Call.STATE_ACTIVE); in testOnStateChanged()
119 public void onStateChanged(Call call, int state) { in onStateChanged() method in InCallServiceImplTest.CallListener
/packages/services/Telephony/src/com/android/services/telephony/
DTelephonyConferenceBase.java56 public void onStateChanged(Conference conference, int oldState, int newState) {} in onStateChanged() method in TelephonyConferenceBase.TelephonyConferenceListener
264 listener.onStateChanged(this, oldState, newState); in notifyStateChanged()
/packages/apps/Settings/tests/robotests/src/com/android/settings/uwb/
DUwbPreferenceControllerTest.java194 mAdapterStateCallbackArgumentCaptor.getValue().onStateChanged( in updateStateAndSummary_uwbDisabledAndEnabled()
201 mAdapterStateCallbackArgumentCaptor.getValue().onStateChanged( in updateStateAndSummary_uwbDisabledAndEnabled()
234 mAdapterStateCallbackArgumentCaptor.getValue().onStateChanged( in updateStateAndSummary_uwbDisabledDueToRegulatory()
/packages/apps/TV/src/com/android/tv/dvr/ui/playback/
DDvrPlaybackControlHelper.java330 private void onStateChanged(int state, long positionMs, int speedLevel) { in onStateChanged() method in DvrPlaybackControlHelper
373 onStateChanged(); in onStateChanged()
395 onStateChanged(state.getState(), state.getPosition(), (int) state.getPlaybackSpeed()); in onPlaybackStateChanged()

12345678