/packages/apps/Gallery2/src/com/android/gallery3d/gadget/ |
D | MediaSetSource.java | 40 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 …]
|
D | WidgetService.java | 60 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/tuner/src/com/android/tv/tuner/source/ |
D | FileTsStreamer.java | 69 private StreamProvider mSource; field in FileTsStreamer 137 mSource = new StreamProvider(filepath); in startStream() 138 if (!mSource.isReady()) { in startStream() 141 mEventDetector.start(mSource, FileSourceEventDetector.ALL_PROGRAM_NUMBERS); in startStream() 142 mSource.addPidFilter(TsParser.PAT_PID); in startStream() 143 mSource.addPidFilter(TsParser.ATSC_SI_BASE_PID); in startStream() 145 mSource.addPidFilter(TsParser.DVB_EIT_PID); in startStream() 146 mSource.addPidFilter(TsParser.DVB_SDT_PID); in startStream() 164 mSource = new StreamProvider(channel.getFilepath()); in startStream() 165 if (!mSource.isReady()) { in startStream() [all …]
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/ |
D | Cea708TextTrackRenderer.java | 44 private final SampleSource.SampleSourceReader mSource; field in Cea708TextTrackRenderer 65 mSource = source.register(); in Cea708TextTrackRenderer() 83 boolean sourcePrepared = mSource.prepare(positionUs); in doPrepare() 87 int trackCount = mSource.getTrackCount(); in doPrepare() 89 MediaFormat trackFormat = mSource.getFormat(i); in doPrepare() 103 mSource.enable(mTrackIndex, positionUs); in onEnabled() 111 mSource.disable(mTrackIndex); in onDisabled() 116 mSource.release(); in onReleased() 140 return mSource.getFormat(mTrackIndex); in getFormat() 146 mSource.maybeThrowError(); in maybeThrowError() [all …]
|
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
D | ScrollIndicatorsView.java | 34 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/ |
D | PhotoFallbackEffect.java | 56 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 …]
|
D | AlbumSlidingWindow.java | 60 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()
|
D | AlbumSetSlidingWindow.java | 48 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()
|
D | DialogDetailsView.java | 54 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()
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
D | SuggestionData.java | 31 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()
|
D | CursorBackedSourceResult.java | 28 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()
|
D | Suggestions.java | 40 private Source mSource; field in Suggestions 50 mSource = source; in Suggestions() 65 return mSource; in getSource() 189 return "Suggestions@" + hashCode() + "{source=" + mSource in toString()
|
D | SearchActivity.java | 72 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() 475 updateSuggestions(query, mSource); in updateSuggestions()
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/audio/ |
D | MpegTsDefaultAudioTrackRenderer.java | 103 private final SampleSource.SampleSourceReader mSource; field in MpegTsDefaultAudioTrackRenderer 139 mSource = source.register(); in MpegTsDefaultAudioTrackRenderer() 167 boolean sourcePrepared = mSource.prepare(positionUs); in doPrepare() 171 for (int i = 0; i < mSource.getTrackCount(); i++) { in doPrepare() 172 String mimeType = mSource.getFormat(i).mimeType; in doPrepare() 193 return mSource.getFormat(mTracksIndex.get(track)); in getFormat() 200 mSource.enable(mTrackIndex, positionUs); in onEnabled() 211 mSource.disable(mTrackIndex); in onDisabled() 218 mSource.release(); in onReleased() 246 mSource.seekToUs(positionUs); in seekTo() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/model/account/ |
D | AccountDisplayInfo.java | 30 private final AccountWithDataSet mSource; field in AccountDisplayInfo 40 mSource = account; in AccountDisplayInfo() 48 return mSource; in getSource() 64 return GoogleAccountType.ACCOUNT_TYPE.equals(mSource.type); in hasGoogleAccountType() 68 return GoogleAccountType.ACCOUNT_TYPE.equals(mSource.type) && mSource.dataSet == null; in isGoogleAccount() 88 return new AccountDisplayInfo(mSource, name, type, mIcon, mIsDeviceAccount); in withNameAndType() 93 return new AccountDisplayInfo(mSource, context.getString(nameFormat, mName), in formatted()
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/ |
D | AbstractGoogleSourceResult.java | 30 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()
|
D | GoogleSuggestionProvider.java | 48 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/ |
D | SlideshowDataAdapter.java | 49 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);
|
D | AlbumDataLoader.java | 64 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()
|
D | AlbumSetDataLoader.java | 65 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()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/storage/ |
D | StorageAsyncLoaderTest.java | 63 private StorageStatsSource mSource; field in StorageAsyncLoaderTest 80 mLoader = new StorageAsyncLoader(mContext, mUserManager, "id", mSource, mPackageManager); in setUp() 87 when(mSource.getCacheQuotaBytes(anyString(), anyInt())).thenReturn(DEFAULT_QUOTA); in setUp() 141 when(mSource.getExternalStorageStats(anyString(), eq(UserHandle.SYSTEM))) in testMultipleUsers() 143 when(mSource.getExternalStorageStats(anyString(), eq(new UserHandle(SECONDARY_USER_ID)))) in testMultipleUsers() 182 when(mSource.getStatsForPackage(anyString(), anyString(), any(UserHandle.class))) in testRemovedPackageDoesNotCrash() 195 when(mSource.getExternalStorageStats(anyString(), eq(UserHandle.SYSTEM))) in testPackageIsNotDoubleCounted() 197 when(mSource.getExternalStorageStats(anyString(), eq(new UserHandle(SECONDARY_USER_ID)))) in testPackageIsNotDoubleCounted() 231 when(mSource.getStatsForPackage(anyString(), eq(packageName), any(UserHandle.class))) in addPackage()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/storage/ |
D | StorageAsyncLoaderTest.java | 67 private StorageStatsSource mSource; field in StorageAsyncLoaderTest 82 mLoader = new StorageAsyncLoader(mContext, mCarUserManagerHelper, mSource); in setUp() 87 when(mSource.getCacheQuotaBytes(any(), anyInt())).thenReturn(DEFAULT_QUOTA); in setUp() 149 when(mSource.getExternalStorageStats(any(), eq(UserHandle.SYSTEM))) in testMultipleUsers() 151 when(mSource.getExternalStorageStats(any(), eq(new UserHandle(SECONDARY_USER_ID)))) in testMultipleUsers() 189 when(mSource.getStatsForPackage(any(), anyString(), any(UserHandle.class))) in testRemovedPackageDoesNotCrash() 202 when(mSource.getExternalStorageStats(anyString(), eq(UserHandle.SYSTEM))) in testPackageIsNotDoubleCounted() 204 when(mSource.getExternalStorageStats(anyString(), eq(new UserHandle(SECONDARY_USER_ID)))) in testPackageIsNotDoubleCounted() 240 when(mSource.getStatsForPackage(any(), anyString(), any(UserHandle.class))) in addPackage()
|
/packages/apps/UnifiedEmail/src/com/android/emailcommon/mail/ |
D | Base64Body.java | 29 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/Settings/tests/robotests/src/com/android/settings/applications/ |
D | FetchPackageStorageAsyncLoaderTest.java | 52 private StorageStatsSource mSource; field in FetchPackageStorageAsyncLoaderTest 65 when(mSource.getStatsForPackage(nullable(String.class), nullable(String.class), in worksForValidPackageNameAndUid() 72 mContext, mSource, info, new UserHandle(0)); in worksForValidPackageNameAndUid() 78 when(mSource.getStatsForPackage(anyString(), anyString(), any(UserHandle.class))). in installerExceptionHandledCleanly() 83 mContext, mSource, info, new UserHandle(0)); in installerExceptionHandledCleanly()
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/ |
D | LevenshteinDistance.java | 33 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()
|