Home
last modified time | relevance | path

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

12

/packages/apps/Gallery2/src/com/android/gallery3d/gadget/
DMediaSetSource.java40 private WidgetSource mSource; field in MediaSetSource
48 mSource = new CheckedMediaSetSource(mediaSet); in MediaSetSource()
55 mSource = new EmptySource(); in MediaSetSource()
61 return mSource.size(); in size()
66 return mSource.getImage(index); in getImage()
71 return mSource.getContentUri(index); in getContentUri()
79 mSource.setContentListener(listener); in setContentListener()
85 mSource.reload(); in reload()
90 mSource.close(); in close()
112 mSource = new CheckedMediaSetSource(mediaSet); in resolveAlbumPath()
[all …]
DWidgetService.java60 private WidgetSource mSource; field in WidgetService.PhotoRVFactory
72 mSource = new MediaSetSource(mApp.getDataManager(), mAlbumPath); in onCreate()
74 mSource = new LocalPhotoSource(mApp.getAndroidContext()); in onCreate()
76 mSource.setContentListener(this); in onCreate()
84 mSource.close(); in onDestroy()
85 mSource = null; in onDestroy()
90 return mSource.size(); in getCount()
119 Bitmap bitmap = mSource.getImage(position); in getViewAt()
127 .setData(mSource.getContentUri(position))); in getViewAt()
133 mSource.reload(); in onDataSetChanged()
/packages/apps/TV/usbtuner/src/com/android/usbtuner/exoplayer/
DCea708TextTrackRenderer.java47 private SampleSource.SampleSourceReader mSource; field in Cea708TextTrackRenderer
64 mSource = source.register(); in Cea708TextTrackRenderer()
82 boolean sourcePrepared = mSource.prepare(positionUs); in doPrepare()
86 int trackCount = mSource.getTrackCount(); in doPrepare()
88 MediaFormat trackFormat = mSource.getFormat(i); in doPrepare()
102 mSource.enable(mTrackIndex, positionUs); in onEnabled()
110 mSource.disable(mTrackIndex); in onDisabled()
115 mSource.release(); in onReleased()
139 return mSource.getFormat(mTrackIndex); in getFormat()
145 mSource.maybeThrowError(); in maybeThrowError()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DScrollIndicatorsView.java34 private ScrollNotifier mSource; field in ScrollIndicatorsView
45 mSource = notifier; in setSourceView()
46 mSource.addScrollListener(this); in setSourceView()
51 return mSource.computeVerticalScrollRange(); in computeVerticalScrollRange()
56 return mSource.computeVerticalScrollOffset(); in computeVerticalScrollOffset()
61 return mSource.computeVerticalScrollExtent(); in computeVerticalScrollExtent()
66 return mSource.computeHorizontalScrollRange(); in computeHorizontalScrollRange()
71 return mSource.computeHorizontalScrollOffset(); in computeHorizontalScrollOffset()
76 return mSource.computeHorizontalScrollExtent(); in computeHorizontalScrollExtent()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DPhotoFallbackEffect.java56 private RectF mSource = new RectF(); field in PhotoFallbackEffect
116 mSource.set((w - h) / 2, 0, (w + h) / 2, h); in drawEntry()
117 canvas.drawTexture(entry.texture, mSource, mTarget); in drawEntry()
124 mSource.set(0, 0, (w - h) / 2, h); in drawEntry()
125 canvas.drawTexture(entry.texture, mSource, mTarget); in drawEntry()
129 mSource.set((w + h) / 2, 0, w, h); in drawEntry()
130 canvas.drawTexture(entry.texture, mSource, mTarget); in drawEntry()
136 mSource.set(0, (h - w) / 2, w, (h + w) / 2); in drawEntry()
137 canvas.drawTexture(entry.texture, mSource, mTarget); in drawEntry()
144 mSource.set(0, 0, w, (h - w) / 2); in drawEntry()
[all …]
DAlbumSlidingWindow.java60 private final AlbumDataLoader mSource; field in AlbumSlidingWindow
94 mSource = source; in AlbumSlidingWindow()
132 mSource.setActiveWindow(contentStart, contentEnd); in setContentWindow()
140 mSource.setActiveWindow(contentStart, contentEnd); in setContentWindow()
151 mSource.setActiveWindow(contentStart, contentEnd); in setContentWindow()
265 MediaItem item = mSource.get(slotIndex); // item could be null; in prepareSlotContent()
DDialogDetailsView.java54 private final DetailsSource mSource; field in DialogDetailsView
61 mSource = source; in DialogDetailsView()
77 int index = mSource.setIndex(); in reloadDetails()
79 MediaDetails details = mSource.getDetails(); in reloadDetails()
92 mIndex + 1, mSource.size()); in setDetails()
DAlbumSetSlidingWindow.java48 private final AlbumSetDataLoader mSource; field in AlbumSetSlidingWindow
97 mSource = source; in AlbumSetSlidingWindow()
143 mSource.setActiveWindow(contentStart, contentEnd); in setContentWindow()
154 mSource.setActiveWindow(contentStart, contentEnd); in setContentWindow()
247 MediaSet album = mSource.getMediaSet(slotIndex); in updateAlbumSetEntry()
248 MediaItem cover = mSource.getCoverItem(slotIndex); in updateAlbumSetEntry()
249 int totalCount = mSource.getTotalCount(slotIndex); in updateAlbumSetEntry()
/packages/apps/TV/usbtuner/src/com/android/usbtuner/
DFileDataSource.java67 private StreamProvider mSource; field in FileDataSource
76 mSource = new StreamProvider(filepath); in setScanChannel()
77 if (mSource.isReady()) { in setScanChannel()
78 mEventDetector.start(mSource); in setScanChannel()
95 mSource = new StreamProvider(channel.getFilepath()); in tuneToChannel()
96 if (!mSource.isReady()) { in tuneToChannel()
99 mEventDetector.start(mSource); in tuneToChannel()
100 mSource.addPidFilter(channel.getVideoPid()); in tuneToChannel()
101 mSource.addPidFilter(channel.getAudioPid()); in tuneToChannel()
102 mSource.addPidFilter(channel.getPcrPid()); in tuneToChannel()
[all …]
/packages/apps/TV/usbtuner/src/com/android/usbtuner/exoplayer/ac3/
DAc3TrackRenderer.java86 private final SampleSource.SampleSourceReader mSource; field in Ac3TrackRenderer
112 mSource = source.register(); in Ac3TrackRenderer()
139 boolean sourcePrepared = mSource.prepare(positionUs); in doPrepare()
143 for (int i = 0; i < mSource.getTrackCount(); i++) { in doPrepare()
144 if (handlesMimeType(mSource.getFormat(i).mimeType)) { in doPrepare()
162 return mSource.getFormat(mTrackIndex); in getFormat()
168 mSource.enable(mTrackIndex, positionUs); in onEnabled()
178 mSource.disable(mTrackIndex); in onDisabled()
184 mSource.release(); in onReleased()
212 mSource.seekToUs(positionUs); in seekTo()
[all …]
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
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()
DCursorBackedSourceResult.java28 private final GoogleSource mSource; field in CursorBackedSourceResult
36 mSource = source; in CursorBackedSourceResult()
40 return mSource; in getSource()
45 return mSource; in getSuggestionSource()
50 return mSource.getIntentComponent(); in getSuggestionIntentComponent()
63 return mSource + "[" + getUserQuery() + "]"; in toString()
DSuggestions.java40 private Source mSource; field in Suggestions
50 mSource = source; in Suggestions()
65 return mSource; in getSource()
189 return "Suggestions@" + hashCode() + "{source=" + mSource in toString()
DSearchActivity.java72 private Source mSource; field in SearchActivity
110 mSource = QsbApplication.get(this).getGoogleSource(); in onCreate()
343 startSearch(mSource, query); in onSearchClicked()
361 Intent intent = mSource.createVoiceSearchIntent(mAppSearchData); in onVoiceSearchClicked()
366 return mSource; in getSearchSource()
471 updateSuggestions(query, mSource); in updateSuggestions()
/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/TV/usbtuner/src/com/android/usbtuner/tvinput/
DFileSourceEventDetector.java56 private FileDataSource.StreamProvider mSource; field in FileSourceEventDetector
63 mSource = source; in start()
69 mSource.clearPidFilter(); in reset()
77 if (mSource.isFilterEmpty()) { in feedTSStream()
87 if (mSource.isInFilter(pid)) { in startListening()
90 mSource.addPidFilter(pid); in startListening()
97 mSource.addPidFilter(i.getPmtPid());
180 tunerChannel.setFilepath(mSource.getFilepath());
DTunerSessionWorker.java153 private InputStreamSource mSource; field in TunerSessionWorker
521 mSource = null; in handleMessage()
538 mSource = null; in handleMessage()
864 long limitInBytes = mSource != null ? mSource.getLimit() : 0L; in handleMessage()
865 long positionInBytes = mSource != null ? mSource.getPosition() : 0L; in handleMessage()
888 if (mSource != null && mChannel.getType() == Channel.TYPE_TUNER in handleMessage()
1142 if (mSource != null) { in stopPlayback()
1143 mSource.stopStream(); in stopPlayback()
1185 mSource = null; in playFromChannel()
1187 mSource = mTunerSource; in playFromChannel()
[all …]
/packages/services/Telephony/src/com/android/phone/common/mail/
DBase64Body.java28 private final InputStream mSource; field in Base64Body
33 mSource = source; in Base64Body()
38 return mSource; in getInputStream()
57 IOUtils.copyLarge(mSource, b64out); in writeTo()
59 mSource.close(); in writeTo()
/packages/apps/UnifiedEmail/src/com/android/emailcommon/mail/
DBase64Body.java29 private final InputStream mSource; field in Base64Body
34 mSource = source; in Base64Body()
39 return mSource; in getInputStream()
58 IOUtils.copyLarge(mSource, b64out); in writeTo()
60 mSource.close(); in writeTo()
/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()
190 mSource.removeContentListener(mSourceListener);
199 mSource.addContentListener(mSourceListener);
DAlbumDataLoader.java64 private final MediaSet mSource; field in AlbumDataLoader
79 mSource = mediaSet; in AlbumDataLoader()
110 mSource.addContentListener(mSourceListener); in resume()
118 mSource.removeContentListener(mSourceListener); in pause()
123 return mSource.getMediaItem(index, 1).get(0); in get()
371 long version = mSource.reload(); in run()
376 info.size = mSource.getMediaItemCount(); in run()
380 info.items = mSource.getMediaItem(info.reloadStart, info.reloadCount); in run()
DAlbumSetDataLoader.java65 private final MediaSet mSource; field in AlbumSetDataLoader
78 mSource = Utils.checkNotNull(albumSet); in AlbumSetDataLoader()
108 mSource.removeContentListener(mSourceListener); in pause()
112 mSource.addContentListener(mSourceListener); in resume()
346 if (!mSource.isLoading()) updateLoading(false); in run()
354 long version = mSource.reload(); in run()
360 info.size = mSource.getSubMediaSetCount(); in run()
371 info.item = mSource.getSubMediaSet(info.index); in run()
DPhotoDataAdapter.java144 private final MediaSet mSource; field in PhotoDataAdapter
175 mSource = Utils.checkNotNull(mediaSet); in PhotoDataAdapter()
354 mSource.addContentListener(mSourceListener); in resume()
371 mSource.removeContentListener(mSourceListener); in pause()
1035 long version = mSource.reload(); in run()
1038 info.size = mSource.getMediaItemCount(); in run()
1041 info.items = mSource.getMediaItem( in run()
1119 return mSource.getIndexOfItem(info.target, info.indexHint); in findIndexOfTarget()
/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()

12