Home
last modified time | relevance | path

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

123456

/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 …]
DSupplicantStaIfaceHalAidlImplTest.java966 mISupplicantStaIfaceCallback.onStateChanged( in testStateChangeCallbackWithNoConfiguredNetwork()
988 mISupplicantStaIfaceCallback.onStateChanged( in testStateChangeToAssociatedCallback()
1010 mISupplicantStaIfaceCallback.onStateChanged( in testStateChangeToCompletedCallback()
1067 mISupplicantStaIfaceCallback.onStateChanged( in testDisconnectedCallback()
1108 mISupplicantStaIfaceCallback.onStateChanged( in testAuthFailurePasswordOnDisconnect()
1113 mISupplicantStaIfaceCallback.onStateChanged( in testAuthFailurePasswordOnDisconnect()
1137 mISupplicantStaIfaceCallback.onStateChanged( in testWapiPskWrongPasswordNotification()
1142 mISupplicantStaIfaceCallback.onStateChanged( in testWapiPskWrongPasswordNotification()
1176 mISupplicantStaIfaceCallback.onStateChanged( in testAuthFailureEapOnDisconnect()
1181 mISupplicantStaIfaceCallback.onStateChanged( in testAuthFailureEapOnDisconnect()
[all …]
DSupplicantStaIfaceHalHidlImplTest.java1158 mISupplicantStaIfaceCallback.onStateChanged( in testStateChangeCallbackWithNoConfiguredNetwork()
1180 mISupplicantStaIfaceCallback.onStateChanged( in testStateChangeToAssociatedCallback()
1202 mISupplicantStaIfaceCallback.onStateChanged( in testStateChangeToCompletedCallback()
1224 mISupplicantStaIfaceCallback.onStateChanged( in testDisconnectedCallback()
1264 mISupplicantStaIfaceCallback.onStateChanged( in testAuthFailurePasswordOnDisconnect()
1269 mISupplicantStaIfaceCallback.onStateChanged( in testAuthFailurePasswordOnDisconnect()
1293 mISupplicantStaIfaceCallback.onStateChanged( in testWapiPskWrongPasswordNotification()
1298 mISupplicantStaIfaceCallback.onStateChanged( in testWapiPskWrongPasswordNotification()
1332 mISupplicantStaIfaceCallback.onStateChanged( in testAuthFailureEapOnDisconnect()
1337 mISupplicantStaIfaceCallback.onStateChanged( in testAuthFailureEapOnDisconnect()
[all …]
DSoftApManagerTest.java534 verify(mCallback).onStateChanged(eq(new SoftApState(WifiManager.WIFI_AP_STATE_FAILED, in startSoftApWithUserRejection()
598 verify(mCallback).onStateChanged(eq(new SoftApState(WifiManager.WIFI_AP_STATE_FAILED, in startSoftApDefaultConfigFailedToLoad()
634 verify(mCallback).onStateChanged(eq(new SoftApState(WifiManager.WIFI_AP_STATE_FAILED, in testSetupForSoftApModeNullApInterfaceNameFailureIncrementsMetrics()
676 verify(mCallback).onStateChanged(eq(new SoftApState(WifiManager.WIFI_AP_STATE_FAILED, in testStartSoftApNotPossibleToCreateApInterfaceIncrementsMetrics()
713 verify(mCallback).onStateChanged(eq(new SoftApState( in testSetupForSoftApModeEmptyInterfaceNameFailureIncrementsMetrics()
1007 verify(mCallback).onStateChanged(eq(new SoftApState( in startSoftApApInterfaceFailedToStart()
1037 order.verify(mCallback).onStateChanged(eq(new SoftApState( in stopWhenStarted()
1051 order.verify(mCallback).onStateChanged(eq(new SoftApState( in stopWhenStarted()
1090 order.verify(mCallback).onStateChanged(eq(new SoftApState( in cleanStopOnInterfaceDestroyed()
1104 order.verify(mCallback).onStateChanged(eq(new SoftApState( in cleanStopOnInterfaceDestroyed()
[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/carservice_test/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/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/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/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DFlashNotificationsPreviewPreferenceControllerTest.java162 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()
178 mController.onStateChanged(mock(LifecycleOwner.class), Lifecycle.Event.ON_PAUSE); in onStateChanged_onPause_verifyUnregister()
/packages/services/Car/car-lib/src/android/car/hardware/power/
DCarPowerManager.java295 void onStateChanged(@CarPowerState int state); in onStateChanged() method
332 void onStateChanged(@CarPowerState int state, in onStateChanged() method
716 public void onStateChanged(int state, long expirationTimeMs) in setServiceForListenerLocked()
735 () -> listenerWithCompletion.onStateChanged(state, future)); in setServiceForListenerLocked()
751 executor.execute(() -> listener.onStateChanged(state)); in setServiceForListenerLocked()
DICarPowerStateListener.aidl28 void onStateChanged(int state, long expirationTimeMs); in onStateChanged() method
/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/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/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/modules/Wifi/framework/java/android/net/wifi/
DITrafficStateCallback.aidl33 void onStateChanged(int state); in onStateChanged() method
/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()
/packages/modules/StatsD/statsd/src/state/
DStateListener.h47 virtual void onStateChanged(const int64_t eventTimeNs, const int32_t atomId,

123456