Home
last modified time | relevance | path

Searched refs:StateChangeReason (Results 1 – 8 of 8) sorted by relevance

/packages/modules/Uwb/framework/tests/src/android/uwb/
DAdapterStateListenerTest.java56 cb.onAdapterStateChanged(AdapterState.STATE_DISABLED, StateChangeReason.UNKNOWN);
129 StateChangeReason.UNKNOWN);
154 StateChangeReason.UNKNOWN);
161 StateChangeReason.UNKNOWN);
201 StateChangeReason.ALL_SESSIONS_CLOSED);
215 runStateChangeValue(StateChangeReason.ALL_SESSIONS_CLOSED,
220 runStateChangeValue(StateChangeReason.SESSION_STARTED, AdapterState.STATE_ENABLED_ACTIVE,
224 runStateChangeValue(StateChangeReason.SYSTEM_BOOT, AdapterState.STATE_DISABLED,
228 runStateChangeValue(StateChangeReason.SYSTEM_POLICY, AdapterState.STATE_DISABLED,
232 runStateChangeValue(StateChangeReason.SYSTEM_REGULATION, AdapterState.STATE_DISABLED,
[all …]
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/
DUwbServiceCoreTest.java79 import android.uwb.StateChangeReason;
448 StateChangeReason.UNKNOWN); in testEnable_failure()
475 StateChangeReason.UNKNOWN); in testEnable_failure_noInitializationFailureListener()
499 StateChangeReason.UNKNOWN); in testEnableWithCountryCode_success()
509 StateChangeReason.SYSTEM_REGULATION); in testEnableWithCountryCode_success()
528 StateChangeReason.SYSTEM_POLICY); in testEnableWithCountryCode_success()
542 StateChangeReason.UNKNOWN); in testEnableWithCountryCode_statusRegulationUwbOff()
562 StateChangeReason.SYSTEM_REGULATION); in testEnableWithCountryCode_statusRegulationUwbOff()
596 StateChangeReason.UNKNOWN); in testCountryCodeChange_fromValidCountry_statusRegulationUwbOff()
606 StateChangeReason.SYSTEM_POLICY); in testCountryCodeChange_fromValidCountry_statusRegulationUwbOff()
[all …]
DUwbSessionManagerTest.java107 import android.uwb.StateChangeReason;
2158 eq(uwbSession.getSessionHandle()), eq(StateChangeReason.SYSTEM_POLICY), any()); in testInitSessionWithNonSystemAppNotInFg()
2450 eq(uwbSession.getSessionHandle()), eq(StateChangeReason.SYSTEM_POLICY), any()); in testOpenRangingWithNonSystemAppNotInFgInChain()
/packages/modules/Uwb/framework/java/android/uwb/
DAdapterStateListener.java166 @StateChangeReason int reason) { in convertToStateChangedReason()
168 case StateChangeReason.ALL_SESSIONS_CLOSED: in convertToStateChangedReason()
171 case StateChangeReason.SESSION_STARTED: in convertToStateChangedReason()
174 case StateChangeReason.SYSTEM_POLICY: in convertToStateChangedReason()
177 case StateChangeReason.SYSTEM_BOOT: in convertToStateChangedReason()
180 case StateChangeReason.SYSTEM_REGULATION: in convertToStateChangedReason()
183 case StateChangeReason.UNKNOWN: in convertToStateChangedReason()
DIUwbAdapterStateCallbacks.aidl19 import android.uwb.StateChangeReason;
32 void onAdapterStateChanged(AdapterState state, StateChangeReason reason); in onAdapterStateChanged()
DStateChangeReason.aidl23 enum StateChangeReason { enum
DIOnUwbActivityEnergyInfoListener.aidl19 import android.uwb.StateChangeReason;
/packages/modules/Uwb/service/java/com/android/server/uwb/
DUwbServiceCore.java48 import android.uwb.StateChangeReason;
141 private @StateChangeReason int mLastAdapterStateChangedReason = StateChangeReason.UNKNOWN;
479 int reason = StateChangeReason.UNKNOWN; in getReasonFromDeviceState()
481 reason = StateChangeReason.SYSTEM_POLICY; in getReasonFromDeviceState()
483 reason = StateChangeReason.SYSTEM_POLICY; in getReasonFromDeviceState()
485 reason = StateChangeReason.SESSION_STARTED; in getReasonFromDeviceState()
1231 adapterReason = StateChangeReason.SYSTEM_POLICY; in deInitializeHw()
1260 StateChangeReason.SYSTEM_POLICY); in handleEnable()
1308 reason = StateChangeReason.SYSTEM_REGULATION; in computeAndNotifyAdapterStateChange()