Searched defs:source (Results 1 - 25 of 129) sorted by relevance

123456

/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
H A DSuggestionsProvider.java29 * @param source The source to query. Must be non-null.
31 Suggestions getSuggestions(String query, Source source); argument
H A DCursorBackedSourceResult.java30 public CursorBackedSourceResult(GoogleSource source, String userQuery) { argument
31 this(source, userQuery, null);
34 public CursorBackedSourceResult(GoogleSource source, String userQuery, Cursor cursor) { argument
36 mSource = source;
H A DLevenshteinSuggestionFormatter.java47 Log.d(TAG, "source = " + queryTokens);
73 * Finds which tokens in the target match tokens in the source.
75 * @param source List of source tokens (i.e. user query)
77 * @return The indices into source which target tokens correspond to. A non-negative value n at
78 * position i means that target token i matches source token n. A negative value means that
79 * the target token i does not match any source token.
82 int[] findMatches(Token[] source, Token[] target) { argument
83 final LevenshteinDistance table = new LevenshteinDistance(source, target);
/packages/apps/Dialer/src/com/android/dialer/dialpad/
H A DUnicodeDialerKeyListener.java32 public CharSequence filter(CharSequence source, int start, int end, argument
35 PhoneNumberUtils.replaceUnicodeDigits(source.toString()));
40 if (source.equals(converted)) {
/packages/apps/Launcher3/src/com/android/launcher3/
H A DInfoDropTarget.java66 protected boolean supportsDrop(DragSource source, Object info) { argument
67 return source.supportsAppInfoDropTarget() && supportsDrop(getContext(), info);
H A DDeleteDropTarget.java56 protected boolean supportsDrop(DragSource source, Object info) { argument
57 return source.supportsDeleteDropTarget() && supportsDrop(info);
H A DUninstallDropTarget.java35 protected boolean supportsDrop(DragSource source, Object info) { argument
/packages/apps/Settings/src/com/android/settings/bluetooth/
H A DUtf8ByteLengthFilter.java47 public CharSequence filter(CharSequence source, int start, int end, argument
50 // count UTF-8 bytes in source substring
52 char c = source.charAt(i);
72 char c = source.charAt(i);
75 return source.subSequence(start, i);
/packages/apps/UnifiedEmail/src/com/android/emailcommon/mail/
H A DBase64Body.java33 public Base64Body(InputStream source) { argument
34 mSource = source;
/packages/services/Telephony/src/com/android/phone/common/mail/
H A DBase64Body.java32 public Base64Body(InputStream source) { argument
33 mSource = source;
/packages/apps/Camera2/src/com/android/camera/ui/focus/
H A DCameraCoordinateTransformer.java55 * @param source the rectangle in camera space
58 public RectF toPreviewSpace(RectF source) { argument
60 mCameraToPreviewTransform.mapRect(result, source);
68 * @param source the rectangle in preview view space
71 public RectF toCameraSpace(RectF source) { argument
73 mPreviewToCameraTransform.mapRect(result, source);
100 private Matrix inverse(Matrix source) { argument
102 source.invert(newMatrix);
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DBitmapScreenNail.java58 public void draw(GLCanvas canvas, RectF source, RectF dest) { argument
59 canvas.drawTexture(mBitmapTexture, source, dest);
H A DScreenNail.java34 public void draw(GLCanvas canvas, RectF source, RectF dest); argument
H A DDetailsHelper.java53 public DetailsHelper(AbstractGalleryActivity activity, GLView rootPane, DetailsSource source) { argument
54 mContainer = new DialogDetailsView(activity, source);
/packages/apps/Launcher2/src/com/android/launcher2/
H A DInfoDropTarget.java68 private boolean isFromAllApps(DragSource source) { argument
69 return (source instanceof AppsCustomizePagedView);
76 // so that the object being dragged isn't removed from the drag source.
101 public void onDragStart(DragSource source, Object info, int dragAction) { argument
105 if (!isFromAllApps(source)) {
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/picker/
H A DPickerColumn.java36 public PickerColumn(Parcel source) { argument
37 int count = source.readInt();
39 source.readStringArray(mItems);
50 public PickerColumn createFromParcel(Parcel source) {
51 return new PickerColumn(source);
/packages/apps/Launcher3/src/com/android/launcher3/widget/
H A DWidgetHostViewLoader.java47 public void onDragStart(DragSource source, Object info, int dragAction) { } argument
/packages/apps/Messaging/src/com/android/messaging/ui/
H A DLineWrapLayout.java212 public LayoutParams(ViewGroup.LayoutParams source) { argument
213 super(source);
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/util/
H A DLevenshteinDistanceTest.java36 private void verifyTargetOperations(String[] source, String[] target, int[] expectedOps, argument
39 Token[] sourceTokens = makeTokens(source);
52 assertEquals(source[ops[i].getPosition()], target[i]);
54 assertFalse(source[ops[i].getPosition()].equals(target[i]));
/packages/experimental/TestBack/src/foo/bar/testback/
H A DTestBackService.java41 AccessibilityNodeInfo source = event.getSource();
42 dumpWindow(source);
92 private void dumpWindow(AccessibilityNodeInfo source) { argument
93 AccessibilityNodeInfo root = source;
/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/
H A DCoordinateUtils.java48 public static void copy(@Nonnull final int[] destination, @Nonnull final int[] source) { argument
49 destination[INDEX_X] = source[INDEX_X];
50 destination[INDEX_Y] = source[INDEX_Y];
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
H A DSpannableStringUtils.java36 * <code>source</code> to the region
38 * Spans in <code>source</code> that begin before <code>start</code>
49 public static void copyNonParagraphSuggestionSpansFrom(Spanned source, int start, int end, argument
51 Object[] spans = source.getSpans(start, end, SuggestionSpan.class);
54 int fl = source.getSpanFlags(spans[i]);
62 int st = source.getSpanStart(spans[i]);
63 int en = source.getSpanEnd(spans[i]);
/packages/apps/Camera/jni/feature_stab/db_vlvm/
H A Ddb_utilities_indexing.cpp34 /*This routine breaks number in source into values smaller and larger than
36 void db_LeanPartitionOnPivot(double pivot,double *dest,const double *source,long first,long last,long *first_equal,long *last_equal) argument
44 s_point=source+first;
45 s_top=source+last;
68 const double *source; local
73 source=s;
78 pivot=db_TripleMedian(source[first],source[last],source[(first+last)/2]);
79 db_LeanPartitionOnPivot(pivot,dest,source,firs
[all...]
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
H A DBitmapUtils.java178 public static Bitmap rotateBitmap(Bitmap source, int rotation, boolean recycle) { argument
179 if (rotation == 0) return source;
180 int w = source.getWidth();
181 int h = source.getHeight();
184 Bitmap bitmap = Bitmap.createBitmap(source, 0, 0, w, h, m, true);
185 if (recycle) source.recycle();
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/
H A DMediaSetSource.java52 // Initialize source to an empty source until the album path can be resolved
137 public CheckedMediaSetSource(MediaSet source) { argument
138 mSource = Utils.checkNotNull(source);

Completed in 711 milliseconds

123456