/packages/modules/Uwb/framework/tests/src/android/uwb/ |
D | AdapterStateListenerTest.java | 56 cb.onAdapterStateChanged(AdapterState.STATE_DISABLED, StateChangeReason.UNKNOWN); 128 adapterStateListener.onAdapterStateChanged(AdapterState.STATE_DISABLED, 153 adapterStateListener.onAdapterStateChanged(AdapterState.STATE_DISABLED, 160 adapterStateListener.onAdapterStateChanged(AdapterState.STATE_DISABLED, 200 adapterStateListener.onAdapterStateChanged(AdapterState.STATE_DISABLED, 224 runStateChangeValue(StateChangeReason.SYSTEM_BOOT, AdapterState.STATE_DISABLED, 226 AdapterStateCallback.STATE_DISABLED); 228 runStateChangeValue(StateChangeReason.SYSTEM_POLICY, AdapterState.STATE_DISABLED, 230 AdapterStateCallback.STATE_DISABLED); 232 runStateChangeValue(StateChangeReason.SYSTEM_REGULATION, AdapterState.STATE_DISABLED, [all …]
|
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/ |
D | UwbServiceCoreTest.java | 447 verify(cb).onAdapterStateChanged(UwbManager.AdapterStateCallback.STATE_DISABLED, in testEnable_failure() 462 assertThat(mUwbServiceCore.getAdapterState()).isEqualTo(AdapterState.STATE_DISABLED); in testEnable_failure() 474 verify(cb).onAdapterStateChanged(UwbManager.AdapterStateCallback.STATE_DISABLED, in testEnable_failure_noInitializationFailureListener() 487 assertThat(mUwbServiceCore.getAdapterState()).isEqualTo(AdapterState.STATE_DISABLED); in testEnable_failure_noInitializationFailureListener() 498 verify(cb).onAdapterStateChanged(UwbManager.AdapterStateCallback.STATE_DISABLED, in testEnableWithCountryCode_success() 508 verify(cb).onAdapterStateChanged(UwbManager.AdapterStateCallback.STATE_DISABLED, in testEnableWithCountryCode_success() 511 assertThat(mUwbServiceCore.getAdapterState()).isEqualTo(AdapterState.STATE_DISABLED); in testEnableWithCountryCode_success() 520 assertThat(mUwbServiceCore.getAdapterState()).isEqualTo(AdapterState.STATE_DISABLED); in testEnableWithCountryCode_success() 541 verify(cb).onAdapterStateChanged(UwbManager.AdapterStateCallback.STATE_DISABLED, in testEnableWithCountryCode_statusRegulationUwbOff() 561 verify(cb).onAdapterStateChanged(UwbManager.AdapterStateCallback.STATE_DISABLED, in testEnableWithCountryCode_statusRegulationUwbOff() [all …]
|
D | UwbSettingsStoreTest.java | 145 UwbManager.AdapterStateCallback.STATE_DISABLED); in testMigrationWhenStoreFileEmptyOrNotFound()
|
/packages/services/Car/car-lib/src/android/car/hardware/property/ |
D | EvRegenerativeBrakingState.java | 42 public static final int STATE_DISABLED = 1; field in EvRegenerativeBrakingState 66 case STATE_DISABLED: in toString() 78 @IntDef({STATE_UNKNOWN, STATE_DISABLED, STATE_PARTIALLY_ENABLED, STATE_FULLY_ENABLED})
|
/packages/modules/Uwb/androidx_backend/src/androidx/core/uwb/backend/impl/internal/ |
D | UwbServiceImpl.java | 20 import static android.uwb.UwbManager.AdapterStateCallback.STATE_DISABLED; 63 private int mAdapterState = STATE_DISABLED; 94 if (newState == STATE_DISABLED || oldState == STATE_DISABLED) { in UwbServiceImpl() 157 return mHasUwbFeature && mAdapterState != STATE_DISABLED; in isAvailable()
|
/packages/modules/Uwb/framework/java/android/uwb/ |
D | AdapterStateListener.java | 45 private int mAdapterState = AdapterStateCallback.STATE_DISABLED; 200 case AdapterState.STATE_DISABLED: in convertToState() 202 return AdapterStateCallback.STATE_DISABLED; in convertToState()
|
D | UwbActivityEnergyInfo.java | 204 if (stackState != UwbManager.AdapterStateCallback.STATE_DISABLED in setStackState() 285 if (mStackState != UwbManager.AdapterStateCallback.STATE_DISABLED in build()
|
D | AdapterState.aidl | 27 STATE_DISABLED, enumConstant
|
D | UwbManager.java | 100 STATE_DISABLED, 137 int STATE_DISABLED = 0; field 723 return adapterState != AdapterStateCallback.STATE_DISABLED; in isUwbEnabled()
|
/packages/apps/Launcher3/src/com/android/launcher3/allapps/ |
D | WorkProfileManager.java | 106 updateCurrentState(isEnabled ? STATE_ENABLED : STATE_DISABLED); in reset() 124 } else if (getCurrentState() == STATE_DISABLED) { in updateCurrentState() 177 return getCurrentState() != WorkProfileManager.STATE_DISABLED; in shouldShowWorkApps() 188 if (getCurrentState() == WorkProfileManager.STATE_DISABLED) { in addWorkItems()
|
D | BaseAllAppsAdapter.java | 25 import static com.android.launcher3.allapps.UserProfileManager.STATE_DISABLED; 284 if (privateProfileManager.getCurrentState() == STATE_DISABLED in onBindViewHolder() 306 if (mApps.getPrivateProfileManager().getCurrentState() == STATE_DISABLED) { in onBindViewHolder() 316 == STATE_DISABLED ? null : new SectionDecorationInfo(mActivityContext, in onBindViewHolder()
|
D | UserProfileManager.java | 45 public static final int STATE_DISABLED = 2; field in UserProfileManager 51 STATE_DISABLED,
|
D | PrivateProfileManager.java | 199 return getCurrentState() == STATE_DISABLED && SettingsCache.INSTANCE in isPrivateSpaceHidden() 215 int updatedState = isEnabled ? STATE_ENABLED : STATE_DISABLED; in reset() 222 if (previousState == STATE_DISABLED && updatedState == STATE_ENABLED) { in reset() 224 } else if (previousState == STATE_ENABLED && updatedState == STATE_DISABLED){ in reset() 398 case STATE_DISABLED -> { in updateView()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/connecteddevice/threadnetwork/ |
D | FakeThreadNetworkController.kt | 45 ThreadNetworkController.STATE_DISABLED in setEnabled() 66 … if (isEnabled) ThreadNetworkController.STATE_ENABLED else ThreadNetworkController.STATE_DISABLED in registerStateCallback()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/uwb/ |
D | UwbPreferenceControllerTest.java | 21 import static android.uwb.UwbManager.AdapterStateCallback.STATE_DISABLED; 161 doReturn(STATE_DISABLED).when(mUwbManager).getAdapterState(); in isChecked_uwbDisabled_shouldReturnFalse() 195 STATE_DISABLED, STATE_CHANGED_REASON_SYSTEM_POLICY); in updateStateAndSummary_uwbDisabledAndEnabled() 235 STATE_DISABLED, STATE_CHANGED_REASON_SYSTEM_REGULATION); in updateStateAndSummary_uwbDisabledDueToRegulatory()
|
/packages/modules/Connectivity/thread/tests/integration/src/android/net/thread/ |
D | ThreadNetworkShellCommandTest.java | 19 import static android.net.thread.ThreadNetworkController.STATE_DISABLED; 83 assertThat(mController.getEnabledState()).isEqualTo(STATE_DISABLED); in disable_threadStateIsDisabled()
|
/packages/modules/Uwb/service/java/com/android/server/uwb/ |
D | UwbServiceCore.java | 301 updateState(AdapterStateCallback.STATE_DISABLED, chipId); in UwbServiceCore() 346 return getAdapterState() != AdapterStateCallback.STATE_DISABLED; in isUwbEnabled() 351 return getInternalAdapterState() != AdapterStateCallback.STATE_DISABLED; in isUwbEnabledInternal() 467 int adapterState = AdapterStateCallback.STATE_DISABLED; in getAdapterStateFromDeviceState() 469 adapterState = AdapterStateCallback.STATE_DISABLED; in getAdapterStateFromDeviceState() 870 if (internalAdapterState == AdapterStateCallback.STATE_DISABLED && mSetEnabled in computeAdapterState() 882 return AdapterStateCallback.STATE_DISABLED; in computeAdapterState() 914 return AdapterStateCallback.STATE_DISABLED; in getInternalAdapterState() 919 if (state == AdapterStateCallback.STATE_DISABLED) { in getInternalAdapterState() 920 return AdapterStateCallback.STATE_DISABLED; in getInternalAdapterState()
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/allapps/ |
D | PrivateProfileManagerTest.java | 21 import static com.android.launcher3.allapps.UserProfileManager.STATE_DISABLED; 165 assertEquals("Profile State is not Disabled", STATE_DISABLED, in quietModeFlagPresent_privateSpaceIsResetToDisabled() 177 when(privateProfileManager.getCurrentState()).thenReturn(STATE_DISABLED); in transitioningToUnlocked_resetCallsPostUnlock()
|
/packages/apps/Settings/src/com/android/settings/uwb/ |
D | UwbPreferenceController.java | 20 import static android.uwb.UwbManager.AdapterStateCallback.STATE_DISABLED; 99 return mState == STATE_DISABLED && mStateReason == STATE_CHANGED_REASON_SYSTEM_REGULATION; in isUwbDisabledDueToRegulatory()
|
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/ |
D | EvRegenerativeBrakingStateTest.java | 52 android.car.hardware.property.EvRegenerativeBrakingState.STATE_DISABLED, in constantValues()
|
/packages/modules/Connectivity/thread/tests/unit/src/com/android/server/thread/ |
D | ThreadNetworkControllerServiceTest.java | 20 import static android.net.thread.ThreadNetworkController.STATE_DISABLED; 404 assertThat(mFakeOtDaemon.getEnabledState()).isEqualTo(STATE_DISABLED); in userRestriction_userBecomesRestricted_stateIsDisabledButNotPersisted() 469 assertThat(mFakeOtDaemon.getEnabledState()).isEqualTo(STATE_DISABLED); in airplaneMode_changesFromOffToOn_stateIsDisabled() 527 assertThat(mFakeOtDaemon.getEnabledState()).isEqualTo(STATE_DISABLED); in airplaneMode_setDisabledWhenAirplaneModeIsOn_WillAutoDisableSecondTime()
|
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/drivemode/ |
D | DriveModeThemeSwitcherTest.java | 97 /* state = */ enabled ? OverlayInfo.STATE_ENABLED : OverlayInfo.STATE_DISABLED, in createOverlayInfo()
|
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/allapps/ |
D | AlphabeticalAppsListTest.java | 26 import static com.android.launcher3.allapps.UserProfileManager.STATE_DISABLED; 164 when(mPrivateProfileManager.getCurrentState()).thenReturn(STATE_DISABLED); in privateProfileDisabled_onlyPrivateProfileHeaderViewIsPresent()
|
/packages/modules/Connectivity/thread/framework/java/android/net/thread/ |
D | ThreadNetworkController.java | 74 public static final int STATE_DISABLED = 0; field in ThreadNetworkController 97 value = {STATE_DISABLED, STATE_ENABLED, STATE_DISABLING})
|
/packages/modules/Connectivity/thread/tests/cts/src/android/net/thread/cts/ |
D | ThreadNetworkControllerTest.java | 30 import static android.net.thread.ThreadNetworkController.STATE_DISABLED; 208 listener.expectThreadEnabledState(STATE_DISABLED); in registerStateCallback_returnsUpdatedEnabledStates() 780 listener.expectThreadEnabledState(STATE_DISABLED); 1043 return enabled ? STATE_ENABLED : STATE_DISABLED;
|