/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/tips/ |
D | RestrictAppTip.java | 41 public RestrictAppTip(@StateType int state, List<AppInfo> restrictApps) { in RestrictAppTip() 42 super(TipType.APP_RESTRICTION, state, state == StateType.NEW /* showDialog */); in RestrictAppTip() 47 public RestrictAppTip(@StateType int state, AppInfo appInfo) { in RestrictAppTip() 48 super(TipType.APP_RESTRICTION, state, state == StateType.NEW /* showDialog */); in RestrictAppTip() 71 return mState == StateType.HANDLED in getTitle() 86 mState == StateType.HANDLED in getSummary() 97 return mState == StateType.HANDLED in getIconId() 104 if (tip.mState == StateType.NEW) { in updateState() 106 mState = StateType.NEW; in updateState() 109 } else if (mState == StateType.NEW && tip.mState == StateType.INVISIBLE) { in updateState() [all …]
|
D | BatteryTip.java | 45 @IntDef({StateType.NEW, StateType.HANDLED, StateType.INVISIBLE}) 46 public @interface StateType { annotation in BatteryTip 191 @StateType 197 return mState != StateType.INVISIBLE; in isVisible()
|
D | LowBatteryTip.java | 32 public LowBatteryTip(@StateType int state, boolean powerSaveModeOn) { in LowBatteryTip() 71 mState = lowBatteryTip.mPowerSaveModeOn ? StateType.INVISIBLE : lowBatteryTip.getState(); in updateState()
|
D | HighUsageTip.java | 41 appList.isEmpty() ? StateType.INVISIBLE : StateType.NEW, in HighUsageTip()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/tips/ |
D | RestrictAppTipTest.java | 104 mNewBatteryTip = new RestrictAppTip(BatteryTip.StateType.NEW, mUsageAppList); in setUp() 105 mHandledBatteryTip = new RestrictAppTip(BatteryTip.StateType.HANDLED, mUsageAppList); in setUp() 107 new RestrictAppTip(BatteryTip.StateType.INVISIBLE, new ArrayList<>()); in setUp() 125 assertThat(parcelTip.getState()).isEqualTo(BatteryTip.StateType.NEW); in parcelable() 143 mHandledBatteryTip = new RestrictAppTip(BatteryTip.StateType.HANDLED, mUsageAppList); in getTitle_moreAppsHandled_showHandledTitle() 164 mHandledBatteryTip = new RestrictAppTip(BatteryTip.StateType.HANDLED, mUsageAppList); in getSummary_moreAppsHandled_showHandledSummary() 175 assertThat(mNewBatteryTip.getState()).isEqualTo(BatteryTip.StateType.HANDLED); in update_anomalyBecomeInvisible_stateHandled() 182 assertThat(mHandledBatteryTip.getState()).isEqualTo(BatteryTip.StateType.INVISIBLE); in update_handledAnomlayBecomeInvisible_stateInvisible() 188 assertThat(mInvisibleBatteryTip.getState()).isEqualTo(BatteryTip.StateType.NEW); in update_newAnomalyComes_stateNew() 191 assertThat(mHandledBatteryTip.getState()).isEqualTo(BatteryTip.StateType.NEW); in update_newAnomalyComes_stateNew() [all …]
|
D | LowBatteryTipTest.java | 48 mLowBatteryTip = new LowBatteryTip(BatteryTip.StateType.NEW, false /* powerSaveModeOn */); in setUp() 66 mLowBatteryTip.mState = BatteryTip.StateType.NEW; in updateState_stateNew_showExpectedInformation() 78 new LowBatteryTip(BatteryTip.StateType.NEW, true /* powerSaveModeOn */); in updateState_powerSaveModeOn_notShowTipItem() 82 assertThat(tip.mState).isEqualTo(BatteryTip.StateType.INVISIBLE); in updateState_powerSaveModeOn_notShowTipItem() 93 BatteryTip.StateType.NEW); in log_lowBatteryActionWithCorrectState()
|
D | SmartBatteryTipTest.java | 45 mSmartBatteryTip = new SmartBatteryTip(BatteryTip.StateType.NEW); in setUp() 56 BatteryTip.StateType.NEW); in testLog()
|
D | UnrestrictAppTipTest.java | 42 mBatteryTip = new UnrestrictAppTip(BatteryTip.StateType.NEW, appInfo); in setUp() 54 assertThat(parcelTip.getState()).isEqualTo(BatteryTip.StateType.NEW); in testParcelable()
|
D | HighUsageTipTest.java | 78 assertThat(parcelTip.getState()).isEqualTo(BatteryTip.StateType.NEW); in testParcelable() 102 BatteryTip.StateType.NEW); in testLog_logAppInfo()
|
D | BatteryDefenderTipTest.java | 64 new BatteryDefenderTip(BatteryTip.StateType.NEW, /* isPluggedIn= */ false); in setUp() 132 new BatteryDefenderTip(BatteryTip.StateType.NEW, /* isPluggedIn= */ true); in updatePreference_whenCharging_setPrimaryButtonVisibleToBeTrue()
|
/packages/services/Car/cpp/watchdog/server/tests/ |
D | WatchdogInternalHandlerTest.cpp | 55 using ::aidl::android::automotive::watchdog::internal::StateType; 386 ->notifySystemStateChange(StateType::POWER_CYCLE, in TEST_F() 400 ->notifySystemStateChange(StateType::POWER_CYCLE, in TEST_F() 415 ->notifySystemStateChange(StateType::POWER_CYCLE, in TEST_F() 428 ->notifySystemStateChange(StateType::POWER_CYCLE, in TEST_F() 440 StateType type = StateType::POWER_CYCLE; in TEST_F() 455 mWatchdogInternalHandler->notifySystemStateChange(StateType::GARAGE_MODE, in TEST_F() 469 mWatchdogInternalHandler->notifySystemStateChange(StateType::GARAGE_MODE, in TEST_F() 479 StateType type = StateType::USER_STATE; in TEST_F() 493 StateType type = StateType::USER_STATE; in TEST_F() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/ |
D | BatteryTipUtilsTest.java | 61 mRestrictAppTip = spy(new RestrictAppTip(BatteryTip.StateType.NEW, new ArrayList<>())); in setUp() 63 spy(new LowBatteryTip(BatteryTip.StateType.NEW, false /* powerSaveModeOn */)); in setUp() 65 spy(new BatteryDefenderTip(BatteryTip.StateType.NEW, false /* isPluggedIn */)); in setUp() 70 when(mRestrictAppTip.getState()).thenReturn(BatteryTip.StateType.NEW); in testGetActionForBatteryTip_typeRestrictStateNew_returnActionRestrict() 80 when(mRestrictAppTip.getState()).thenReturn(BatteryTip.StateType.HANDLED); in testGetActionForBatteryTip_typeRestrictStateHandled_returnActionOpen() 90 when(mLowBatteryTip.getState()).thenReturn(BatteryTip.StateType.NEW); in testGetActionForBatteryTip_typeLowBatteryStateNew_returnActionOpen() 100 when(mBatteryDefenderTip.getState()).thenReturn(BatteryTip.StateType.NEW); in testGetActionForBatteryTip_typeBatteryDefenderStateNew_returnNullAction()
|
D | BatteryTipDialogFragmentTest.java | 110 new RestrictAppTip(BatteryTip.StateType.NEW, new ArrayList<>(restrictApps)); in setUp() 113 new RestrictAppTip(BatteryTip.StateType.NEW, new ArrayList<>(restrictApps)); in setUp() 115 mUnrestrictAppTip = new UnrestrictAppTip(BatteryTip.StateType.NEW, mAppInfo); in setUp() 116 mDefenderTip = new BatteryDefenderTip(BatteryTip.StateType.NEW, false /* isPluggedIn */); in setUp() 200 new RestrictAppTip(BatteryTip.StateType.NEW, appInfos); in testOnCreateDialog_restrictSixAppsTip_fireRestrictSixAppsDialog()
|
/packages/modules/NeuralNetworks/runtime/test/specs/V1_2/ |
D | quantized_lstm.mod.py | 51 StateType = ("TENSOR_QUANT16_SYMM", (n_batch, n_cell), 1 / 2048, 0) variable 53 prev_cell_state = Input("prevCellState", StateType) 56 cell_state_out = Output("cellStateOut", StateType) 150 StateType = ("TENSOR_QUANT16_SYMM", (n_batch, n_cell), 1 / 2048, 0) variable 152 prev_cell_state = Input("prevCellState", StateType) 155 cell_state_out = Output("cellStateOut", StateType)
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/detectors/ |
D | LowBatteryDetectorTest.java | 84 assertThat(mLowBatteryDetector.detect().getState()).isEqualTo(BatteryTip.StateType.NEW); in detect_enabledByTest_tipNew() 92 assertThat(mLowBatteryDetector.detect().getState()).isEqualTo(BatteryTip.StateType.NEW); in detect_lowBattery_tipNew() 101 .isEqualTo(BatteryTip.StateType.INVISIBLE); in detect_batterySaverOn_tipInvisible()
|
D | IncompatibleChargerDetectorTest.java | 64 assertThat(batteryTip.getState()).isEqualTo(BatteryTip.StateType.INVISIBLE); in detect_withoutIncompatibleCharger_shouldNotShowTip() 74 assertThat(batteryTip.getState()).isEqualTo(BatteryTip.StateType.NEW); in detect_withIncompatibleCharger_showTip()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/watchdog/ |
D | CarWatchdogServiceUnitTest.java | 88 import android.automotive.watchdog.internal.StateType; 388 verify(mMockCarWatchdogDaemonHelper).notifySystemStateChange(StateType.GARAGE_MODE, in testGarageModeStateChangeToOn() 402 StateType.GARAGE_MODE, in testGarageModeStateChangeToOff() 420 verify(mMockCarWatchdogDaemonHelper).notifySystemStateChange(StateType.USER_STATE, 101, in testWatchdogDaemonRestart() 422 verify(mMockCarWatchdogDaemonHelper).notifySystemStateChange(StateType.USER_STATE, 102, in testWatchdogDaemonRestart() 424 verify(mMockCarWatchdogDaemonHelper).notifySystemStateChange(StateType.POWER_CYCLE, in testWatchdogDaemonRestart() 429 StateType.GARAGE_MODE, GarageMode.GARAGE_MODE_ON, MISSING_ARG_VALUE); in testWatchdogDaemonRestart() 443 verify(mMockCarWatchdogDaemonHelper).notifySystemStateChange(StateType.USER_STATE, 101, in testUserSwitchingLifecycleEvents() 445 verify(mMockCarWatchdogDaemonHelper).notifySystemStateChange(StateType.USER_STATE, 101, in testUserSwitchingLifecycleEvents() 447 verify(mMockCarWatchdogDaemonHelper).notifySystemStateChange(StateType.USER_STATE, 101, in testUserSwitchingLifecycleEvents() [all …]
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/detectors/ |
D | IncompatibleChargerDetector.java | 39 isIncompatibleCharging ? BatteryTip.StateType.NEW : BatteryTip.StateType.INVISIBLE; in detect()
|
D | BatteryDefenderDetector.java | 43 isBasicBatteryDefend ? BatteryTip.StateType.NEW : BatteryTip.StateType.INVISIBLE; in detect()
|
D | LowBatteryDetector.java | 55 ? BatteryTip.StateType.NEW in detect() 56 : BatteryTip.StateType.INVISIBLE; in detect()
|
D | SmartBatteryDetector.java | 64 enableSmartBatteryTip ? BatteryTip.StateType.NEW : BatteryTip.StateType.INVISIBLE; in detect()
|
/packages/services/Car/cpp/watchdog/server/src/ |
D | WatchdogInternalHandler.cpp | 43 using ::aidl::android::automotive::watchdog::internal::StateType; 288 ScopedAStatus WatchdogInternalHandler::notifySystemStateChange(StateType type, int32_t arg1, in notifySystemStateChange() 294 case StateType::POWER_CYCLE: { in notifySystemStateChange() 298 case StateType::GARAGE_MODE: { in notifySystemStateChange() 305 case StateType::USER_STATE: { in notifySystemStateChange() 310 case StateType::BOOT_PHASE: { in notifySystemStateChange()
|
/packages/services/Car/cpp/watchdog/aidl/android/automotive/watchdog/ |
D | ICarWatchdog.aidl | 24 import android.automotive.watchdog.StateType; 134 void notifySystemStateChange(in StateType type, in int arg1, in int arg2); in notifySystemStateChange()
|
/packages/services/Car/cpp/watchdog/aidl/android/automotive/watchdog/internal/ |
D | ICarWatchdog.aidl | 24 import android.automotive.watchdog.internal.StateType; 110 void notifySystemStateChange(in StateType type, int arg1, int arg2); in notifySystemStateChange()
|
/packages/services/Car/service/src/com/android/car/watchdog/ |
D | CarWatchdogService.java | 47 import android.automotive.watchdog.internal.StateType; 177 mCarWatchdogDaemonHelper.notifySystemStateChange(StateType.POWER_CYCLE, 191 mCarWatchdogDaemonHelper.notifySystemStateChange(StateType.USER_STATE, 626 mCarWatchdogDaemonHelper.notifySystemStateChange(StateType.USER_STATE, in notifyAllUserStates() 645 StateType.POWER_CYCLE, powerCycle, MISSING_ARG_VALUE); in notifyPowerCycleChange() 659 StateType.GARAGE_MODE, garageMode, MISSING_ARG_VALUE); in notifyGarageModeChange() 809 mCarWatchdogDaemonHelper.notifySystemStateChange(StateType.USER_STATE, userId, in subscribeUserStateChange()
|