Searched refs:apply (Results 1 - 25 of 47) sorted by relevance

12

/frameworks/base/core/java/com/android/internal/util/
H A DPredicate.java31 boolean apply(T t); method in interface:Predicate
H A DPredicates.java87 public boolean apply(T t) { method in class:Predicates.AndPredicate
89 if (!predicate.apply(t)) {
104 public boolean apply(T t) { method in class:Predicates.OrPredicate
106 if (predicate.apply(t)) {
121 public boolean apply(T t) { method in class:Predicates.NotPredicate
122 return !predicate.apply(t);
/frameworks/base/core/java/com/google/android/util/
H A DProcedure.java27 void apply(T t); method in interface:Procedure
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
H A DPredicatesTest.java27 public boolean apply(Object o) {
33 public boolean apply(Object o) {
39 assertTrue(Predicates.and(newArrayList(TRUE)).apply(null));
40 assertTrue(Predicates.and(newArrayList(TRUE, TRUE)).apply(null));
44 assertFalse(Predicates.and(newArrayList(FALSE, TRUE, TRUE)).apply(null));
45 assertFalse(Predicates.and(newArrayList(TRUE, FALSE, TRUE)).apply(null));
46 assertFalse(Predicates.and(newArrayList(TRUE, TRUE, FALSE)).apply(null));
50 assertTrue(Predicates.or(newArrayList(TRUE, TRUE, TRUE)).apply(null));
54 assertFalse(Predicates.or(newArrayList(FALSE, FALSE, FALSE)).apply(null));
58 assertTrue(Predicates.or(newArrayList(TRUE, FALSE, FALSE)).apply(nul
[all...]
/frameworks/base/test-runner/tests/src/android/test/suitebuilder/
H A DAssignableFromTest.java33 assertTrue(assignableFrom.apply(testMethodFor(Animal.class)));
37 assertTrue(assignableFrom.apply(testMethodFor(Mammal.class)));
38 assertTrue(assignableFrom.apply(testMethodFor(Human.class)));
42 assertFalse(assignableFrom.apply(testMethodFor(Pencil.class)));
48 assertTrue(assignableFrom.apply(testMethodFor(Pencil.class)));
49 assertTrue(assignableFrom.apply(testMethodFor(Pen.class)));
/frameworks/base/test-runner/src/android/test/suitebuilder/annotation/
H A DHasAnnotation.java41 public boolean apply(TestMethod testMethod) { method in class:HasAnnotation
42 return hasMethodOrClassAnnotation.apply(testMethod);
H A DHasClassAnnotation.java38 public boolean apply(TestMethod testMethod) { method in class:HasClassAnnotation
H A DHasMethodAnnotation.java38 public boolean apply(TestMethod testMethod) { method in class:HasMethodAnnotation
/frameworks/base/test-runner/src/android/test/suitebuilder/
H A DAssignableFrom.java29 public boolean apply(TestMethod testMethod) { method in class:AssignableFrom
H A DTestGrouping.java170 if (predicate.apply(item)) {
213 public boolean apply(Class aClass) { method in class:TestGrouping.TestCasePredicate
243 public boolean apply(Method method) { method in class:TestGrouping.TestMethodPredicate
/frameworks/base/core/java/android/text/style/
H A DStyleSpan.java73 apply(ds, mStyle);
78 apply(paint, mStyle);
81 private static void apply(Paint paint, int style) { method in class:StyleSpan
H A DTypefaceSpan.java65 apply(ds, mFamily);
70 apply(paint, mFamily);
73 private static void apply(Paint paint, String family) { method in class:TypefaceSpan
/frameworks/ex/common/java/com/android/common/
H A DSharedPreferencesCompat.java25 * Reflection utils to call SharedPreferences$Editor.apply when possible,
26 * falling back to commit when apply isn't available.
33 sApplyMethod = cls.getMethod("apply");
39 public static void apply(SharedPreferences.Editor editor) { method in class:SharedPreferencesCompat
H A DOperationScheduler.java203 SharedPreferencesCompat.apply(mStorage.edit().putLong(name, time));
217 SharedPreferencesCompat.apply(
229 SharedPreferencesCompat.apply(mStorage.edit()
265 SharedPreferencesCompat.apply(
276 SharedPreferencesCompat.apply(mStorage.edit()
294 SharedPreferencesCompat.apply(editor);
304 SharedPreferencesCompat.apply(mStorage.edit().remove(PREFIX + "errorCount"));
314 SharedPreferencesCompat.apply(mStorage.edit().putBoolean(PREFIX + "permanentError", true));
322 SharedPreferencesCompat.apply(mStorage.edit().remove(PREFIX + "permanentError"));
/frameworks/base/core/java/com/android/internal/app/
H A DAlertActivity.java73 mAlertParams.apply(mAlert);
/frameworks/base/test-runner/tests/src/android/test/suitebuilder/annotation/
H A DHasClassAnnotationTest.java42 return new HasClassAnnotation(expectedClassification).apply(testMethod);
H A DHasMethodAnnotationTest.java44 return new HasMethodAnnotation(expectedClassification).apply(testMethod);
H A DHasAnnotationTest.java48 return new HasAnnotation(Example.class).apply(testMethod);
/frameworks/base/core/java/android/content/
H A DSharedPreferences.java58 * or {@link #apply}
63 * {@link #commit} or {@link #apply} are called.
75 * {@link #commit} or {@link #apply} are called.
87 * {@link #commit} or {@link #apply} are called.
99 * {@link #commit} or {@link #apply} are called.
111 * once {@link #commit} or {@link #apply} are called.
162 * using {@link #apply} instead.
176 * time, the last one to call apply wins.
179 * to persistent storage synchronously, {@link #apply}
185 * while a {@link #apply} i
205 void apply(); method in interface:SharedPreferences.Editor
[all...]
/frameworks/base/core/tests/coretests/src/android/content/
H A DContentProviderOperationTest.java56 ContentProviderResult result = op1.apply(new TestContentProvider() {
69 ContentProviderResult result = op1.apply(new TestContentProvider() {
84 op1.apply(new TestContentProvider() {
91 fail("the apply should have thrown an OperationApplicationException");
108 ContentProviderResult result = op1.apply(new TestContentProvider() {
126 ContentProviderResult result = op1.apply(new TestContentProvider() {
143 ContentProviderResult result = op1.apply(new TestContentProvider() {
162 ContentProviderResult result = op1.apply(new TestContentProvider() {
178 ContentProviderResult result = op2.apply(new TestContentProvider() {
194 ContentProviderResult result = op3.apply(ne
[all...]
/frameworks/base/core/java/android/widget/
H A DRemoteViews.java106 public abstract void apply(View root) throws ActionException; method in class:RemoteViews.Action
136 public void apply(View root) { method in class:RemoteViews.SetOnClickPendingIntent
230 public void apply(View root) { method in class:RemoteViews.SetDrawableParameters
444 public void apply(View root) { method in class:RemoteViews.ReflectionAction
509 public void apply(View root) { method in class:RemoteViews.ViewGroupAction
514 target.addView(nestedViews.apply(context, target));
589 * Add an action to be executed on the remote side when apply is called.
739 * @param targetBackground If true, apply these parameters to the
742 * the target view is an {@link ImageView} and apply them to
928 public View apply(Contex method in class:RemoteViews
[all...]
/frameworks/base/core/java/android/view/
H A DGravity.java97 * {@link #apply(int, int, int, Rect, int, int, Rect)}; you must do so
104 * {@link #apply(int, int, int, Rect, int, int, Rect)}; you must do so
122 public static void apply(int gravity, int w, int h, Rect container, method in class:Gravity
124 apply(gravity, w, h, container, 0, 0, outRect);
137 * @param xAdj Offset to apply to the X axis. If gravity is LEFT this
141 * @param yAdj Offset to apply to the Y axis. If gravity is TOP this pushes
148 public static void apply(int gravity, int w, int h, Rect container, method in class:Gravity
236 * {@link #apply(int, int, int, Rect, int, int, Rect)} to place the object
/frameworks/base/core/java/android/util/
H A DCalendarUtils.java320 editor.apply();
335 editor.apply();
/frameworks/base/core/java/android/preference/
H A DPreferenceManager.java449 editor.apply();
453 // an apply method.
494 mEditor.apply();
498 // an apply method.
/frameworks/base/core/java/com/android/internal/view/menu/
H A DIconMenuItemView.java280 Gravity.apply(Gravity.CENTER_VERTICAL | Gravity.LEFT, mIcon.getIntrinsicWidth(), mIcon

Completed in 334 milliseconds

12