Home
last modified time | relevance | path

Searched refs:condition (Results 1 – 25 of 75) sorted by relevance

123

/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyAndException/src/com/android/multidexlegacyandexception/
DIntermediateClass.java20 public static int get1(boolean condition) { in get1() argument
21 return new ClassInSecondaryDex(condition).get1(); in get1()
24 public static int get2(boolean condition) { in get2() argument
25 return new ClassInSecondaryDex(condition).get2(); in get2()
28 public static int get3(boolean condition) { in get3() argument
29 ClassInSecondaryDex thrower = new ClassInSecondaryDex(condition); in get3()
53 public static int get4(boolean condition) { in get4() argument
54 ClassInSecondaryDex thrower = new ClassInSecondaryDex(condition); in get4()
DMainActivity.java33 public int get1(boolean condition) { in get1() argument
34 return IntermediateClass.get1(condition); in get1()
37 public int get2(boolean condition) { in get2() argument
38 return IntermediateClass.get2(condition); in get2()
40 public int get3(boolean condition) { in get3() argument
41 return MiniIntermediateClass.get3(condition); in get3()
DClassInSecondaryDex.java20 private boolean condition; field in ClassInSecondaryDex
22 public ClassInSecondaryDex(boolean condition) { in ClassInSecondaryDex() argument
23 this.condition = condition; in ClassInSecondaryDex()
28 if (condition) { in canThrow1()
35 if (condition) { in canThrow2()
DTestApplication.java23 private static void canThrow1(boolean condition) throws ExceptionInMainDex { in canThrow1() argument
24 if (condition) { in canThrow1()
30 public static int get(boolean condition) { in get() argument
32 canThrow1(condition); in get()
DMiniIntermediateClass.java20 public static int get3(boolean condition) { in get3() argument
21 ClassInSecondaryDex thrower = new ClassInSecondaryDex(condition); in get3()
/frameworks/base/services/core/java/com/android/server/notification/
DZenModeConditions.java64 if (config.manualRule != null && config.manualRule.condition != null in evaluateConfig()
106 public void onConditionChanged(Uri id, Condition condition) { in onConditionChanged() argument
107 if (DEBUG) Log.d(TAG, "onConditionChanged " + id + " " + condition); in onConditionChanged()
110 boolean updated = updateCondition(id, condition, config.manualRule); in onConditionChanged()
112 updated |= updateCondition(id, condition, automaticRule); in onConditionChanged()
150 rule.condition = null; in evaluateRule()
154 if (rule.condition == null) { in evaluateRule()
155 rule.condition = mConditionProviders.findCondition(rule.component, rule.conditionId); in evaluateRule()
156 if (rule.condition != null && DEBUG) Log.d(TAG, "Found existing condition for: " in evaluateRule()
182 private boolean updateCondition(Uri id, Condition condition, ZenRule rule) { in updateCondition() argument
[all …]
/frameworks/support/core-ui/tests/java/android/support/v4/testutils/
DPollingCheck.java63 public static void check(CharSequence message, long timeout, Callable<Boolean> condition) in check() argument
66 if (condition.call()) { in check()
77 public static void waitFor(final PollingCheckCondition condition) { in waitFor() argument
81 return condition.canProceed(); in waitFor()
86 public static void waitFor(long timeout, final PollingCheckCondition condition) { in waitFor() argument
90 return condition.canProceed(); in waitFor()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DZenModePanel.java254 private void setSessionExitCondition(Condition condition) { in setSessionExitCondition() argument
255 if (Objects.equals(condition, mSessionExitCondition)) return; in setSessionExitCondition()
256 if (DEBUG) Log.d(mTag, "mSessionExitCondition=" + getConditionId(condition)); in setSessionExitCondition()
257 mSessionExitCondition = condition; in setSessionExitCondition()
347 private static Uri getConditionId(Condition condition) { in getConditionId() argument
348 return condition != null ? condition.id : null; in getConditionId()
351 private Uri getRealConditionId(Condition condition) { in getRealConditionId() argument
352 return isForever(condition) ? null : getConditionId(condition); in getRealConditionId()
359 private static Condition copy(Condition condition) { in copy() argument
360 return condition == null ? null : condition.copy(); in copy()
[all …]
/frameworks/base/core/java/android/hardware/camera2/legacy/
DGLThreadManager.java61 public final ConditionVariable condition; field in GLThreadManager.ConfigureHolder
65 public ConfigureHolder(ConditionVariable condition, Collection<Pair<Surface, in ConfigureHolder() argument
67 this.condition = condition; in ConfigureHolder()
91 configure.condition.open();
216 final ConditionVariable condition = new ConditionVariable(/*closed*/false); in setConfigurationAndWait() local
217 ConfigureHolder configure = new ConfigureHolder(condition, surfaces, collector); in setConfigurationAndWait()
223 condition.block(); in setConfigurationAndWait()
DRequestThreadManager.java118 public final ConditionVariable condition; field in RequestThreadManager.ConfigureHolder
121 public ConfigureHolder(ConditionVariable condition, Collection<Pair<Surface, in ConfigureHolder() argument
123 this.condition = condition; in ConfigureHolder()
705 config.condition.open();
1077 final ConditionVariable condition = new ConditionVariable(/*closed*/false); in configure() local
1078 ConfigureHolder holder = new ConfigureHolder(condition, outputs); in configure()
1080 condition.block(); in configure()
/frameworks/base/tests/SmokeTest/tests/src/com/android/smoketest/
DProcessErrorsTest.java291 String condition; in reportListContents() local
292 switch (entry.condition) { in reportListContents()
294 condition = "a CRASH"; in reportListContents()
297 condition = "an ANR"; in reportListContents()
300 condition = "an unknown error"; in reportListContents()
305 condition, entry.shortMsg)); in reportListContents()
306 if (entry.condition == ActivityManager.ProcessErrorStateInfo.CRASHED) { in reportListContents()
354 return (info.condition == peOther.info.condition) in equals()
375 code += info.condition; in hashCode()
/frameworks/base/telephony/java/com/android/ims/internal/
DIImsUt.aidl42 int queryCallForward(int condition, String number); in queryCallForward() argument
82 int updateCallForward(int action, int condition, String number, in updateCallForward() argument
/frameworks/av/include/media/stagefright/foundation/
DADebug.h56 #define CHECK(condition) \ argument
58 !(condition), \
61 " CHECK(" #condition ") failed.")
/frameworks/base/core/java/android/service/notification/
DConditionProviderService.java136 public final void notifyCondition(Condition condition) { in notifyCondition() argument
137 if (condition == null) return; in notifyCondition()
138 notifyConditions(new Condition[]{ condition }); in notifyCondition()
DZenModeConfig.java302 return rule.condition == null; in sameCondition()
304 return rule.condition == null || rule.conditionId.equals(rule.condition.id); in sameCondition()
510 rt.condition = readConditionXml(parser); in readRuleXml()
531 if (rule.condition != null) { in writeRuleXml()
532 writeConditionXml(rule.condition, out); in writeRuleXml()
1041 Condition c = config.manualRule.condition; in getConditionLine()
1074 public Condition condition; // optional field in ZenModeConfig.ZenRule
1090 condition = source.readParcelable(null); in ZenRule()
1118 dest.writeParcelable(condition, 0); in writeToParcel()
1143 .append(",condition=").append(condition) in toString()
[all …]
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/expr/
DDependency.java37 public Dependency(Expr dependant, Expr other, Expr condition, boolean expectedOutput) { in Dependency() argument
40 mCondition = condition; in Dependency()
/frameworks/opt/net/ims/src/java/com/android/ims/
DImsUtInterface.java115 public void queryCallForward(int condition, String number, Message result); in queryCallForward() argument
152 public void updateCallForward(int action, int condition, String number, in updateCallForward() argument
DImsUt.java149 public void queryCallForward(int condition, String number, Message result) { in queryCallForward() argument
151 log("queryCallForward :: Ut=" + miUt + ", condition=" + condition in queryCallForward()
157 int id = miUt.queryCallForward(condition, number); in queryCallForward()
348 public void updateCallForward(int action, int condition, String number, in updateCallForward() argument
352 + ", condition=" + condition + ", number=" + number in updateCallForward()
358 … int id = miUt.updateCallForward(action, condition, number, serviceClass, timeSeconds); in updateCallForward()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
DIfElseFilter.java58 boolean condition = (Boolean) boolFrameValue.getValue(); in onProcess()
61 if (condition) { in onProcess()
/frameworks/base/core/tests/coretests/src/android/app/activity/
DActivityManagerTest.java122 assertTrue((info.condition == ActivityManager.ProcessErrorStateInfo.CRASHED) || in checkErrorListSanity()
123 (info.condition == ActivityManager.ProcessErrorStateInfo.NOT_RESPONDING)); in checkErrorListSanity()
/frameworks/base/libs/hwui/renderthread/
DRenderThread.cpp334 Condition condition; in queueAndWait() local
335 SignalingRenderTask syncTask(task, &mutex, &condition); in queueAndWait()
339 condition.wait(mutex); in queueAndWait()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
DCameraErrorCollector.java129 public boolean expectTrue(String msg, boolean condition) { in expectTrue() argument
130 if (!condition) { in expectTrue()
134 return condition; in expectTrue()
619 boolean condition = compareResult >= 0; in checkArrayMonotonicityAndNotAllEqual()
621 condition = compareResult <= 0; in checkArrayMonotonicityAndNotAllEqual()
625 array[i].toString(), array[i + 1].toString(), orderMsg), condition); in checkArrayMonotonicityAndNotAllEqual()
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm11/api/
DarmCOMM.h97 #define armRetArgErrIf(condition, code) if(condition) { return (code); } argument
98 #define armRetDataErrIf(condition, code) if(condition) { return (code); } argument
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm_neon/api/
DarmCOMM.h97 #define armRetArgErrIf(condition, code) if(condition) { return (code); } argument
98 #define armRetDataErrIf(condition, code) if(condition) { return (code); } argument
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/api/
DarmCOMM.h97 #define armRetArgErrIf(condition, code) if(condition) { return (code); } argument
98 #define armRetDataErrIf(condition, code) if(condition) { return (code); } argument

123