/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/training/util/ |
D | TrainingConditionsChecker.java | 56 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/ |
D | ZenModesBackendTest.java | 22 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/ |
D | TrainingConditionsCheckerTest.java | 31 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/ |
D | AwaitUtils.java | 28 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/ |
D | Wait.java | 19 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/ |
D | ZenModesBackend.java | 31 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/ |
D | FiniteTicketPool.java | 28 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()
|
D | ReservableTicketPool.java | 28 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/ |
D | LockScreenUtil.java | 132 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/ |
D | Wait.java | 30 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()
|
D | Condition.java | 18 public interface Condition { interface
|
/packages/apps/Settings/src/com/android/settings/notification/zen/ |
D | ZenModeVoiceActivity.java | 29 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/ |
D | BarrierConsumer.kt | 19 import java.util.concurrent.locks.Condition 29 private val mNotFull: Condition = mLock.newCondition()
|
/packages/modules/Connectivity/nearby/tests/integration/untrusted/src/androidx/test/uiautomator/ |
D | LogcatWaitMixin.java | 53 Condition<UiDevice, Boolean> createWaitCondition( in createWaitCondition() 55 return new Condition<UiDevice, Boolean>() { in createWaitCondition()
|
/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/ |
D | ImageShadowTask.java | 29 import java.util.concurrent.locks.Condition; 54 private Condition mSignal;
|
/packages/apps/Camera2/src/com/android/camera/captureintent/stateful/ |
D | StateMachineImpl.java | 23 import java.util.concurrent.locks.Condition; 38 private final Condition mStateChangedCondition;
|
/packages/modules/Bluetooth/system/blueberry/tests/gd/cert/ |
D | behavior.py | 20 from threading import Condition 52 self._invoked_condition = Condition()
|
/packages/modules/Connectivity/staticlibs/testutils/hostdevice/com/android/net/module/util/ |
D | TrackRecord.kt | 20 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/ |
D | LaunchedAppState.java | 36 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/ |
D | VtsAidlWatchdogTargetTest.cpp | 42 using ::android::Condition; 94 Condition mCond GUARDED_BY(mMutex);
|
/packages/modules/Bluetooth/framework/tests/util/src/android/bluetooth/test_utils/ |
D | TestUtils.java | 38 import java.util.concurrent.locks.Condition; 204 private final Condition mConditionProfileConnection;
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/widget/ |
D | TaplRequestPinItemTest.java | 47 import com.android.launcher3.util.Wait.Condition; 179 private class ItemSearchCondition implements Condition {
|
/packages/services/Car/service/src/com/android/car/bluetooth/ |
D | CarBluetoothUserService.java | 43 import java.util.concurrent.locks.Condition; 74 private final Condition mConditionAllProxiesConnected;
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/bluetooth/ |
D | CustomUuidEirFragment.java | 51 import java.util.concurrent.locks.Condition; 87 private final Condition mAdapterOnCondition = mAdapterOnLock.newCondition();
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | GLRootView.java | 47 import java.util.concurrent.locks.Condition; 106 private final Condition mFreezeCondition =
|