Searched refs:condition (Results 1 - 25 of 96) sorted by relevance

1234

/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyAndException/src/com/android/multidexlegacyandexception/
H A DMainActivity.java33 public int get1(boolean condition) { argument
34 return IntermediateClass.get1(condition);
37 public int get2(boolean condition) { argument
38 return IntermediateClass.get2(condition);
40 public int get3(boolean condition) { argument
41 return MiniIntermediateClass.get3(condition);
H A DTestApplication.java23 private static void canThrow1(boolean condition) throws ExceptionInMainDex { argument
24 if (condition) {
30 public static int get(boolean condition) { argument
32 canThrow1(condition);
H A DClassInSecondaryDex.java20 private boolean condition; field in class:ClassInSecondaryDex
22 public ClassInSecondaryDex(boolean condition) { argument
23 this.condition = condition;
28 if (condition) {
35 if (condition) {
H A DIntermediateClass.java20 public static int get1(boolean condition) { argument
21 return new ClassInSecondaryDex(condition).get1();
24 public static int get2(boolean condition) { argument
25 return new ClassInSecondaryDex(condition).get2();
28 public static int get3(boolean condition) { argument
29 ClassInSecondaryDex thrower = new ClassInSecondaryDex(condition);
53 public static int get4(boolean condition) { argument
54 ClassInSecondaryDex thrower = new ClassInSecondaryDex(condition);
H A DMiniIntermediateClass.java20 public static int get3(boolean condition) { argument
21 ClassInSecondaryDex thrower = new ClassInSecondaryDex(condition);
/frameworks/base/tests/testables/src/android/testing/
H A DPollingCheck.java62 public static void check(CharSequence message, long timeout, Callable<Boolean> condition) argument
65 if (condition.call()) {
76 public static void waitFor(final PollingCheckCondition condition) { argument
80 return condition.canProceed();
85 public static void waitFor(long timeout, final PollingCheckCondition condition) { argument
89 return condition.canProceed();
/frameworks/base/core/tests/coretests/src/android/util/
H A DPollingCheck.java22 * Utility used for testing that allows to poll for a certain condition to happen within a timeout.
33 * The condition that the PollingCheck should use to proceed successfully.
38 * @return Whether the polling condition has been met.
76 * Instantiate and start polling for a given condition with a default 3000ms timeout.
78 * @param condition The condition to check for success.
80 public static void waitFor(final PollingCheckCondition condition) { argument
84 return condition.canProceed();
90 * Instantiate and start polling for a given condition.
93 * @param condition Th
95 waitFor(long timeout, final PollingCheckCondition condition) argument
[all...]
/frameworks/support/media/version-compat-tests/lib/src/main/java/android/support/mediacompat/testlib/util/
H A DPollingCheck.java22 * Utility used for testing that allows to poll for a certain condition to happen within a timeout.
31 * The condition that the PollingCheck should use to proceed successfully.
35 * @return Whether the polling condition has been met.
73 * Instantiate and start polling for a given condition with a default 3000ms timeout.
74 * @param condition The condition to check for success.
76 public static void waitFor(final PollingCheckCondition condition) { argument
80 return condition.canProceed();
86 * Instantiate and start polling for a given condition.
88 * @param condition Th
90 waitFor(long timeout, final PollingCheckCondition condition) argument
[all...]
/frameworks/support/testutils/src/main/java/androidx/testutils/
H A DPollingCheck.java22 * Utility used for testing that allows to poll for a certain condition to happen within a timeout.
30 * The condition that the PollingCheck should use to proceed successfully.
34 * @return Whether the polling condition has been met.
72 * Instantiate and start polling for a given condition with a default 3000ms timeout.
73 * @param condition The condition to check for success.
75 public static void waitFor(final PollingCheckCondition condition) { argument
79 return condition.canProceed();
85 * Instantiate and start polling for a given condition.
87 * @param condition Th
89 waitFor(long timeout, final PollingCheckCondition condition) argument
[all...]
/frameworks/base/cmds/statsd/src/metrics/
H A DMetricProducer.cpp34 bool condition; local
46 condition = (conditionState == ConditionState::kTrue);
48 condition = mCondition;
51 if (mDimensionsInCondition.empty() && condition) {
61 matcherIndex, metricKey, conditionKey, condition, event);
65 matcherIndex, metricKey, conditionKey, condition, event);
H A Dmetrics_manager_util.cpp22 #include "../condition/CombinationConditionTracker.h"
23 #include "../condition/SimpleConditionTracker.h"
24 #include "../condition/StateTracker.h"
86 const int64_t condition, const int metricIndex,
92 auto condition_it = conditionTrackerMap.find(condition);
94 ALOGW("cannot find Predicate \"%lld\" in the config", (long long)condition);
99 auto it = conditionTrackerMap.find(link.condition());
101 ALOGW("cannot find Predicate \"%lld\" in the config", (long long)link.condition());
217 const Predicate& condition = config.predicate(i); local
219 switch (condition
85 handleMetricWithConditions( const int64_t condition, const int metricIndex, const unordered_map<int64_t, int>& conditionTrackerMap, const ::google::protobuf::RepeatedPtrField<::android::os::statsd::MetricConditionLink>& links, vector<sp<ConditionTracker>>& allConditionTrackers, int& conditionIndex, unordered_map<int, std::vector<int>>& conditionToMetricMap) argument
[all...]
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/testutils/
H A DPollingCheck.java72 public static void waitFor(final PollingCheckCondition condition) { argument
76 return condition.canProceed();
81 return condition.canPreProceed();
86 public static void waitFor(long timeout, final PollingCheckCondition condition) { argument
90 return condition.canProceed();
/frameworks/support/webkit/src/androidTest/java/androidx/webkit/
H A DPollingCheck.java62 public static void check(CharSequence message, long timeout, Callable<Boolean> condition) argument
65 if (condition.call()) {
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
H A DScheduleConditionProviderTest.java96 Condition condition = mService.evaluateSubscriptionLocked(
99 assertEquals(Condition.STATE_TRUE, condition.state);
122 Condition condition = mService.evaluateSubscriptionLocked(
125 assertEquals(Condition.STATE_FALSE, condition.state);
150 Condition condition = mService.evaluateSubscriptionLocked(
153 assertEquals(Condition.STATE_FALSE, condition.state);
173 Condition condition = mService.evaluateSubscriptionLocked(
176 assertEquals(Condition.STATE_FALSE, condition.state);
194 Condition condition = mService.evaluateSubscriptionLocked(
196 assertEquals(Condition.STATE_TRUE, condition
[all...]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/notification/
H A DEnableZenModeDialog.java120 if (isForever(tag.condition)) {
124 } else if (isAlarm(tag.condition)) {
128 } else if (isCountdown(tag.condition)) {
133 Slog.d(TAG, "Invalid manual condition: " + tag.condition);
135 // always triggers priority-only dnd with chosen condition
138 getRealConditionId(tag.condition), TAG);
186 protected void bind(final Condition condition, final View row, final int rowId) { argument
187 if (condition == null) throw new IllegalArgumentException("condition mus
252 getConditionId(Condition condition) argument
281 getRealConditionId(Condition condition) argument
327 updateUi(ConditionTag tag, View row, Condition condition, boolean enabled, int rowId, Uri conditionId) argument
456 updateAlarmWarningText(Condition condition) argument
463 computeAlarmWarningText(Condition condition) argument
511 public Condition condition; field in class:EnableZenModeDialog.ConditionTag
[all...]
/frameworks/base/services/core/java/com/android/server/notification/
H A DZenModeConditions.java64 if (config.manualRule != null && config.manualRule.condition != null
109 public void onConditionChanged(Uri id, Condition condition) { argument
110 if (DEBUG) Log.d(TAG, "onConditionChanged " + id + " " + condition);
113 boolean updated = updateCondition(id, condition, config.manualRule);
115 updated |= updateCondition(id, condition, automaticRule);
155 rule.condition = null;
159 if (rule.condition == null) {
160 rule.condition = mConditionProviders.findCondition(rule.component, rule.conditionId);
161 if (rule.condition != null && DEBUG) Log.d(TAG, "Found existing condition fo
187 updateCondition(Uri id, Condition condition, ZenRule rule) argument
[all...]
/frameworks/base/core/java/android/hardware/camera2/legacy/
H A DGLThreadManager.java61 public final ConditionVariable condition; field in class:GLThreadManager.ConfigureHolder
65 public ConfigureHolder(ConditionVariable condition, Collection<Pair<Surface, argument
67 this.condition = condition;
91 configure.condition.open();
216 final ConditionVariable condition = new ConditionVariable(/*closed*/false);
217 ConfigureHolder configure = new ConfigureHolder(condition, surfaces, collector);
223 condition.block();
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/expr/
H A DDependency.java37 public Dependency(Expr dependant, Expr other, Expr condition, boolean expectedOutput) { argument
40 mCondition = condition;
/frameworks/base/telephony/java/com/android/ims/internal/
H A DIImsUt.aidl42 int queryCallForward(int condition, String number);
82 int updateCallForward(int action, int condition, String number,
/frameworks/base/telephony/java/android/telephony/ims/stub/
H A DImsUtImplBase.java50 public int queryCallForward(int condition, String number) throws RemoteException {
51 return ImsUtImplBase.this.queryCallForward(condition, number);
91 public int updateCallForward(int action, int condition, String number, int serviceClass,
93 return ImsUtImplBase.this.updateCallForward(action, condition, number, serviceClass,
167 public int queryCallForward(int condition, String number) { argument
263 public int updateCallForward(int action, int condition, String number, int serviceClass, argument
/frameworks/base/telephony/java/com/android/ims/
H A DImsUtInterface.java70 // (CDIV using condition not-registered) to the same target.
124 public void queryCallForward(int condition, String number, Message result); argument
167 public void updateCallForward(int action, int condition, String number, argument
/frameworks/base/test-base/src/junit/framework/
H A DAssert.java15 * Asserts that a condition is true. If it isn't it throws
18 static public void assertTrue(String message, boolean condition) { argument
19 if (!condition)
23 * Asserts that a condition is true. If it isn't it throws
26 static public void assertTrue(boolean condition) { argument
27 assertTrue(null, condition);
30 * Asserts that a condition is false. If it isn't it throws
33 static public void assertFalse(String message, boolean condition) { argument
34 assertTrue(message, !condition);
37 * Asserts that a condition i
40 assertFalse(boolean condition) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
H A DZenModePanel.java293 mExitCondition = manualRule != null ? manualRule.condition : null;
333 private void setSessionExitCondition(Condition condition) { argument
334 if (Objects.equals(condition, mSessionExitCondition)) return;
335 if (DEBUG) Log.d(mTag, "mSessionExitCondition=" + getConditionId(condition));
336 mSessionExitCondition = condition;
393 private static Uri getConditionId(Condition condition) { argument
394 return condition != null ? condition.id : null;
397 private Uri getRealConditionId(Condition condition) { argument
398 return isForever(condition)
401 copy(Condition condition) argument
643 bind(final Condition condition, final View row, final int rowId) argument
806 select(final Condition condition) argument
879 Condition condition; field in class:ZenModePanel.ConditionTag
[all...]
/frameworks/base/tests/SmokeTest/tests/src/com/android/smoketest/
H A DProcessErrorsTest.java211 // condition. if the list is empty (null) then "we're good".
291 String condition;
292 switch (entry.condition) {
294 condition = "a CRASH";
297 condition = "an ANR";
300 condition = "an unknown error";
305 condition, entry.shortMsg));
306 if (entry.condition == ActivityManager.ProcessErrorStateInfo.CRASHED) {
354 return (info.condition == peOther.info.condition)
[all...]
/frameworks/av/include/media/stagefright/foundation/
H A DADebug.h59 #define CHECK(condition) \
61 !(condition), \
64 " CHECK(" #condition ") failed.")
133 #define CHECK_DBG(condition)

Completed in 529 milliseconds

1234