Home
last modified time | relevance | path

Searched refs:target (Results 1 – 25 of 188) sorted by relevance

12345678

/packages/apps/ContactsCommon/src/com/android/contacts/common/util/
DWeakAsyncTask.java27 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/apps/Gallery2/src/com/android/gallery3d/glrenderer/
DGLES11Canvas.java389 public void drawTexture(BasicTexture texture, RectF source, RectF target) { in drawTexture() argument
390 if (target.width() <= 0 || target.height() <= 0) return; in drawTexture()
394 mDrawTextureTargetRect.set(target); in drawTexture()
396 target = mDrawTextureTargetRect; in drawTexture()
401 convertCoordinate(source, target, texture); in drawTexture()
404 textureRect(target.left, target.top, target.width(), target.height()); in drawTexture()
421 private static void convertCoordinate(RectF source, RectF target, in convertCoordinate() argument
437 target.right = target.left + target.width() * in convertCoordinate()
443 target.bottom = target.top + target.height() * in convertCoordinate()
457 int target = texture.getTarget(); in bindTexture() local
[all …]
DGLES20Canvas.java607 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/screensavers/PhotoTable/src/com/android/dreams/phototable/
DPhotoTouchListener.java67 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/apps/Email/
DCleanSpec.mk50 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/com.android.email*)
51 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/Email*)
52 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/com.android.email*)
53 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/Email*)
54 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/com.android.email*)
55 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/Email*)
56 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/com.android.email*)
57 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/Email*)
58 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/com.android.email*)
59 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/Email*)
[all …]
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/glrenderer/
DGLES20Canvas.java605 public void drawTexture(BasicTexture texture, RectF source, RectF target) { in drawTexture() argument
606 if (target.width() <= 0 || target.height() <= 0) { in drawTexture()
610 mTempTargetRect.set(target); in drawTexture()
626 private void drawTextureRect(BasicTexture texture, RectF source, RectF target) { in drawTextureRect() argument
628 drawTextureRect(texture, mTempTextureMatrix, target); in drawTextureRect()
641 private static void convertCoordinate(RectF source, RectF target, BasicTexture texture) { in convertCoordinate() argument
655 target.right = target.left + target.width() * (xBound - source.left) / source.width(); in convertCoordinate()
660 target.bottom = target.top + target.height() * (yBound - source.top) / source.height(); in convertCoordinate()
665 private void drawTextureRect(BasicTexture texture, float[] textureMatrix, RectF target) { in drawTextureRect() argument
672 translate(0, target.centerY()); in drawTextureRect()
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DHanziToPinyin.java53 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/Settings/src/com/android/settings/datausage/
DAppDataUsagePreference.java81 AppDataUsagePreference target) { in UidDetailTask() argument
84 mTarget = checkNotNull(target); in UidDetailTask()
88 AppDataUsagePreference target) { in bindView() argument
91 bindView(cachedDetail, target); in bindView()
93 new UidDetailTask(provider, item, target).executeOnExecutor( in bindView()
98 private static void bindView(UidDetail detail, Preference target) { in bindView() argument
100 target.setIcon(detail.icon); in bindView()
101 target.setTitle(detail.label); in bindView()
103 target.setIcon(null); in bindView()
104 target.setTitle(null); in bindView()
DBillingCycleSettings.java189 final BillingCycleSettings target = (BillingCycleSettings) getTargetFragment(); in setupPicker() local
190 final NetworkPolicyEditor editor = target.services.mPolicyEditor; in setupPicker()
217 final BillingCycleSettings target = (BillingCycleSettings) getTargetFragment(); in onClick() local
218 final NetworkPolicyEditor editor = target.services.mPolicyEditor; in onClick()
236 target.updatePrefs(); in onClick()
263 final BillingCycleSettings target = (BillingCycleSettings) getTargetFragment(); in onCreateDialog() local
264 final NetworkPolicyEditor editor = target.services.mPolicyEditor; in onCreateDialog()
289 final BillingCycleSettings target = (BillingCycleSettings) getTargetFragment(); in onClick() local
290 final NetworkPolicyEditor editor = target.services.mPolicyEditor; in onClick()
298 target.updatePrefs(); in onClick()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DKeyPreviewDrawParams.java148 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/ManagedProvisioning/src/com/android/managedprovisioning/
DTrampolineActivity.java36 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/Launcher2/src/com/android/launcher2/
DLauncherAnimUtils.java93 public static ValueAnimator ofFloat(View target, float... values) { in ofFloat() argument
100 public static ObjectAnimator ofFloat(View target, String propertyName, float... values) { in ofFloat() argument
102 anim.setTarget(target); in ofFloat()
106 new FirstFrameAnimatorHelper(anim, target); in ofFloat()
110 public static ObjectAnimator ofPropertyValuesHolder(View target, in ofPropertyValuesHolder() argument
113 anim.setTarget(target); in ofPropertyValuesHolder()
116 new FirstFrameAnimatorHelper(anim, target); in ofPropertyValuesHolder()
120 public static ObjectAnimator ofPropertyValuesHolder(Object target, in ofPropertyValuesHolder() argument
123 anim.setTarget(target); in ofPropertyValuesHolder()
DDragController.java695 DropTarget target = dropTargets.get(i);
696 if (!target.isDropEnabled())
699 target.getHitRect(r);
702 target.getLocationInDragLayer(dropCoordinates);
703 r.offset(dropCoordinates[0] - target.getLeft(), dropCoordinates[1] - target.getTop());
708 DropTarget delegate = target.getDropTargetDelegate(mDragObject);
710 target = delegate;
711 target.getLocationInDragLayer(dropCoordinates);
718 return target;
749 public void addDropTarget(DropTarget target) {
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherAnimUtils.java98 public static ValueAnimator ofFloat(View target, float... values) { in ofFloat() argument
105 public static ObjectAnimator ofFloat(View target, String propertyName, float... values) { in ofFloat() argument
107 anim.setTarget(target); in ofFloat()
111 new FirstFrameAnimatorHelper(anim, target); in ofFloat()
115 public static ObjectAnimator ofPropertyValuesHolder(View target, in ofPropertyValuesHolder() argument
118 anim.setTarget(target); in ofPropertyValuesHolder()
121 new FirstFrameAnimatorHelper(anim, target); in ofPropertyValuesHolder()
125 public static ObjectAnimator ofPropertyValuesHolder(Object target, in ofPropertyValuesHolder() argument
128 anim.setTarget(target); in ofPropertyValuesHolder()
/packages/apps/Dialer/InCallUI/src/com/android/incallui/widget/multiwaveview/
DGlowPadView.java86 public void onTrigger(View v, int target); in onTrigger() argument
464 TargetDrawable target = mTargetDrawables.get(i); in deactivateTargets() local
465 target.setState(TargetDrawable.STATE_INACTIVE); in deactivateTargets()
539 TargetDrawable target = mTargetDrawables.get(i); in hideTargets() local
540 target.setState(TargetDrawable.STATE_INACTIVE); in hideTargets()
541 mTargetAnimations.add(Tweener.to(target, duration, in hideTargets()
572 TargetDrawable target = mTargetDrawables.get(i); in showTargets() local
573 target.setState(TargetDrawable.STATE_INACTIVE); in showTargets()
574 mTargetAnimations.add(Tweener.to(target, duration, in showTargets()
608 … TargetDrawable target = new TargetDrawable(res, value != null ? value.resourceId : 0, 3); in loadDrawableArray() local
[all …]
/packages/apps/Contacts/src/com/android/contacts/editor/
DEditorAnimator.java91 public void slideAndFadeIn(final ViewGroup target, final int previousHeight) { in slideAndFadeIn() argument
93 target.setVisibility(View.VISIBLE); in slideAndFadeIn()
94 target.setAlpha(0.0f); in slideAndFadeIn()
95 SchedulingUtils.doAfterLayout(target, new Runnable() { in slideAndFadeIn()
98 final int offset = target.getHeight() - previousHeight; in slideAndFadeIn()
102 final List<View> viewsToMove = getViewsBelowOf(target); in slideAndFadeIn()
108 target, View.ALPHA, 0.0f, 1.0f); in slideAndFadeIn()
230 int index, View target) { in getViewsBelowOfRecursive() argument
236 if (view.getY() > (target.getY() + target.getHeight() / 2)) { in getViewsBelowOfRecursive()
245 getViewsBelowOfRecursive(result, parentLayout, containerIndex + 1, target); in getViewsBelowOfRecursive()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DAbstractActivityController.java1543 final Collection<Conversation> target = Conversation.listOf(mCurrentConversation);
1554 if (target.size() > 0 &&
1559 confirmAndDelete(id, target, showDialog, R.plurals.confirm_archive_conversation,
1562 delete(R.id.remove_folder, target,
1563 getDeferredRemoveFolder(target, mFolder, true, isBatch, true, undoCallback),
1567 confirmAndDelete(id, target, showDialog, R.plurals.confirm_delete_conversation,
1571 confirmAndDelete(id, target, true /* showDialog */,
1575 delete(id, target, getDeferredAction(id, target, isBatch, undoCallback), isBatch);
1581 delete(R.id.mark_not_important, target,
1582 … getDeferredAction(R.id.mark_not_important, target, isBatch, undoCallback),
[all …]
DConversationUpdater.java48 void updateConversation(Collection <Conversation> target, String columnName, String value); in updateConversation() argument
58 void updateConversation(Collection <Conversation> target, String columnName, int value); in updateConversation() argument
68 void updateConversation(Collection <Conversation> target, String columnName, boolean value); in updateConversation() argument
78 void updateConversation(Collection <Conversation> target, ContentValues values); in updateConversation() argument
88 int actionId, final Collection<Conversation> target, final DestructiveAction action, in delete() argument
156 public DestructiveAction getDeferredRemoveFolder(Collection<Conversation> target, in getDeferredRemoveFolder() argument
170 public void assignFolder(Collection<FolderOperation> folders, Collection<Conversation> target, in assignFolder() argument
/packages/apps/Launcher3/
DCleanSpec.mk47 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/Launcher2_intermediates)
48 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/Launcher2_intermediates)
49 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/Launcher2_intermediates)
50 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/Launcher2_intermediates)
51 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/Launcher2_intermediates)
53 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/Launcher2_intermediates)
/packages/apps/Dialer/src/com/android/dialer/settings/
DDialerSettingsActivity.java63 public void onBuildHeaders(List<Header> target) { in onBuildHeaders() argument
67 target.add(displayOptionsHeader); in onBuildHeaders()
73 target.add(soundSettingsHeader); in onBuildHeaders()
81 target.add(quickResponseSettingsHeader); in onBuildHeaders()
100 target.add(callSettingsHeader); in onBuildHeaders()
109 target.add(phoneAccountSettingsHeader); in onBuildHeaders()
115 target.add(blockedCallsHeader); in onBuildHeaders()
126 target.add(accessibilitySettingsHeader); in onBuildHeaders()
/packages/apps/Camera2/src/com/android/camera/ui/motion/
DUnitBezier.java75 private float solve(float target, DerivableFloatFn fn) { in solve() argument
77 float input = target; in solve()
81 float value = fn.value(input) - target; in solve()
95 input = target; in solve()
106 if (Math.abs(value - target) < EPSILON) { in solve()
110 if (target > value) { in solve()
/packages/apps/UnifiedEmail/
DCleanSpec.mk50 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/UnifiedEmail_intermediates)
51 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/UnifiedEmail_intermediates)
52 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/UnifiedEmail_intermediates)
53 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/UnifiedEmail_intermediates)
54 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/UnifiedEmail_intermediates)
/packages/apps/Launcher2/
DCleanSpec.mk47 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/Launcher2_intermediates)
48 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/Launcher2_intermediates)
49 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/Launcher2_intermediates)
50 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/Launcher2_intermediates)
51 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/Launcher2_intermediates)
/packages/apps/Gallery2/
DCleanSpec.mk47 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/Camera*)
49 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/Gallery*)
50 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/Gallery*)
51 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/Gallery*)
52 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/Gallery*)
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/util/
DLevenshteinDistanceTest.java36 private void verifyTargetOperations(String[] source, String[] target, int[] expectedOps, in verifyTargetOperations() argument
40 Token[] targetTokens = makeTokens(target); in verifyTargetOperations()
42 assertEquals("test error", target.length, expectedOps.length); in verifyTargetOperations()
49 assertEquals("Token " + i + " '" + target[i] + "' has wrong operation", in verifyTargetOperations()
52 assertEquals(source[ops[i].getPosition()], target[i]); in verifyTargetOperations()
54 assertFalse(source[ops[i].getPosition()].equals(target[i])); in verifyTargetOperations()

12345678