/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/ |
H A D | CalendarSanityCheckerTest.java | 49 CalendarSanityCheckerTestable target = new CalendarSanityCheckerTestable(getContext()); 50 target.mPrefs.edit().clear().commit(); 52 assertTrue(target.checkLastCheckTime()); 58 assertTrue(target.checkLastCheckTime()); 61 assertFalse(target.checkLastCheckTime()); 65 CalendarSanityCheckerTestable target = new CalendarSanityCheckerTestable(getContext()); 66 target.mPrefs.edit().clear().commit(); 68 assertTrue(target.checkLastCheckTime()); 74 target.updateLastCheckTime(); 77 assertTrue(target [all...] |
/packages/apps/Contacts/src/com/android/contacts/util/ |
H A D | WeakAsyncTask.java | 27 public WeakAsyncTask(WeakTarget target) { argument 28 mTarget = new WeakReference<WeakTarget>(target); 34 final WeakTarget target = mTarget.get(); 35 if (target != null) { 36 this.onPreExecute(target); 43 final WeakTarget target = mTarget.get(); 44 if (target != null) { 45 return this.doInBackground(target, params); 54 final WeakTarget target = mTarget.get(); 55 if (target ! 60 onPreExecute(WeakTarget target) argument 64 doInBackground(WeakTarget target, Params... params) argument 66 onPostExecute(WeakTarget target, Result result) argument [all...] |
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/ |
H A D | RemoteAnimationTargetSet.java | 33 for (RemoteAnimationTargetCompat target : apps) { 34 if (target.mode == targetMode) { 35 filteredApps.add(target); 45 for (RemoteAnimationTargetCompat target : apps) { 46 if (target.taskId == taskId) { 47 return target; 54 for (RemoteAnimationTargetCompat target : apps) { 55 if (target.activityType == RemoteAnimationTargetCompat.ACTIVITY_TYPE_HOME) {
|
H A D | RemoteAnimationProvider.java | 56 for (RemoteAnimationTargetCompat target : targets) { 57 int layer = target.mode == boostModeTargets 59 : target.prefixOrderIndex; 60 t.setLayer(target.leash, layer); 61 t.show(target.leash);
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/ |
H A D | TrampolineActivity.java | 27 * startActivityForResult() to start the real activity, from a non-activity context. The target 36 Intent target = (Intent) getIntent().getParcelableExtra(EXTRA_INTENT); 37 if (target != null) { 38 // So that the target activity can get caller information via 40 startActivityForResult(target, 0); 45 public static void startActivity(Context context, Intent target) { argument 46 context.startActivity(createIntent(context, target)); 49 public static Intent createIntent(Context context, Intent target) { argument 51 intent.putExtra(EXTRA_INTENT, target);
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/ |
H A D | TouchTargetEnforcer.java | 61 * Compares target's touch area to required minimum, and expands it if necessary. 65 * @param target element to check for accessibility compliance 66 * @param ancestor target's ancestor - only one target per ancestor allowed 68 public void enforce(View target, View ancestor) { argument 69 target.getViewTreeObserver().addOnGlobalLayoutListener( // avoids some subtle bugs 72 int deltaHeight = Math.max(0, minTargetPx - target.getHeight()); 73 int deltaWidth = Math.max(0, minTargetPx - target.getWidth()); 79 Rect bounds = createNewBounds(target, minTargetPx, deltaWidth, deltaHeight); 84 mTouchDelegateProvider.getInstance(bounds, target)); 100 createNewBounds(View target, int minTargetPx, int deltaWidth, int deltaHeight) argument [all...] |
/packages/services/BuiltInPrintService/src/com/android/bips/util/ |
H A D | FileUtils.java | 32 /** Recursively delete the target (file or directory) and everything beneath it */ 33 public static void deleteAll(File target) { argument 34 if (DEBUG) Log.d(TAG, "Deleting " + target); 35 if (target.isDirectory()) { 36 for (File child : target.listFiles()) { 40 target.delete(); 43 /** Copy files from source to target, closing each stream when done */ 44 public static void copy(InputStream source, OutputStream target) throws IOException { argument 45 try (InputStream in = source; OutputStream out = target) {
|
/packages/apps/Dialer/java/com/android/voicemail/impl/configui/ |
H A D | VoicemailSecretCodeActivity.java | 31 public void onBuildHeaders(List<Header> target) { argument 32 super.onBuildHeaders(target); 35 target.add(syncHeader); 40 target.add(configOverride);
|
/packages/apps/Launcher3/src/com/android/launcher3/compat/ |
H A D | AccessibilityManagerCompat.java | 35 public static void sendCustomAccessibilityEvent(View target, int type, String text) { argument 36 if (isObservedEventType(target.getContext(), type)) { 38 target.onInitializeAccessibilityEvent(event); 40 getManager(target.getContext()).sendAccessibilityEvent(event);
|
/packages/apps/TV/src/com/android/tv/ui/ |
H A D | ViewUtils.java | 51 * @param target the {@link view} animator performs on. 54 final View target, int initialHeight, int targetHeight) { 62 if (target.getVisibility() != View.GONE) { 63 target.setVisibility(View.GONE); 66 if (target.getVisibility() != View.VISIBLE) { 67 target.setVisibility(View.VISIBLE); 69 setLayoutHeight(target, value); 53 createHeightAnimator( final View target, int initialHeight, int targetHeight) argument
|
/packages/apps/Launcher3/src/com/android/launcher3/anim/ |
H A D | PropertySetter.java | 39 public <T> void setFloat(T target, Property<T, Float> property, float value, argument 41 property.set(target, value); 44 public <T> void setInt(T target, Property<T, Integer> property, int value, argument 46 property.set(target, value); 71 public <T> void setFloat(T target, Property<T, Float> property, float value, argument 73 if (property.get(target) == value) { 76 Animator anim = ObjectAnimator.ofFloat(target, property, value); 82 public <T> void setInt(T target, Property<T, Integer> property, int value, argument 84 if (property.get(target) == value) { 87 Animator anim = ObjectAnimator.ofInt(target, propert [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
H A D | ConversationUpdater.java | 44 * @param target 48 void updateConversation(Collection <Conversation> target, String columnName, String value); argument 54 * @param target 58 void updateConversation(Collection <Conversation> target, String columnName, int value); argument 64 * @param target 68 void updateConversation(Collection <Conversation> target, String columnName, boolean value); argument 75 * @param target 78 void updateConversation(Collection <Conversation> target, ContentValues values); argument 83 * @param target the conversations to act upon. 88 int actionId, final Collection<Conversation> target, fina 87 delete( int actionId, final Collection<Conversation> target, final DestructiveAction action, boolean isBatch) argument 156 getDeferredRemoveFolder(Collection<Conversation> target, Folder toRemove, boolean isDestructive, boolean isBatch, boolean showUndo, UndoCallback undoCallback) argument 170 assignFolder(Collection<FolderOperation> folders, Collection<Conversation> target, boolean batch, boolean showUndo, boolean isMoveTo) argument [all...] |
/packages/apps/Launcher2/src/com/android/launcher2/ |
H A D | LauncherAnimUtils.java | 93 public static ValueAnimator ofFloat(View target, float... values) { argument 100 public static ObjectAnimator ofFloat(View target, String propertyName, float... values) { argument 102 anim.setTarget(target); 106 new FirstFrameAnimatorHelper(anim, target); 110 public static ObjectAnimator ofPropertyValuesHolder(View target, argument 113 anim.setTarget(target); 116 new FirstFrameAnimatorHelper(anim, target); 120 public static ObjectAnimator ofPropertyValuesHolder(Object target, argument 123 anim.setTarget(target);
|
H A D | DragSource.java | 44 void onDropCompleted(View target, DragObject d, boolean isFlingToDelete, boolean success); argument
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
H A D | PhotoTouchListener.java | 67 private float getAngle(View target, MotionEvent ev) { argument 79 private void resetTouch(View target) { argument 83 mInitialTargetX = (float) target.getX(); 84 mInitialTargetY = (float) target.getY(); 85 mInitialTargetA = (float) target.getRotation(); 88 public void onFling(View target, float dX, float dY) { argument 118 mTable.fling(target, x1 - x0, y1 - y0, (int) (1000f * n / 60f), false); 122 public boolean onTouch(View target, MotionEvent ev) { argument 130 target.getMatrix().mapPoints(pts); 134 mTable.moveToTopOfPile(target); [all...] |
/packages/apps/Car/libs/car-settings-lib/tests/robotests/ |
H A D | Android.mk | 4 # CarSettingsLib app just for Robolectric test target. # 25 # Car SettingsLibrary Robolectric test target. # 38 Robolectric_all-target \ 49 # Car Settings Library runner target to run the previous target. # 58 Robolectric_all-target \
|
/packages/apps/Bluetooth/tests/robotests/ |
H A D | Android.mk | 1 # Bluetooth Robolectric test target. 26 # Bluetooth runner target to run the previous target.
|
/packages/apps/Camera2/src/com/android/camera/ui/motion/ |
H A D | UnitBezier.java | 75 private float solve(float target, DerivableFloatFn fn) { argument 77 float input = target; 81 float value = fn.value(input) - target; 95 input = target; 106 if (Math.abs(value - target) < EPSILON) { 110 if (target > value) {
|
/packages/apps/Car/Messenger/ |
H A D | Android.mk | 47 car-messenger-glide-target \ 48 car-massenger-gifdecoder-target \ 49 car-messenger-disklrucache-target 58 LOCAL_MODULE := car-messenger-disklrucache-target 69 LOCAL_MODULE := car-massenger-gifdecoder-target 80 LOCAL_MODULE := car-messenger-glide-target
|
/packages/apps/Car/libs/car-media-common/ |
H A D | Android.mk | 39 car-media-common-glide-target \ 40 car-media-common-gifdecoder-target \ 41 car-media-common-disklrucache-target \ 51 LOCAL_MODULE := car-media-common-disklrucache-target 61 LOCAL_MODULE := car-media-common-gifdecoder-target 71 LOCAL_MODULE := car-media-common-glide-target
|
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
H A D | ExtTexture.java | 25 public ExtTexture(GLCanvas canvas, int target) { argument 28 mTarget = target;
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/logging/ |
H A D | UserEventDispatcherExtension.java | 54 LauncherLogProto.Target target = new LauncherLogProto.Target(); 58 target.type = LauncherLogProto.Target.Type.CONTAINER; 59 target.containerType = LauncherLogProto.ContainerType.TIP; 64 target.type = LauncherLogProto.Target.Type.CONTROL; 65 target.controlType = CANCEL_TARGET; 73 target.tipType = LauncherLogProto.TipType.QUICK_SCRUB_TEXT; 76 target.tipType = LauncherLogProto.TipType.SWIPE_UP_TEXT; 81 LauncherLogProto.LauncherEvent event = newLauncherEvent(action, target);
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
H A D | Themes.java | 82 * @param target The ColorMatrix to scale 84 public static void setColorScaleOnMatrix(int color, ColorMatrix target) { argument 85 target.setScale(Color.red(color) / 255f, Color.green(color) / 255f, 92 * Note that values on the last column of target ColorMatrix can be negative, and may result in 97 * @param dstColor The color to create by applying target on srcColor 98 * @param target The ColorMatrix to transform the color 100 public static void setColorChangeOnMatrix(int srcColor, int dstColor, ColorMatrix target) { argument 101 target.reset(); 102 target.getArray()[4] = Color.red(dstColor) - Color.red(srcColor); 103 target [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
H A D | HardwareLayerEnabler.java | 16 public HardwareLayerEnabler(View target) { argument 17 mTarget = target;
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
H A D | HanziToPinyin.java | 42 * Separator between target string for each source char 53 public Token(int type, String source, String target) { argument 56 this.target = target; 68 * Translated string of source. For Han, target is corresponding Pinyin. Otherwise target is 71 public String target; field in class:HanziToPinyin.Token 104 token.target = token.source; 111 token.target = mAsciiTransliterator == null ? token.source : 117 token.target [all...] |