Home
last modified time | relevance | path

Searched refs:Condition (Results 1 – 25 of 35) sorted by relevance

12

/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/training/util/
DTrainingConditionsChecker.java56 public enum Condition { enum in TrainingConditionsChecker
122 public Set<Condition> checkAllConditionsForFlTraining(TrainingConstraints trainingConstraints) { in checkAllConditionsForFlTraining()
133 return EnumSet.noneOf(Condition.class); in checkAllConditionsForFlTraining()
138 EnumSet<Condition> conditions = EnumSet.noneOf(Condition.class); in checkAllConditionsForFlTraining()
142 conditions.add(Condition.BATTERY_NOT_OK); in checkAllConditionsForFlTraining()
146 conditions.add(Condition.THERMALS_NOT_OK); in checkAllConditionsForFlTraining()
150 conditions.add(Condition.MEM_NOT_OK); in checkAllConditionsForFlTraining()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/modes/
DZenModesBackendTest.java22 import static android.service.notification.Condition.SOURCE_UNKNOWN;
23 import static android.service.notification.Condition.STATE_FALSE;
24 import static android.service.notification.Condition.STATE_TRUE;
44 import android.service.notification.Condition;
102 new Condition(out.manualRule.conditionId, "", STATE_TRUE, SOURCE_UNKNOWN); in configWithManualRule()
106 new Condition(out.manualRule.conditionId, "", STATE_FALSE, SOURCE_UNKNOWN); in configWithManualRule()
121 zenRule.condition = new Condition(rule.getConditionId(), "", in configWithRule()
122 active ? Condition.STATE_TRUE : Condition.STATE_FALSE, in configWithRule()
123 Condition.SOURCE_USER_ACTION); in configWithRule()
324 eq(new Condition(ZEN_RULE.getConditionId(), "", Condition.STATE_TRUE, in activateMode_zenRule_setsRuleStateActive()
[all …]
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/training/util/
DTrainingConditionsCheckerTest.java31 import com.android.federatedcompute.services.training.util.TrainingConditionsChecker.Condition;
86 Set<Condition> conditions = in testCheckAllConditionsForFlTraining_allTrainingConditionsNotOk()
89 assertThat(conditions).containsExactlyElementsIn(EnumSet.allOf(Condition.class)); in testCheckAllConditionsForFlTraining_allTrainingConditionsNotOk()
102 .containsExactly(Condition.MEM_NOT_OK); in testCheckAllConditionsForFlTraining_memoryConditionNotOk()
114 .contains(Condition.BATTERY_NOT_OK); in testCheckAllConditionsForFlTraining_batteryNotOk()
127 .containsExactly(Condition.THERMALS_NOT_OK); in testCheckAllFlConditions_throttled()
139 .containsExactly(Condition.THERMALS_NOT_OK); in testCheckAllFlConditions_throttled()
152 .containsExactly(Condition.THERMALS_NOT_OK); in testCheckAllConditionsForFlTraining_thermallyThrottled_conditionsReported()
166 .containsExactly(Condition.THERMALS_NOT_OK); in testCheckAllConditionsForFlTraining_thermallyThrottledAtThreshold_conditionsReported()
/packages/modules/AdServices/sdksandbox/tests/testutils/src/android/app/sdksandbox/hosttestutils/
DAwaitUtils.java28 public static void waitFor(Condition exitCondition, String failMessage) throws Exception { in waitFor()
32 public static void waitFor(Condition exitCondition, String failMessage, int retryLimit) in waitFor()
38 Condition exitCondition, String failMessage, int retryLimit, long retryIntervalMs) in waitFor()
51 public interface Condition { interface in AwaitUtils
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/
DWait.java19 public static void atMost(String message, Condition condition, long timeout, in atMost()
24 public static void atMost(Supplier<String> message, Condition condition, long timeout, in atMost()
29 public static void atMost(Supplier<String> message, Condition condition, long timeout, in atMost()
62 public interface Condition { interface in Wait
/packages/apps/Settings/src/com/android/settings/notification/modes/
DZenModesBackend.java31 import android.service.notification.Condition;
223 new Condition(mode.getRule().getConditionId(), "", Condition.STATE_TRUE, in activateMode()
224 Condition.SOURCE_USER_ACTION)); in activateMode()
236 new Condition(mode.getRule().getConditionId(), "", Condition.STATE_FALSE, in deactivateMode()
237 Condition.SOURCE_USER_ACTION)); in deactivateMode()
/packages/apps/Camera2/src/com/android/camera/one/v2/sharedimagereader/ticketpool/
DFiniteTicketPool.java28 import java.util.concurrent.locks.Condition;
59 private final Condition mCondition;
61 private Waiter(int ticketsRequested, Condition condition) { in Waiter()
66 public Condition getCondition() { in getCondition()
DReservableTicketPool.java28 import java.util.concurrent.locks.Condition;
53 private final Condition mDoneCondition;
56 private Waiter(Condition doneCondition, int requestedTicketCount) { in Waiter()
61 public Condition getDoneCondition() { in getDoneCondition()
/packages/apps/Settings/tests/uitests/src/com/android/settings/biometrics2/utils/
DLockScreenUtil.java132 Supplier<String> message, Condition condition) { in waitForCondition()
144 Supplier<String> message, Condition condition, long timeoutMs) { in waitForCondition()
180 private interface Condition { interface in LockScreenUtil
/packages/apps/ThemePicker/tests/robotests/src/com/android/customization/testutils/
DWait.java30 public static void atMost(String message, Condition condition, long timeout) { in atMost()
34 public static void atMost(String message, Condition condition, long timeout, long sleepMillis) { in atMost()
DCondition.java18 public interface Condition { interface
/packages/apps/Settings/src/com/android/settings/notification/zen/
DZenModeVoiceActivity.java29 import android.service.notification.Condition;
53 Condition condition = null; in onVoiceSettingInteraction()
79 private void setZenModeConfig(int mode, Condition condition) { in setZenModeConfig()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
DBarrierConsumer.kt19 import java.util.concurrent.locks.Condition
29 private val mNotFull: Condition = mLock.newCondition()
/packages/modules/Connectivity/nearby/tests/integration/untrusted/src/androidx/test/uiautomator/
DLogcatWaitMixin.java53 Condition<UiDevice, Boolean> createWaitCondition( in createWaitCondition()
55 return new Condition<UiDevice, Boolean>() { in createWaitCondition()
/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/
DImageShadowTask.java29 import java.util.concurrent.locks.Condition;
54 private Condition mSignal;
/packages/apps/Camera2/src/com/android/camera/captureintent/stateful/
DStateMachineImpl.java23 import java.util.concurrent.locks.Condition;
38 private final Condition mStateChangedCondition;
/packages/modules/Bluetooth/system/blueberry/tests/gd/cert/
Dbehavior.py20 from threading import Condition
52 self._invoked_condition = Condition()
/packages/modules/Connectivity/staticlibs/testutils/hostdevice/com/android/net/module/util/
DTrackRecord.kt20 import java.util.concurrent.locks.Condition
311 private fun Condition.await(timeoutMs: Long) = this.await(timeoutMs, TimeUnit.MILLISECONDS) method
/packages/apps/Launcher3/tests/tapl/com/android/launcher3/tapl/
DLaunchedAppState.java36 import androidx.test.uiautomator.Condition;
55 private final Condition<UiDevice, Boolean> mStashedTaskbarHintScaleCondition =
60 private final Condition<UiDevice, Boolean> mStashedTaskbarDefaultScaleCondition =
/packages/services/Car/cpp/watchdog/vts/
DVtsAidlWatchdogTargetTest.cpp42 using ::android::Condition;
94 Condition mCond GUARDED_BY(mMutex);
/packages/modules/Bluetooth/framework/tests/util/src/android/bluetooth/test_utils/
DTestUtils.java38 import java.util.concurrent.locks.Condition;
204 private final Condition mConditionProfileConnection;
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/widget/
DTaplRequestPinItemTest.java47 import com.android.launcher3.util.Wait.Condition;
179 private class ItemSearchCondition implements Condition {
/packages/services/Car/service/src/com/android/car/bluetooth/
DCarBluetoothUserService.java43 import java.util.concurrent.locks.Condition;
74 private final Condition mConditionAllProxiesConnected;
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/bluetooth/
DCustomUuidEirFragment.java51 import java.util.concurrent.locks.Condition;
87 private final Condition mAdapterOnCondition = mAdapterOnLock.newCondition();
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DGLRootView.java47 import java.util.concurrent.locks.Condition;
106 private final Condition mFreezeCondition =

12