Home
last modified time | relevance | path

Searched refs:mSource (Results 1 – 21 of 21) sorted by relevance

/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DSingleSourceCorpus.java33 private final Source mSource; field in SingleSourceCorpus
37 mSource = source; in SingleSourceCorpus()
41 return mSource.getSourceIcon(); in getCorpusIcon()
45 return mSource.getSourceIconUri(); in getCorpusIconUri()
49 return mSource.getLabel(); in getLabel()
53 return mSource.getHint(); in getHint()
57 return mSource.getSettingsDescription(); in getSettingsDescription()
62 SourceResult sourceResult = mSource.getSuggestions(query, queryLimit, true); in getSuggestions()
68 return mSource.getName(); in getName()
72 return mSource.queryAfterZeroResults(); in queryAfterZeroResults()
[all …]
DCursorBackedSourceResult.java26 private final Source mSource; field in CursorBackedSourceResult
34 mSource = source; in CursorBackedSourceResult()
38 return mSource; in getSource()
43 return mSource; in getSuggestionSource()
48 return mSource.getIntentComponent(); in getSuggestionIntentComponent()
61 return mSource + "[" + getUserQuery() + "]"; in toString()
DSuggestionData.java31 private final Source mSource; field in SuggestionData
50 mSource = source; in SuggestionData()
54 return mSource; in getSuggestionSource()
95 return mSource.getDefaultIntentAction(); in getSuggestionIntentAction()
99 return mSource.getIntentComponent(); in getSuggestionIntentComponent()
232 result = prime * result + ((mSource == null) ? 0 : mSource.hashCode()); in hashCode()
289 if (mSource == null) { in equals()
290 if (other.mSource != null) in equals()
292 } else if (!mSource.equals(other.mSource)) in equals()
321 appendField(builder, "source", mSource.getName()); in toString()
DSourceShortcutRefresher.java110 private final Source mSource; field in SourceShortcutRefresher.ShortcutRefreshTask
122 mSource = source; in ShortcutRefreshTask()
129 return mSource.getName(); in getName()
134 SuggestionCursor refreshed = mSource.refreshShortcut(mShortcutId, mExtraData); in run()
140 markShortcutRefreshed(mSource, mShortcutId); in run()
141 mListener.onShortcutRefreshed(mSource, mShortcutId, refreshed); in run()
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/
DWidgetService.java87 private WidgetSource mSource; field in WidgetService.PhotoRVFactory
102 mSource = mediaSet == null in onCreate()
106 mSource = new LocalPhotoSource(mApp.getAndroidContext()); in onCreate()
108 mSource.setContentListener(this); in onCreate()
116 mSource.close(); in onDestroy()
117 mSource = null; in onDestroy()
121 return mSource.size(); in getCount()
145 Bitmap bitmap = mSource.getImage(position); in getViewAt()
153 .setData(mSource.getContentUri(position))); in getViewAt()
159 mSource.reload(); in onDataSetChanged()
DMediaSetSource.java37 private MediaSet mSource; field in MediaSetSource
46 mSource = Utils.checkNotNull(source); in MediaSetSource()
47 mSource.addContentListener(this); in MediaSetSource()
52 mSource.removeContentListener(this); in close()
61 ArrayList<MediaItem> items = mSource.getMediaItem(mCacheStart, CACHE_SIZE); in ensureCacheRange()
85 long version = mSource.reload(); in reload()
103 return mSource.getMediaItemCount(); in size()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DPhotoFallbackEffect.java54 private RectF mSource = new RectF(); field in PhotoFallbackEffect
114 mSource.set((w - h) / 2, 0, (w + h) / 2, h); in drawEntry()
115 canvas.drawTexture(entry.texture, mSource, mTarget); in drawEntry()
122 mSource.set(0, 0, (w - h) / 2, h); in drawEntry()
123 canvas.drawTexture(entry.texture, mSource, mTarget); in drawEntry()
127 mSource.set((w + h) / 2, 0, w, h); in drawEntry()
128 canvas.drawTexture(entry.texture, mSource, mTarget); in drawEntry()
134 mSource.set(0, (h - w) / 2, w, (h + w) / 2); in drawEntry()
135 canvas.drawTexture(entry.texture, mSource, mTarget); in drawEntry()
142 mSource.set(0, 0, w, (h - w) / 2); in drawEntry()
[all …]
DDialogDetailsView.java52 private final DetailsSource mSource; field in DialogDetailsView
59 mSource = source; in DialogDetailsView()
63 reloadDetails(mSource.getIndex()); in show()
72 int index = mSource.findIndex(indexHint); in reloadDetails()
74 MediaDetails details = mSource.getDetails(); in reloadDetails()
87 mIndex + 1, mSource.size()); in setDetails()
DAlbumSlidingWindow.java56 private final AlbumDataLoader mSource; field in AlbumSlidingWindow
78 mSource = source; in AlbumSlidingWindow()
116 mSource.setActiveWindow(contentStart, contentEnd); in setContentWindow()
124 mSource.setActiveWindow(contentStart, contentEnd); in setContentWindow()
135 mSource.setActiveWindow(contentStart, contentEnd); in setContentWindow()
245 MediaItem item = mSource.get(slotIndex); // item could be null; in prepareSlotContent()
DAlbumSetSlidingWindow.java45 private final AlbumSetDataLoader mSource; field in AlbumSetSlidingWindow
94 mSource = source; in AlbumSetSlidingWindow()
139 mSource.setActiveWindow(contentStart, contentEnd); in setContentWindow()
150 mSource.setActiveWindow(contentStart, contentEnd); in setContentWindow()
243 MediaSet album = mSource.getMediaSet(slotIndex); in updateAlbumSetEntry()
244 MediaItem cover = mSource.getCoverItem(slotIndex); in updateAlbumSetEntry()
245 int totalCount = mSource.getTotalCount(slotIndex); in updateAlbumSetEntry()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/
DAbstractGoogleSourceResult.java30 private final Source mSource; field in AbstractGoogleSourceResult
35 mSource = source; in AbstractGoogleSourceResult()
44 return mSource; in getSource()
83 return mSource; in getSuggestionSource()
107 return mSource.getDefaultIntentAction(); in getSuggestionIntentAction()
111 return mSource.getIntentComponent(); in getSuggestionIntentComponent()
DGoogleSuggestionProvider.java48 private GoogleSource mSource; field in GoogleSuggestionProvider
52 mSource = QsbApplication.get(getContext()).getGoogleSource(); in onCreate()
80 emptyIfNull(mSource.queryExternal(query), mSource, query)); in query()
85 return new SuggestionCursorBackedCursor(mSource.refreshShortcut(shortcutId, extraData)); in query()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DSlideshowDataAdapter.java49 private final SlideshowSource mSource; field in SlideshowDataAdapter
70 mSource = source; in SlideshowDataAdapter()
79 long v = mSource.reload(); in loadItem()
88 index = mSource.findItemIndex(mInitialPath, index); in loadItem()
91 return mSource.getMediaItem(index); in loadItem()
185 mSource.removeContentListener(mSourceListener);
193 mSource.addContentListener(mSourceListener);
DAlbumSetDataLoader.java66 private final MediaSet mSource; field in AlbumSetDataLoader
79 mSource = Utils.checkNotNull(albumSet); in AlbumSetDataLoader()
109 mSource.removeContentListener(mSourceListener); in pause()
113 mSource.addContentListener(mSourceListener); in resume()
332 if (!mSource.isLoading()) updateLoading(false); in run()
343 version = mSource.reload(); in run()
356 info.size = mSource.getSubMediaSetCount(); in run()
367 info.item = mSource.getSubMediaSet(info.index); in run()
DAlbumDataLoader.java65 private final MediaSet mSource; field in AlbumDataLoader
78 mSource = mediaSet; in AlbumDataLoader()
105 mSource.addContentListener(mSourceListener); in resume()
113 mSource.removeContentListener(mSourceListener); in pause()
338 version = mSource.reload(); in run()
345 info.size = mSource.getMediaItemCount(); in run()
349 info.items = mSource.getMediaItem(info.reloadStart, info.reloadCount); in run()
DPhotoDataAdapter.java145 private final MediaSet mSource; field in PhotoDataAdapter
174 mSource = Utils.checkNotNull(mediaSet); in PhotoDataAdapter()
346 mSource.addContentListener(mSourceListener); in resume()
362 mSource.removeContentListener(mSourceListener); in pause()
975 long version = mSource.reload(); in run()
978 info.size = mSource.getMediaItemCount(); in run()
981 info.items = mSource.getMediaItem( in run()
1055 return mSource.getIndexOfItem(info.target, info.indexHint); in findIndexOfTarget()
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
DMockCorpus.java41 private final Source mSource; field in MockCorpus
51 mSource = source; in MockCorpus()
88 return Collections.singletonList(mSource); in getSources()
96 return new Result(query, mSource.getSuggestions(query, queryLimit, true)); in getSuggestions()
133 return mSource.getName().equals(MockSource.WEB_SOURCE.getName()); in isWebCorpus()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
DLevenshteinDistance.java33 private final Token[] mSource; field in LevenshteinDistance
55 mSource = source; in LevenshteinDistance()
65 final Token[] src = mSource; in calculate()
110 int sourcePos = mSource.length; in getTargetOperations()
/packages/apps/Email/src/com/android/email/activity/
DMessageCompose.java170 private Message mSource; field in MessageCompose
582 return mSource != null; in hasSourceMessage()
924 mSource = message; in loadSourceMessage()
928 processSourceMessage(mSource, mAccount); in loadSourceMessage()
1266 if (mSource != null && mQuotedTextArea.getVisibility() == View.VISIBLE) { in updateMessage()
1267 message.mSourceKey = mSource.mId; in updateMessage()
1270 message.mHtmlReply = mSource.mHtml; in updateMessage()
1271 message.mTextReply = mSource.mText; in updateMessage()
1272 String fromAsString = Address.unpackToString(mSource.mFrom); in updateMessage()
1275 String subject = mSource.mSubject; in updateMessage()
[all …]
/packages/apps/Browser/src/com/android/browser/provider/
DBrowserProvider2.java2119 private final Cursor mSource; field in BrowserProvider2.SuggestionsCursor
2122 mSource = cursor; in SuggestionsCursor()
2134 return mSource.getString(columnIndex); in getString()
2138 return mSource.getString(URL_INDEX); in getString()
2141 return UrlUtils.stripUrl(mSource.getString(URL_INDEX)); in getString()
2143 return mSource.getString(TITLE_INDEX); in getString()
2145 return mSource.getString(ICON_INDEX); in getString()
2147 return mSource.getString(LAST_ACCESS_TIME_INDEX); in getString()
2154 return mSource.getCount(); in getCount()
2176 return mSource.getLong(ID_INDEX); in getLong()
[all …]
/packages/apps/Contacts/src/com/android/contacts/vcard/
DImportVCardActivity.java225 private final byte[] mSource; field in ImportVCardActivity.VCardCacheThread
230 mSource = null; in VCardCacheThread()
274 if (mSource != null) { in run()
276 requests.add(constructImportRequest(mSource, null, mDisplayName)); in run()