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

123

/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
H A DCorpora.java57 * Gets a source by name.
60 * @return A source, or {@code null} if no source with the given name exists.
65 * Gets the corpus that contains the given source.
67 Corpus getCorpusForSource(Source source); argument
H A DCursorBackedSourceResult.java25 public CursorBackedSourceResult(Source source, String userQuery) { argument
26 this(source, userQuery, null);
29 public CursorBackedSourceResult(Source source, String userQuery, Cursor cursor) { argument
31 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);
H A DShortcutRefresher.java31 * @param source source of this shortcut.
36 void onShortcutRefreshed(Source source, String shortcutId, argument
51 boolean shouldRefresh(Source source, String shortcutId); argument
56 public void markShortcutRefreshed(Source source, String shortcutId); argument
H A DShortcutRepository.java61 * @param source The source of the shortcut that's been refreshed
65 void updateShortcut(Source source, String shortcutId, SuggestionCursor refreshed); argument
H A DSearchableCorpusFactory.java69 * Adds any corpora that are not simple single source corpora.
94 for (Source source : sources.getSources()) {
95 if (!claimedSources.contains(source)) {
96 addCorpus(corpora, createSingleSourceCorpus(source));
108 Log.w(TAG, "Can't read web source " + webSource.getName());
113 Log.w(TAG, "Can't read browser source " + browserSource.getName());
125 protected Corpus createSingleSourceCorpus(Source source) { argument
126 if (!source.canRead()) return null;
127 return new SingleSourceCorpus(mContext, mConfig, source);
H A DSearchableSources.java45 // The web search source to use.
50 * @param context Used for looking up source information etc.
97 SearchableSource source = createSearchableSource(searchable);
98 if (source != null) {
99 if (DBG) Log.d(TAG, "Created source " + source);
100 addSource(source);
105 private void addSource(Source source) { argument
106 mSources.put(source.getName(), source);
[all...]
H A DShortcutCursor.java86 public void onShortcutRefreshed(final Source source,
89 mShortcutRepo.updateShortcut(source, shortcutId, refreshed);
92 refresh(source, shortcutId, refreshed);
104 private void refresh(Source source, String shortcutId, SuggestionCursor refreshed) { argument
117 if (shortcutId.equals(getShortcutId()) && source.equals(getSuggestionSource())) {
H A DSingleSourceCorpus.java29 * A corpus that uses a single source.
35 public SingleSourceCorpus(Context context, Config config, Source source) { argument
37 mSource = source;
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
H A DMockShortcutRefresher.java28 public void markShortcutRefreshed(Source source, String shortcutId) { argument
37 public boolean shouldRefresh(Source source, String shortcutId) { argument
H A DMockSources.java31 public void addSource(Source source) { argument
32 mSources.put(source.getName(), source);
H A DMockShortcutRepository.java42 public void updateShortcut(Source source, String shortcutId, SuggestionCursor refreshed) { argument
H A DSourceShortcutRefresherTest.java106 public void onShortcutRefreshed(Source source, String shortcutId, argument
108 mRefreshedSource = source;
/packages/apps/Calculator/src/com/android/calculator2/
H A DCalculatorEditable.java28 private CalculatorEditable(CharSequence source, Logic logic) { argument
29 super(source);
106 public Editable newEditable(CharSequence source) { argument
107 return new CalculatorEditable(source, mLogic);
/packages/apps/Contacts/src/com/android/contacts/ui/widget/
H A DBaseContactEditorView.java44 * source {@link Entity} can be swapped out. Any state-based changes, such as
99 public abstract void setState(EntityDelta state, ContactsSource source, ViewIdGenerator vig); argument
H A DReadOnlyContactEditorView.java102 * TODO: make this more generic using data from the source
105 public void setState(EntityDelta state, ContactsSource source, ViewIdGenerator vig) { argument
109 // Bail if invalid state or source
110 if (state == null || source == null) return;
113 EntityModifier.ensureKindExists(state, source, StructuredName.CONTENT_ITEM_TYPE);
118 CharSequence accountType = source.getDisplayLabel(mContext);
127 mHeaderIcon.setImageDrawable(source.getDisplayIcon(mContext));
134 DataKind kind = source.getKindForMimetype(Photo.CONTENT_ITEM_TYPE);
136 EntityModifier.ensureKindExists(state, source, Photo.CONTENT_ITEM_TYPE);
137 mHasPhotoEditor = (source
[all...]
/packages/apps/Gallery3D/src/com/cooliris/media/
H A DCrossFadingTexture.java50 public CrossFadingTexture(Texture source, Texture destination) { argument
51 mFadingTexture = source;
H A DAdaptiveBackgroundTexture.java52 public AdaptiveBackgroundTexture(Bitmap source, int width, int height) { argument
53 mSource = source;
78 // Determine a crop rectangle for the source image that is the aspect
80 Bitmap source = mSource;
81 if (source == null) {
83 source = mBaseTexture.load(view);
84 if (source == null) {
91 source = Utils.resizeBitmap(source, THUMBNAIL_MAX_X);
92 int sourceWidth = source
[all...]
/packages/apps/Launcher2/src/com/android/launcher2/
H A DDropTarget.java30 * @param source DragSource where the drag started
41 void onDrop(DragSource source, int x, int y, int xOffset, int yOffset, argument
44 void onDragEnter(DragSource source, int x, int y, int xOffset, int yOffset, argument
47 void onDragOver(DragSource source, int x, int y, int xOffset, int yOffset, argument
50 void onDragExit(DragSource source, int x, int y, int xOffset, int yOffset, argument
58 * @param source DragSource where the drag started
69 boolean acceptDrop(DragSource source, int x, int y, int xOffset, int yOffset, argument
76 * @param source DragSource where the drag started
90 Rect estimateDropLocation(DragSource source, int x, int y, int xOffset, int yOffset, argument
H A DLiveFolderIcon.java58 public boolean acceptDrop(DragSource source, int x, int y, int xOffset, int yOffset, argument
64 public void onDrop(DragSource source, int x, int y, int xOffset, int yOffset, argument
69 public void onDragEnter(DragSource source, int x, int y, int xOffset, int yOffset, argument
74 public void onDragOver(DragSource source, int x, int y, int xOffset, int yOffset, argument
79 public void onDragExit(DragSource source, int x, int y, int xOffset, int yOffset, argument
H A DUserFolder.java35 public boolean acceptDrop(DragSource source, int x, int y, int xOffset, int yOffset, argument
44 public Rect estimateDropLocation(DragSource source, int x, int y, int xOffset, int yOffset, argument
49 public void onDrop(DragSource source, int x, int y, int xOffset, int yOffset, argument
62 public void onDragEnter(DragSource source, int x, int y, int xOffset, int yOffset, argument
66 public void onDragOver(DragSource source, int x, int y, int xOffset, int yOffset, argument
70 public void onDragExit(DragSource source, int x, int y, int xOffset, int yOffset, argument
/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/apps/Camera/src/com/android/camera/
H A DSwitcher.java41 public boolean onSwitchChanged(Switcher source, boolean onOff); argument
/packages/apps/Contacts/src/com/android/contacts/model/
H A DEntitySet.java318 public void readFromParcel(Parcel source) { argument
320 final int size = source.readInt();
322 this.add(source.<EntityDelta> readParcelable(loader));
H A DSources.java87 // Create fallback contacts source for on-phone contacts
113 for (ContactsSource source : sources) {
114 addSource(source);
118 protected void addSource(ContactsSource source) { argument
119 mSources.put(source.accountType, source);
120 mKnownPackages.add(source.resPackageName);
146 // Invalidate cache of existing source
149 // Unknown source, so reload from scratch
160 for (ContactsSource source
[all...]

Completed in 255 milliseconds

123