/frameworks/base/tools/split-select/ |
H A D | TestRules.cpp | 28 Rule rule; local 29 rule.op = Rule::EQUALS; 30 rule.key = key; 31 rule.longArgs.add(value); 32 return rule; 36 Rule rule; local 37 rule.op = Rule::GREATER_THAN; 38 rule.key = key; 39 rule.longArgs.add(value); 40 return rule; 44 Rule rule; local 52 Rule rule; local 60 Rule rule; local 69 Rule rule; local [all...] |
H A D | Rule_test.cpp | 33 Rule rule(AndRule() 71 std::string result(rule.toJson().string()); 78 sp<Rule> rule = new Rule(AndRule() local 82 EXPECT_RULES_EQ(Rule::simplify(rule), EqRule(Rule::SDK_VERSION, 7)); 86 sp<Rule> rule = new Rule(AndRule() local 93 EXPECT_RULES_EQ(Rule::simplify(rule),
|
H A D | Rule.cpp | 177 sp<Rule> Rule::simplify(sp<Rule> rule) { argument 178 if (rule->op != AND_SUBRULES && rule->op != OR_SUBRULES) { 179 return rule; 183 newSubrules.setCapacity(rule->subrules.size()); 184 const size_t subruleCount = rule->subrules.size(); 186 sp<Rule> simplifiedRule = simplify(rule->subrules.editItemAt(i)); 188 if (simplifiedRule->op == rule->op) { 202 rule->subrules = newSubrules; 203 return rule; [all...] |
H A D | SplitSelector.cpp | 76 sp<Rule> rule = Rule::simplify(RuleGenerator::generate(splits, j)); local 77 if (rule != NULL) { 78 rules.add(splits[j], rule);
|
H A D | SplitSelector_test.cpp | 59 sp<Rule> rule = rules[idx]; local 60 ASSERT_TRUE(rule != NULL); 69 EXPECT_RULES_EQ(rule, expectedRule);
|
/frameworks/base/media/java/android/media/audiopolicy/ |
H A D | AudioMixingRule.java | 32 * Here's an example of creating a mixing rule for all media playback: 51 * A rule requiring the usage information of the {@link AudioAttributes} to match. 52 * This mixing rule can be added with {@link Builder#addRule(AudioAttributes, int)} or 59 * A rule requiring the capture preset information of the {@link AudioAttributes} to match. 60 * This mixing rule can be added with {@link Builder#addRule(AudioAttributes, int)} or 67 * A rule requiring the UID of the audio stream to match that specified. 68 * This mixing rule can be added with {@link Builder#addMixRule(int, Object)} where the Object 77 * A rule requiring the usage information of the {@link AudioAttributes} to differ. 83 * A rule requiring the capture preset information of the {@link AudioAttributes} to differ. 89 * A rule requirin 100 AudioMixMatchCriterion(AudioAttributes attributes, int rule) argument 106 AudioMixMatchCriterion(Integer intProp, int rule) argument 148 isValidSystemApiRule(int rule) argument 159 isValidAttributesSystemApiRule(int rule) argument 170 isValidRule(int rule) argument 182 isPlayerRule(int rule) argument 230 addRule(AudioAttributes attrToMatch, int rule) argument 259 excludeRule(AudioAttributes attrToMatch, int rule) argument 281 addMixRule(int rule, Object property) argument 311 excludeMixRule(int rule, Object property) argument 326 checkAddRuleObjInternal(int rule, Object property) argument 365 addRuleInternal(AudioAttributes attrToMatch, Integer intProp, int rule) argument [all...] |
H A D | AudioMix.java | 52 private AudioMix(AudioMixingRule rule, AudioFormat format, int routeFlags, int callbackFlags, argument 54 mRule = rule; 57 mMixType = rule.getTargetMixType(); 198 * @param rule a non-null {@link AudioMixingRule} instance. 202 public Builder(AudioMixingRule rule) argument 204 if (rule == null) { 207 mRule = rule; 213 * @param rule 217 Builder setMixingRule(AudioMixingRule rule) argument 219 if (rule [all...] |
/frameworks/support/transition/tests/src/android/support/transition/ |
H A D | BaseTest.java | 19 import android.support.test.rule.ActivityTestRule; 29 public final ActivityTestRule<TransitionActivity> rule; field in class:BaseTest 32 rule = new ActivityTestRule<>(TransitionActivity.class);
|
H A D | ChangeScrollTest.java | 43 rule.runOnUiThread(new Runnable() { 46 final View view = rule.getActivity().findViewById(R.id.text); 55 rule.runOnUiThread(new Runnable() { 58 final View view = rule.getActivity().findViewById(R.id.text); 66 rule.runOnUiThread(new Runnable() { 69 final View view = rule.getActivity().findViewById(R.id.text);
|
H A D | AutoTransitionTest.java | 42 mRoot = (LinearLayout) rule.getActivity().getRoot(); 43 mView0 = new View(rule.getActivity()); 46 mView1 = new View(rule.getActivity()); 54 rule.runOnUiThread(new Runnable() { 66 rule.runOnUiThread(new Runnable() { 80 rule.runOnUiThread(new Runnable() {
|
H A D | ChangeTransformTest.java | 42 final View redSquare = rule.getActivity().findViewById(R.id.redSquare); 44 rule.runOnUiThread(new Runnable() { 66 final View redSquare = rule.getActivity().findViewById(R.id.redSquare); 68 rule.runOnUiThread(new Runnable() { 88 final View redSquare = rule.getActivity().findViewById(R.id.redSquare); 90 rule.runOnUiThread(new Runnable() {
|
H A D | TransitionManagerTest.java | 44 TransitionActivity activity = rule.getActivity(); 72 rule.runOnUiThread(new Runnable() { 83 rule.runOnUiThread(new Runnable() { 96 rule.runOnUiThread(new Runnable() { 113 rule.runOnUiThread(new Runnable() { 128 final ViewGroup root = rule.getActivity().getRoot(); 129 rule.runOnUiThread(new Runnable() { 142 final ViewGroup root = rule.getActivity().getRoot(); 148 rule.runOnUiThread(new Runnable() { 155 rule [all...] |
H A D | SlideEdgeTest.java | 73 rule.runOnUiThread(new Runnable() { 76 rule.getActivity().setContentView(R.layout.scene1); 81 final View redSquare = rule.getActivity().findViewById(R.id.redSquare); 82 final View greenSquare = rule.getActivity().findViewById(R.id.greenSquare); 83 final View hello = rule.getActivity().findViewById(R.id.hello); 84 final ViewGroup sceneRoot = (ViewGroup) rule.getActivity().findViewById(R.id.holder); 86 rule.runOnUiThread(new Runnable() { 156 rule.runOnUiThread(new Runnable() { 159 rule.getActivity().setContentView(R.layout.scene1); 164 final View redSquare = rule [all...] |
H A D | BaseTransitionTest.java | 47 mRoot = (LinearLayout) rule.getActivity().findViewById(R.id.root); 68 rule.runOnUiThread(new Runnable() { 71 scene[0] = Scene.getSceneForLayout(mRoot, layoutId, rule.getActivity()); 83 rule.runOnUiThread(new Runnable() { 97 rule.runOnUiThread(new Runnable() {
|
H A D | ExplodeTest.java | 44 final View redSquare = rule.getActivity().findViewById(R.id.redSquare); 45 final View greenSquare = rule.getActivity().findViewById(R.id.greenSquare); 46 final View blueSquare = rule.getActivity().findViewById(R.id.blueSquare); 47 final View yellowSquare = rule.getActivity().findViewById(R.id.yellowSquare); 49 rule.runOnUiThread(new Runnable() { 90 final View redSquare = rule.getActivity().findViewById(R.id.redSquare); 91 final View greenSquare = rule.getActivity().findViewById(R.id.greenSquare); 92 final View blueSquare = rule.getActivity().findViewById(R.id.blueSquare); 93 final View yellowSquare = rule.getActivity().findViewById(R.id.yellowSquare); 95 rule [all...] |
H A D | ChangeClipBoundsTest.java | 46 final View redSquare = rule.getActivity().findViewById(R.id.redSquare); 50 rule.runOnUiThread(new Runnable() { 60 rule.runOnUiThread(new Runnable() { 74 rule.runOnUiThread(new Runnable() { 84 rule.runOnUiThread(new Runnable() { 93 rule.runOnUiThread(new Runnable() { 107 rule.runOnUiThread(new Runnable() {
|
H A D | SceneTest.java | 37 TransitionActivity activity = rule.getActivity(); 46 TransitionActivity activity = rule.getActivity(); 66 TransitionActivity activity = rule.getActivity(); 85 TransitionActivity activity = rule.getActivity(); 96 TransitionActivity activity = rule.getActivity(); 108 TransitionActivity activity = rule.getActivity(); 119 TransitionActivity activity = rule.getActivity();
|
/frameworks/base/services/core/java/com/android/server/notification/ |
H A D | ZenModeConditions.java | 66 if (DEBUG) Log.d(TAG, "evaluateConfig: clearing manual rule"); 123 private void evaluateRule(ZenRule rule, ArraySet<Uri> current, boolean processSubscriptions) { argument 124 if (rule == null || rule.conditionId == null) return; 125 final Uri id = rule.conditionId; 130 rule.component = sp.getComponent(); 135 final IConditionProvider cp = mConditionProviders.findConditionProvider(rule.component); 136 if (DEBUG) Log.d(TAG, "Ensure external rule exists: " + (cp != null) + " for " + id); 138 mConditionProviders.ensureRecordExists(rule.component, id, cp); 141 if (rule 178 updateSnoozing(ZenRule rule) argument 187 updateCondition(Uri id, Condition condition, ZenRule rule) argument [all...] |
H A D | ZenModeHelper.java | 262 for (ZenRule rule : mConfig.automaticRules.values()) { 263 if (canManageAutomaticZenRule(rule)) { 264 rules.add(rule); 272 ZenRule rule; 275 rule = mConfig.automaticRules.get(id); 277 if (rule == null) return null; 278 if (canManageAutomaticZenRule(rule)) { 279 return createAutomaticZenRule(rule); 305 throw new AndroidRuntimeException("Could not create rule"); 308 Log.d(TAG, "addAutomaticZenRule rule 394 canManageAutomaticZenRule(ZenRule rule) argument 415 isSystemRule(AutomaticZenRule rule) argument 438 populateZenRule(AutomaticZenRule automaticZenRule, ZenRule rule, boolean isNew) argument 456 createAutomaticZenRule(ZenRule rule) argument [all...] |
/frameworks/support/fragment/tests/java/android/support/v4/app/ |
H A D | FragmentTestUtil.java | 29 import android.support.test.rule.ActivityTestRule; 48 public static void waitForExecution(final ActivityTestRule<? extends FragmentActivity> rule) { argument 54 rule.runOnUiThread(DO_NOTHING); 55 rule.runOnUiThread(DO_NOTHING); 61 private static void runOnUiThreadRethrow(ActivityTestRule<? extends Activity> rule, argument 67 rule.runOnUiThread(r); 75 final ActivityTestRule<? extends FragmentActivity> rule) { 76 FragmentManager fragmentManager = rule.getActivity().getSupportFragmentManager(); 77 return executePendingTransactions(rule, fragmentManager); 81 final ActivityTestRule<? extends Activity> rule, fina 74 executePendingTransactions( final ActivityTestRule<? extends FragmentActivity> rule) argument 80 executePendingTransactions( final ActivityTestRule<? extends Activity> rule, final FragmentManager fm) argument 92 popBackStackImmediate(final ActivityTestRule<FragmentTestActivity> rule) argument 104 popBackStackImmediate(final ActivityTestRule<FragmentTestActivity> rule, final int id, final int flags) argument 118 popBackStackImmediate(final ActivityTestRule<FragmentTestActivity> rule, final String name, final int flags) argument 132 setContentView(final ActivityTestRule<FragmentTestActivity> rule, final int layoutId) argument 153 createController( ActivityTestRule<? extends FragmentActivity> rule) argument 168 resume(ActivityTestRule<? extends Activity> rule, final FragmentController fragmentController, final Pair<Parcelable, FragmentManagerNonConfig> savedState) argument 190 destroy( ActivityTestRule<? extends Activity> rule, final FragmentController fragmentController) argument 256 recreateActivity( ActivityTestRule<? extends RecreatedActivity> rule, final T activity) argument [all...] |
/frameworks/support/v17/leanback/src/android/support/v17/leanback/graphics/ |
H A D | BoundsRule.java | 70 ValueRule(ValueRule rule) { argument 71 this.mFraction = rule.mFraction; 72 this.mAbsoluteValue = rule.mAbsoluteValue; 76 * Sets the fractional value (percentage of parent) for this rule. 92 * Sets the absolute/offset value for rule. 151 private int doCalculate(int value, ValueRule rule, int size) { argument 152 return value + rule.mAbsoluteValue + (int) (rule.mFraction * size);
|
/frameworks/support/compat/tests/java/android/support/v4/ |
H A D | BaseInstrumentationTestCase.java | 20 import android.support.test.rule.ActivityTestRule;
|
/frameworks/support/core-ui/tests/java/android/support/v4/ |
H A D | BaseInstrumentationTestCase.java | 20 import android.support.test.rule.ActivityTestRule;
|
/frameworks/support/design/tests/src/android/support/design/widget/ |
H A D | BaseInstrumentationTestCase.java | 20 import android.support.test.rule.BootlegActivityTestRule;
|
/frameworks/support/percent/tests/java/android/support/percent/ |
H A D | BaseInstrumentationTestCase.java | 22 import android.support.test.rule.ActivityTestRule;
|