/frameworks/base/core/java/com/android/internal/util/ |
H A D | Predicate.java | 31 boolean apply(T t); method in interface:Predicate
|
H A D | Predicates.java | 87 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 D | Procedure.java | 27 void apply(T t); method in interface:Procedure
|
/frameworks/base/core/tests/coretests/src/com/android/internal/util/ |
H A D | PredicatesTest.java | 27 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 D | AssignableFromTest.java | 33 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 D | HasAnnotation.java | 41 public boolean apply(TestMethod testMethod) { method in class:HasAnnotation 42 return hasMethodOrClassAnnotation.apply(testMethod);
|
H A D | HasClassAnnotation.java | 38 public boolean apply(TestMethod testMethod) { method in class:HasClassAnnotation
|
H A D | HasMethodAnnotation.java | 38 public boolean apply(TestMethod testMethod) { method in class:HasMethodAnnotation
|
/frameworks/base/test-runner/src/android/test/suitebuilder/ |
H A D | AssignableFrom.java | 29 public boolean apply(TestMethod testMethod) { method in class:AssignableFrom
|
H A D | TestGrouping.java | 170 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 D | StyleSpan.java | 73 apply(ds, mStyle); 78 apply(paint, mStyle); 81 private static void apply(Paint paint, int style) { method in class:StyleSpan
|
H A D | TypefaceSpan.java | 65 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 D | SharedPreferencesCompat.java | 25 * 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 D | OperationScheduler.java | 203 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 D | AlertActivity.java | 73 mAlertParams.apply(mAlert);
|
/frameworks/base/test-runner/tests/src/android/test/suitebuilder/annotation/ |
H A D | HasClassAnnotationTest.java | 42 return new HasClassAnnotation(expectedClassification).apply(testMethod);
|
H A D | HasMethodAnnotationTest.java | 44 return new HasMethodAnnotation(expectedClassification).apply(testMethod);
|
H A D | HasAnnotationTest.java | 48 return new HasAnnotation(Example.class).apply(testMethod);
|
/frameworks/base/core/java/android/content/ |
H A D | SharedPreferences.java | 58 * 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 D | ContentProviderOperationTest.java | 56 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 D | RemoteViews.java | 106 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 D | Gravity.java | 97 * {@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 D | CalendarUtils.java | 320 editor.apply(); 335 editor.apply();
|
/frameworks/base/core/java/android/preference/ |
H A D | PreferenceManager.java | 449 editor.apply(); 453 // an apply method. 494 mEditor.apply(); 498 // an apply method.
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
H A D | IconMenuItemView.java | 280 Gravity.apply(Gravity.CENTER_VERTICAL | Gravity.LEFT, mIcon.getIntrinsicWidth(), mIcon
|