/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/ |
D | CalendarSanityCheckerTest.java | 49 CalendarSanityCheckerTestable target = new CalendarSanityCheckerTestable(getContext()); in testWithoutLastCheckTime() local 50 target.mPrefs.edit().clear().commit(); in testWithoutLastCheckTime() 52 assertTrue(target.checkLastCheckTime()); in testWithoutLastCheckTime() 58 assertTrue(target.checkLastCheckTime()); in testWithoutLastCheckTime() 61 assertFalse(target.checkLastCheckTime()); in testWithoutLastCheckTime() 65 CalendarSanityCheckerTestable target = new CalendarSanityCheckerTestable(getContext()); in testWithLastCheckTime() local 66 target.mPrefs.edit().clear().commit(); in testWithLastCheckTime() 68 assertTrue(target.checkLastCheckTime()); in testWithLastCheckTime() 74 target.updateLastCheckTime(); in testWithLastCheckTime() 77 assertTrue(target.checkLastCheckTime()); in testWithLastCheckTime() [all …]
|
/packages/apps/Dialer/ |
D | Android.mk | 105 dialer-animal-sniffer-annotations-target \ 106 dialer-commons-io-target \ 107 dialer-dagger2-target \ 108 dialer-disklrucache-target \ 109 dialer-gifdecoder-target \ 110 dialer-glide-target \ 111 dialer-grpc-all-target \ 112 dialer-grpc-context-target \ 113 dialer-grpc-core-target \ 114 dialer-grpc-okhttp-target \ [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
D | GLES11Canvas.java | 387 public void drawTexture(BasicTexture texture, RectF source, RectF target) { in drawTexture() argument 388 if (target.width() <= 0 || target.height() <= 0) return; in drawTexture() 392 mDrawTextureTargetRect.set(target); in drawTexture() 394 target = mDrawTextureTargetRect; in drawTexture() 399 convertCoordinate(source, target, texture); in drawTexture() 402 textureRect(target.left, target.top, target.width(), target.height()); in drawTexture() 419 private static void convertCoordinate(RectF source, RectF target, in convertCoordinate() argument 435 target.right = target.left + target.width() * in convertCoordinate() 441 target.bottom = target.top + target.height() * in convertCoordinate() 455 int target = texture.getTarget(); in bindTexture() local [all …]
|
D | GLES20Canvas.java | 607 public void drawTexture(BasicTexture texture, RectF source, RectF target) { in drawTexture() argument 608 if (target.width() <= 0 || target.height() <= 0) { in drawTexture() 612 mTempTargetRect.set(target); in drawTexture() 628 private void drawTextureRect(BasicTexture texture, RectF source, RectF target) { in drawTextureRect() argument 630 drawTextureRect(texture, mTempTextureMatrix, target); in drawTextureRect() 643 private static void convertCoordinate(RectF source, RectF target, BasicTexture texture) { in convertCoordinate() argument 657 target.right = target.left + target.width() * (xBound - source.left) / source.width(); in convertCoordinate() 662 target.bottom = target.top + target.height() * (yBound - source.top) / source.height(); in convertCoordinate() 667 private void drawTextureRect(BasicTexture texture, float[] textureMatrix, RectF target) { in drawTextureRect() argument 674 translate(0, target.centerY()); in drawTextureRect() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
D | WeakAsyncTask.java | 27 public WeakAsyncTask(WeakTarget target) { in WeakAsyncTask() argument 28 mTarget = new WeakReference<WeakTarget>(target); in WeakAsyncTask() 34 final WeakTarget target = mTarget.get(); in onPreExecute() local 35 if (target != null) { in onPreExecute() 36 this.onPreExecute(target); in onPreExecute() 43 final WeakTarget target = mTarget.get(); in doInBackground() local 44 if (target != null) { in doInBackground() 45 return this.doInBackground(target, params); in doInBackground() 54 final WeakTarget target = mTarget.get(); in onPostExecute() local 55 if (target != null) { in onPostExecute() [all …]
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
D | PhotoTouchListener.java | 67 private float getAngle(View target, MotionEvent ev) { in getAngle() argument 79 private void resetTouch(View target) { in resetTouch() argument 83 mInitialTargetX = (float) target.getX(); in resetTouch() 84 mInitialTargetY = (float) target.getY(); in resetTouch() 85 mInitialTargetA = (float) target.getRotation(); in resetTouch() 88 public void onFling(View target, float dX, float dY) { in onFling() argument 118 mTable.fling(target, x1 - x0, y1 - y0, (int) (1000f * n / 60f), false); in onFling() 122 public boolean onTouch(View target, MotionEvent ev) { in onTouch() argument 130 target.getMatrix().mapPoints(pts); in onTouch() 134 mTable.moveToTopOfPile(target); in onTouch() [all …]
|
/packages/modules/ExtServices/src/android/ext/services/resolver/ |
D | LRResolverRankerService.java | 73 ResolverTarget target = targets.get(i); in onPredictSharingProbabilities() local 74 ArrayMap<String, Float> features = getFeatures(target); in onPredictSharingProbabilities() 75 target.setSelectProbability(predict(features)); in onPredictSharingProbabilities() 128 private ArrayMap<String, Float> getFeatures(ResolverTarget target) { in getFeatures() argument 130 features.put(RECENCY_SCORE, target.getRecencyScore()); in getFeatures() 131 features.put(TIME_SPENT_SCORE, target.getTimeSpentScore()); in getFeatures() 132 features.put(LAUNCH_SCORE, target.getLaunchScore()); in getFeatures() 133 features.put(CHOOSER_SCORE, target.getChooserScore()); in getFeatures() 137 private float predict(ArrayMap<String, Float> target) { in predict() argument 138 if (target == null) { in predict() [all …]
|
/packages/services/Car/ |
D | CleanSpec.mk | 48 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/android.car*) 49 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/PACKAGING/android.car*) 50 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/android.support.car*) 51 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/PACKAGING/android.support.car*) 52 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/android.car7_intermediate… 53 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/android.car_intermediates… 54 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/android.car7_intermediate… 55 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/android.car_intermediates… 57 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/android.car_intermediates… 58 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/android.car7_intermediate… [all …]
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/ |
D | RemoteAnimationTargetSet.java | 42 for (RemoteAnimationTargetCompat target : apps) { in RemoteAnimationTargetSet() 43 if (target.mode == targetMode) { in RemoteAnimationTargetSet() 44 filteredApps.add(target); in RemoteAnimationTargetSet() 47 hasRecents |= target.activityType == in RemoteAnimationTargetSet() 59 for (RemoteAnimationTargetCompat target : apps) { in findTask() 60 if (target.taskId == taskId) { in findTask() 61 return target; in findTask() 68 for (RemoteAnimationTargetCompat target : apps) { in isAnimatingHome() 69 if (target.activityType == RemoteAnimationTargetCompat.ACTIVITY_TYPE_HOME) { in isAnimatingHome() 83 for (RemoteAnimationTargetCompat target : unfilteredApps) { in release() [all …]
|
D | RemoteAnimationProvider.java | 59 for (RemoteAnimationTargetCompat target : targets) { in prepareTargetsForFirstFrame() 60 t.setLayer(target.leash, getLayer(target, boostModeTargets)); in prepareTargetsForFirstFrame() 61 t.show(target.leash); in prepareTargetsForFirstFrame() 65 static int getLayer(RemoteAnimationTargetCompat target, int boostModeTarget) { in getLayer() argument 66 return target.mode == boostModeTarget in getLayer() 67 ? Z_BOOST_BASE + target.prefixOrderIndex in getLayer() 68 : target.prefixOrderIndex; in getLayer()
|
/packages/modules/NetworkStack/src/android/net/apf/ |
D | ApfGenerator.java | 425 public ApfGenerator addJump(String target) { in addJump() argument 427 instruction.setTargetLabel(target); in addJump() 643 public ApfGenerator addJumpIfR0Equals(int value, String target) { in addJumpIfR0Equals() argument 646 instruction.setTargetLabel(target); in addJumpIfR0Equals() 655 public ApfGenerator addJumpIfR0NotEquals(int value, String target) { in addJumpIfR0NotEquals() argument 658 instruction.setTargetLabel(target); in addJumpIfR0NotEquals() 667 public ApfGenerator addJumpIfR0GreaterThan(int value, String target) { in addJumpIfR0GreaterThan() argument 670 instruction.setTargetLabel(target); in addJumpIfR0GreaterThan() 679 public ApfGenerator addJumpIfR0LessThan(int value, String target) { in addJumpIfR0LessThan() argument 682 instruction.setTargetLabel(target); in addJumpIfR0LessThan() [all …]
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/ |
D | QuickstepAppTransitionManagerImpl.java | 290 RemoteAnimationTargetCompat target = targets[i]; in composeIconLaunchAnimator() local 291 if (target.mode == MODE_OPENING) { in composeIconLaunchAnimator() 292 isAllOpeningTargetTrs &= target.isTranslucent; in composeIconLaunchAnimator() 320 for (RemoteAnimationTargetCompat target : targets) { in getWindowTargetBounds() 321 if (target.mode == MODE_OPENING) { in getWindowTargetBounds() 322 bounds.set(target.sourceContainerBounds); in getWindowTargetBounds() 323 bounds.offsetTo(target.position.x, target.position.y); in getWindowTargetBounds() 565 RemoteAnimationTargetCompat target = targets[i]; in getOpeningWindowAnimators() local 569 if (target.mode == MODE_OPENING) { in getOpeningWindowAnimators() 584 matrix.setTranslate(target.position.x, target.position.y); in getOpeningWindowAnimators() [all …]
|
/packages/apps/Dialer/java/com/android/incallui/answer/impl/answermethod/ |
D | FlingUpDownTouchHandler.java | 131 @NonNull View target, in attach() 134 FlingUpDownTouchHandler handler = new FlingUpDownTouchHandler(target, listener, falsingManager); in attach() 135 target.setOnTouchListener(handler); in attach() 139 @NonNull private final View target; field in FlingUpDownTouchHandler 173 @NonNull View target, in FlingUpDownTouchHandler() 176 this.target = target; in FlingUpDownTouchHandler() 178 Context context = target.getContext(); in FlingUpDownTouchHandler() 317 int target = forceRecenter ? FlingTarget.CENTER : getFlingTarget(pointerY, vectorVel); in endMotionEvent() local 319 fling(vel, target, falseTouch); in endMotionEvent() 394 private void fling(float velocity, @FlingTarget int target, boolean centerBecauseOfFalsing) { in fling() argument [all …]
|
/packages/apps/Dialer/java/com/android/dialer/app/settings/ |
D | DialerSettingsActivity.java | 92 public void onBuildHeaders(List<Header> target) { in onBuildHeaders() argument 94 headers = target; in onBuildHeaders() 100 target.add(displayOptionsHeader); in onBuildHeaders() 106 target.add(soundSettingsHeader); in onBuildHeaders() 113 target.add(quickResponseSettingsHeader); in onBuildHeaders() 128 target.add(callSettingsHeader); in onBuildHeaders() 136 target.add(phoneAccountSettingsHeader); in onBuildHeaders() 142 target.add(blockedCallsHeader); in onBuildHeaders() 146 addVoicemailSettings(target, isPrimaryUser); in onBuildHeaders() 156 target.add(accessibilitySettingsHeader); in onBuildHeaders() [all …]
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/ |
D | TouchTargetEnforcer.java | 68 public void enforce(View target, View ancestor) { in enforce() argument 69 target.getViewTreeObserver().addOnGlobalLayoutListener( // avoids some subtle bugs in enforce() 72 int deltaHeight = Math.max(0, minTargetPx - target.getHeight()); in enforce() 73 int deltaWidth = Math.max(0, minTargetPx - target.getWidth()); in enforce() 79 Rect bounds = createNewBounds(target, minTargetPx, deltaWidth, deltaHeight); in enforce() 84 mTouchDelegateProvider.getInstance(bounds, target)); in enforce() 88 ancestor, target)); in enforce() 93 ancestor, target)); in enforce() 100 private Rect createNewBounds(View target, int minTargetPx, int deltaWidth, int deltaHeight) { in createNewBounds() argument 105 target.getHitRect(result); in createNewBounds()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | HanziToPinyin.java | 53 public Token(int type, String source, String target) { in Token() argument 56 this.target = target; in Token() 71 public String target; field in HanziToPinyin.Token 104 token.target = token.source; in tokenize() 111 token.target = mAsciiTransliterator == null ? token.source : in tokenize() 117 token.target = mPinyinTransliterator.transliterate(token.source); in tokenize() 118 if (TextUtils.isEmpty(token.target) || in tokenize() 119 TextUtils.equals(token.source, token.target)) { in tokenize() 121 token.target = token.source; in tokenize() 171 sb.append(token.target); in getTokens()
|
/packages/apps/Launcher3/src/com/android/launcher3/anim/ |
D | PropertySetter.java | 39 public <T> void setFloat(T target, Property<T, Float> property, float value, in setFloat() argument 41 property.set(target, value); in setFloat() 44 public <T> void setInt(T target, Property<T, Integer> property, int value, in setInt() argument 46 property.set(target, value); in setInt() 71 public <T> void setFloat(T target, Property<T, Float> property, float value, in setFloat() argument 73 if (property.get(target) == value) { in setFloat() 76 Animator anim = ObjectAnimator.ofFloat(target, property, value); in setFloat() 82 public <T> void setInt(T target, Property<T, Integer> property, int value, in setInt() argument 84 if (property.get(target) == value) { in setInt() 87 Animator anim = ObjectAnimator.ofInt(target, property, value); in setInt()
|
/packages/apps/WallpaperPicker/src/com/android/gallery3d/glrenderer/ |
D | GLES20Canvas.java | 351 public void drawTexture(BasicTexture texture, RectF source, RectF target) { in drawTexture() argument 352 if (target.width() <= 0 || target.height() <= 0) { in drawTexture() 356 mTempTargetRect.set(target); in drawTexture() 362 private void drawTextureRect(BasicTexture texture, RectF source, RectF target) { in drawTextureRect() argument 364 drawTextureRect(texture, mTempTextureMatrix, target); in drawTextureRect() 377 private static void convertCoordinate(RectF source, RectF target, BasicTexture texture) { in convertCoordinate() argument 391 target.right = target.left + target.width() * (xBound - source.left) / source.width(); in convertCoordinate() 396 target.bottom = target.top + target.height() * (yBound - source.top) / source.height(); in convertCoordinate() 401 private void drawTextureRect(BasicTexture texture, float[] textureMatrix, RectF target) { in drawTextureRect() argument 406 draw(params, GLES20.GL_TRIANGLE_STRIP, COUNT_FILL_VERTEX, target.left, target.top, in drawTextureRect() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
D | KeyPreviewDrawParams.java | 148 public Animator createShowUpAnimator(final View target) { in createShowUpAnimator() argument 151 target, View.SCALE_X, mShowUpStartXScale, in createShowUpAnimator() 154 target, View.SCALE_Y, mShowUpStartYScale, in createShowUpAnimator() 163 target.getContext(), mShowUpAnimatorResId); in createShowUpAnimator() 164 animator.setTarget(target); in createShowUpAnimator() 169 public Animator createDismissAnimator(final View target) { in createDismissAnimator() argument 172 target, View.SCALE_X, mDismissEndXScale); in createDismissAnimator() 174 target, View.SCALE_Y, mDismissEndYScale); in createDismissAnimator() 183 target.getContext(), mDismissAnimatorResId); in createDismissAnimator() 184 animator.setTarget(target); in createDismissAnimator()
|
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/appprediction/ |
D | PredictionAppTracker.java | 192 AppTarget target = new AppTarget.Builder( in onStartShortcut() local 197 sendLaunch(target, container); in onStartShortcut() 214 AppTarget target = new AppTarget.Builder( in onStartApp() local 218 sendLaunch(target, container); in onStartApp() 234 AppTarget target = new AppTarget.Builder( in onDismissApp() 238 sendDismiss(target, container); in onDismissApp() 250 private void sendEvent(AppTarget target, String container, int eventId) { in sendEvent() argument 251 AppTargetEvent event = new AppTargetEvent.Builder(target, eventId) in sendEvent() 258 private void sendLaunch(AppTarget target, String container) { in sendLaunch() argument 259 sendEvent(target, container, AppTargetEvent.ACTION_LAUNCH); in sendLaunch() [all …]
|
/packages/apps/Dialer/java/com/android/incallui/answer/impl/hint/ |
D | PawAnswerHint.java | 143 private static Animator createFadeInScaleAndAlpha(View target) { in createFadeInScaleAndAlpha() argument 146 target, in createFadeInScaleAndAlpha() 154 target, in createFadeInScaleAndAlpha() 171 private static Animator createFadeOutScaleAndAlpha(View target, long scaleDelay) { in createFadeOutScaleAndAlpha() argument 174 target, in createFadeOutScaleAndAlpha() 182 target, in createFadeOutScaleAndAlpha() 212 View target, in createUniformScaleAnimator() argument 218 Animator scaleX = ObjectAnimator.ofFloat(target, View.SCALE_X, scaleBegin, scaleEnd); in createUniformScaleAnimator() 219 Animator scaleY = ObjectAnimator.ofFloat(target, View.SCALE_Y, scaleBegin, scaleEnd); in createUniformScaleAnimator() 230 View target, float begin, float end, long duration, long delay, Interpolator interpolator) { in createAlphaAnimator() argument [all …]
|
/packages/apps/ThemePicker/src/com/android/customization/model/theme/ |
D | OverlayManagerCompat.java | 92 for (String target : targetPackages) { in getEnabledOverlaysForTargets() 93 addAllEnabledOverlaysForTarget(overlays, target); in getEnabledOverlaysForTargets() 102 for (String target : targetPackages) { in getOverlayPackagesForCategory() 104 : mOverlayByUser.get(userId).getOrDefault(target, Collections.emptyList())) { in getOverlayPackagesForCategory() 119 for (String target : mTargetPackages) { in ensureCategoryMapForUser() 120 overlaysByTarget.put(target, getOverlayInfosForTarget(target, userId)); in ensureCategoryMapForUser() 131 private void addAllEnabledOverlaysForTarget(Map<String, String> overlays, String target) { in addAllEnabledOverlaysForTarget() argument 133 for (OverlayInfo overlayInfo : getOverlayInfosForTarget(target, UserHandle.myUserId())) { in addAllEnabledOverlaysForTarget()
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
D | EditorAnimator.java | 92 public void slideAndFadeIn(final ViewGroup target, final int previousHeight) { in slideAndFadeIn() argument 94 target.setVisibility(View.VISIBLE); in slideAndFadeIn() 95 target.setAlpha(0.0f); in slideAndFadeIn() 96 SchedulingUtils.doAfterLayout(target, new Runnable() { in slideAndFadeIn() 99 final int offset = target.getHeight() - previousHeight; in slideAndFadeIn() 103 final List<View> viewsToMove = getViewsBelowOf(target); in slideAndFadeIn() 109 target, View.ALPHA, 0.0f, 1.0f); in slideAndFadeIn() 231 int index, View target) { in getViewsBelowOfRecursive() argument 237 if (view.getY() > (target.getY() + target.getHeight() / 2)) { in getViewsBelowOfRecursive() 246 getViewsBelowOfRecursive(result, parentLayout, containerIndex + 1, target); in getViewsBelowOfRecursive()
|
/packages/apps/Launcher3/src/com/android/launcher3/logging/ |
D | UserEventDispatcher.java | 110 final Target target = event.srcTarget[0]; in fillInLogContainerData() local 112 onFillInLogContainerData(itemInfo, target, targetParent); in fillInLogContainerData() 113 provider.fillInLogContainerData(v, itemInfo, target, targetParent); in fillInLogContainerData() 118 @NonNull ItemInfo itemInfo, @NonNull Target target, @NonNull Target targetParent) { } in onFillInLogContainerData() argument 174 protected void fillIntentInfo(Target target, Intent intent) { in fillIntentInfo() argument 175 target.intentHash = intent.hashCode(); in fillIntentInfo() 176 fillComponentInfo(target, intent.getComponent()); in fillIntentInfo() 179 private void fillComponentInfo(Target target, ComponentName cn) { in fillComponentInfo() argument 181 target.packageNameHash = (mUuidStr + cn.getPackageName()).hashCode(); in fillComponentInfo() 182 target.componentHash = (mUuidStr + cn.flattenToString()).hashCode(); in fillComponentInfo() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/ |
D | BrowseTree.java | 348 synchronized boolean isDescendant(BrowseNode target) { in isDescendant() argument 349 return getEldestChild(this, target) == null ? false : true; in isDescendant() 509 BrowseNode getNextStepToFolder(BrowseNode target) { in getNextStepToFolder() argument 510 if (target == null) { in getNextStepToFolder() 512 } else if (target.equals(mCurrentBrowseNode) in getNextStepToFolder() 513 || target.equals(mNowPlayingNode) in getNextStepToFolder() 514 || target.equals(mRootNode)) { in getNextStepToFolder() 515 return target; in getNextStepToFolder() 516 } else if (target.isPlayer()) { in getNextStepToFolder() 521 return target; in getNextStepToFolder() [all …]
|