/packages/apps/Car/RotaryController/tests/unit/src/com/android/car/rotary/ |
D | NavigatorTest.java | 116 FindRotateTargetResult target = mNavigator.findRotateTarget(button1, direction, 1); in testFindRotateTarget() local 117 assertThat(target.node).isEqualTo(button2); in testFindRotateTarget() 118 assertThat(target.advancedCount).isEqualTo(1); in testFindRotateTarget() 120 Utils.recycleNode(target.node); in testFindRotateTarget() 123 target = mNavigator.findRotateTarget(button1, direction, 2); in testFindRotateTarget() 124 assertThat(target.node).isEqualTo(button3); in testFindRotateTarget() 125 assertThat(target.advancedCount).isEqualTo(2); in testFindRotateTarget() 127 Utils.recycleNode(target.node); in testFindRotateTarget() 151 FindRotateTargetResult target = mNavigator.findRotateTarget(button2, direction, 1); in testFindRotateTargetNoWrapAround() local 152 assertThat(target).isNull(); in testFindRotateTargetNoWrapAround() [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 | 82 ResolverTarget target = targets.get(i); in onPredictSharingProbabilities() local 83 ArrayMap<String, Float> features = getFeatures(target); in onPredictSharingProbabilities() 84 target.setSelectProbability(predict(features)); in onPredictSharingProbabilities() 150 private ArrayMap<String, Float> getFeatures(ResolverTarget target) { in getFeatures() argument 152 features.put(RECENCY_SCORE, target.getRecencyScore()); in getFeatures() 153 features.put(TIME_SPENT_SCORE, target.getTimeSpentScore()); in getFeatures() 154 features.put(LAUNCH_SCORE, target.getLaunchScore()); in getFeatures() 155 features.put(CHOOSER_SCORE, target.getChooserScore()); in getFeatures() 159 private float predict(ArrayMap<String, Float> target) { in predict() argument 160 if (target == null) { in predict() [all …]
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/ |
D | RemoteAnimationTargets.java | 43 for (RemoteAnimationTargetCompat target : apps) { in RemoteAnimationTargets() 44 if (target.mode == targetMode) { in RemoteAnimationTargets() 45 filteredApps.add(target); in RemoteAnimationTargets() 48 hasRecents |= target.activityType == in RemoteAnimationTargets() 61 for (RemoteAnimationTargetCompat target : apps) { in findTask() 62 if (target.taskId == taskId) { in findTask() 63 return target; in findTask() 70 for (RemoteAnimationTargetCompat target : unfilteredApps) { in isAnimatingHome() 71 if (target.activityType == RemoteAnimationTargetCompat.ACTIVITY_TYPE_HOME) { in isAnimatingHome() 95 for (RemoteAnimationTargetCompat target : unfilteredApps) { in release() [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/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 | 273 RemoteAnimationTargetCompat target = appTargets[i]; in composeIconLaunchAnimator() local 274 if (target.mode == MODE_OPENING) { in composeIconLaunchAnimator() 275 isAllOpeningTargetTrs &= target.isTranslucent; in composeIconLaunchAnimator() 312 for (RemoteAnimationTargetCompat target : appTargets) { in getWindowTargetBounds() 313 if (target.mode == MODE_OPENING) { in getWindowTargetBounds() 314 bounds.set(target.screenSpaceBounds); in getWindowTargetBounds() 315 if (target.localBounds != null) { in getWindowTargetBounds() 316 bounds.set(target.localBounds); in getWindowTargetBounds() 318 bounds.offsetTo(target.position.x, target.position.y); in getWindowTargetBounds() 590 RemoteAnimationTargetCompat target = appTargets[i]; in getOpeningWindowAnimators() local [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/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/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/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/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/TvSettings/TwoPanelSettingsLib/src/com/android/tv/twopanelsettings/slices/ |
D | SlicePreferencesUtil.java | 295 SliceItem target = SliceQuery.findSubtype(item, FORMAT_TEXT, SlicesConstants.TAG_KEY); in getKey() local 296 return target != null ? target.getText() : null; in getKey() 300 SliceItem target = SliceQuery.findSubtype( in getRadioGroup() local 302 return target != null ? target.getText() : null; in getRadioGroup() 418 SliceItem target = SliceQuery.findSubtype(item, FORMAT_INT, EXTRA_PAGE_ID); in getPageId() local 419 return target != null ? target.getInt() : 0; in getPageId() 423 SliceItem target = SliceQuery.findSubtype(item, FORMAT_INT, EXTRA_ACTION_ID); in getActionId() local 424 return target != null ? target.getInt() : 0; in getActionId() 429 SliceItem target = SliceQuery.findSubtype(item, FORMAT_TEXT, EXTRA_PREFERENCE_INFO_TEXT); in getInfoText() local 430 return target != null ? target.getText() : null; in getInfoText() [all …]
|
/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/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/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/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/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/ManagedProvisioning/src/com/android/managedprovisioning/ |
D | TrampolineActivity.java | 36 Intent target = (Intent) getIntent().getParcelableExtra(EXTRA_INTENT); in onCreate() local 37 if (target != null) { in onCreate() 40 startActivityForResult(target, 0); in onCreate() 45 public static void startActivity(Context context, Intent target) { in startActivity() argument 46 context.startActivity(createIntent(context, target)); in startActivity() 49 public static Intent createIntent(Context context, Intent target) { in createIntent() argument 51 intent.putExtra(EXTRA_INTENT, target); in createIntent()
|
/packages/apps/Launcher3/src/com/android/launcher3/logging/ |
D | UserEventDispatcher.java | 115 protected void onFillInLogContainerData(@NonNull ItemInfo itemInfo, @NonNull Target target, in onFillInLogContainerData() argument 171 protected void fillIntentInfo(Target target, Intent intent, @Nullable UserHandle userHandle) { in fillIntentInfo() argument 172 target.intentHash = intent.hashCode(); in fillIntentInfo() 173 target.isWorkApp = userHandle != null && !userHandle.equals(Process.myUserHandle()); in fillIntentInfo() 174 fillComponentInfo(target, intent.getComponent()); in fillIntentInfo() 177 private void fillComponentInfo(Target target, ComponentName cn) { in fillComponentInfo() argument 179 target.packageNameHash = (mUuidStr + cn.getPackageName()).hashCode(); in fillComponentInfo() 180 target.componentHash = (mUuidStr + cn.flattenToString()).hashCode(); in fillComponentInfo() 281 public void logActionTapOutside(Target target) { in logActionTapOutside() argument 283 target); in logActionTapOutside() [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 …]
|