Home
last modified time | relevance | path

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

12

/packages/modules/Bluetooth/service/tests/src/com/android/server/bluetooth/
DBluetoothServiceBinderTest.java100 private final AttributionSource mSource = field in BluetoothServiceBinderTest
109 lenient().doReturn(TAG).when(mSource).getPackageName(); in setUp()
152 checkDisabled(() -> mBinder.enable(mSource)); in enableNoRestrictEnable()
153 checkHardDenied(() -> mBinder.enable(mSource), true); in enableNoRestrictEnable()
155 checkGranted(() -> mBinder.enable(mSource), true); in enableNoRestrictEnable()
166 checkDisabled(() -> mBinder.enable(mSource)); in enableWithRestrictEnable()
167 checkHardDenied(() -> mBinder.enable(mSource), true); in enableWithRestrictEnable()
168 checkGranted(() -> mBinder.enable(mSource), false); in enableWithRestrictEnable()
179 checkDisabled(() -> mBinder.enableNoAutoConnect(mSource)); in enableNoAutoConnect()
180 checkHardDenied(() -> mBinder.enableNoAutoConnect(mSource), false); in enableNoAutoConnect()
[all …]
/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/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DMoveRawContactsTest.java86 AccountWithDataSet mSource; field in MoveRawContactsTest
107 mSource = AccountWithDataSet.get(SOURCE_ACCOUNT.name, SOURCE_ACCOUNT.type, null); in setUp()
411 mMover.moveRawContacts(Set.of(mSource), mDest); in testMoveDuplicateRawContacts()
414 assertMovedContactIsDeleted(sourceDupeRawContactId, mSource); in testMoveDuplicateRawContacts()
435 mMover.moveRawContacts(Set.of(mSource), mDest); in testMoveUniqueRawContactsWithDataRows()
438 assertMoveStubDoesNotExist(sourceRawContactId, mSource); in testMoveUniqueRawContactsWithDataRows()
461 mMover.moveRawContactsWithSyncStubs(Set.of(mSource), mDest); in testMoveUniqueRawContacts()
467 assertMoveStubExists(uniqueContactId, SOURCE_ID, mSource); in testMoveUniqueRawContacts()
485 mMover.moveRawContacts(Set.of(mSource), mDest); in testMoveUniqueRawContactsStubDisabled()
491 assertMoveStubDoesNotExist(uniqueContactId, mSource); in testMoveUniqueRawContactsStubDisabled()
[all …]
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/
DCea708TextTrackRenderer.java44 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/TV/tuner/src/com/android/tv/tuner/source/
DFileTsStreamer.java71 private StreamProvider mSource; field in FileTsStreamer
154 mSource = new StreamProvider(filepath); in startStream()
155 if (!mSource.isReady()) { in startStream()
158 mEventDetector.start(mSource, FileSourceEventDetector.ALL_PROGRAM_NUMBERS); in startStream()
159 mSource.addPidFilter(TsParser.PAT_PID); in startStream()
160 mSource.addPidFilter(TsParser.ATSC_SI_BASE_PID); in startStream()
162 mSource.addPidFilter(TsParser.DVB_EIT_PID); in startStream()
163 mSource.addPidFilter(TsParser.DVB_SDT_PID); in startStream()
181 mSource = new StreamProvider(channel.getFilepath()); in startStream()
182 if (!mSource.isReady()) { in startStream()
[all …]
/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 …]
/packages/apps/Contacts/src/com/android/contacts/model/account/
DAccountDisplayInfo.java30 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/
DAbstractGoogleSourceResult.kt26 private val mSource: Source constant
32 get() = mSource
54 get() = mSource
66 get() = mSource.defaultIntentAction
68 get() = mSource.intentComponent
91 mSource = source
DGoogleSuggestionProvider.kt37 private var mSource: GoogleSource? = null variable in com.android.quicksearchbox.google.GoogleSuggestionProvider
41 mSource = QsbApplication.get(getContext()).googleSource in onCreate()
76 SuggestionCursorBackedCursor(emptyIfNull(mSource!!.queryExternal(query), mSource, query)) in query()
80 SuggestionCursorBackedCursor(mSource!!.refreshShortcut(shortcutId, extraData)) in query()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/audio/
DMpegTsDefaultAudioTrackRenderer.java103 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/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()
/packages/services/Telecomm/src/com/android/server/telecom/metrics/
DAudioRouteStats.java137 mPulledAtoms.callAudioRouteStats[index[0]].setCallAudioRouteSource(k.mSource); in onAggregate()
205 if (mCur.first.mSource != mCur.first.mDest) { in onLog()
278 final int mSource; field in AudioRouteStats.AudioRouteStatsKey
284 mSource = source; in AudioRouteStatsKey()
289 mSource = source; in AudioRouteStatsKey()
308 return mSource; in getSource()
319 return this.mSource == obj.mSource && this.mDest == obj.mDest in equals()
325 return Objects.hash(mSource, mDest, mIsSuccess, mIsRevert); in hashCode()
330 return "[AudioRouteStatsKey: mSource=" + mSource + ", mDest=" + mDest in toString()
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/netlink/
DRtNetlinkRouteMessage.java74 private IpPrefix mSource; // Source address of a route, for all multicast routes field in RtNetlinkRouteMessage
91 mSource = source; in RtNetlinkRouteMessage()
143 return mSource; in getSource()
227 routeMsg.mSource = new IpPrefix(source, routeMsg.mRtmsg.srcLen); in parse()
291 if (mSource != null) { in pack()
292 final StructNlAttr source = new StructNlAttr(RTA_SRC, mSource.getAddress()); in pack()
330 + (mSource == null ? "" : "source{" + mSource.getAddress().getHostAddress() + "}, ") in toString()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DFetchPackageStorageAsyncLoaderTest.java52 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/modules/Wifi/service/tests/mts/src/android/net/wifi/mts/
DStreamReader.java30 private BufferedReader mSource; field in StreamReader
34 mSource = source; in StreamReader()
50 while ((s = mSource.readLine()) != null) { in run()
58 mSource.close(); in run()
/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/storage/
DStorageAsyncLoaderTest.java69 private StorageStatsSource mSource; field in StorageAsyncLoaderTest
86 mLoader = new StorageAsyncLoader(mContext, mUserManager, "id", mSource, mPackageManager); in setUp()
93 when(mSource.getCacheQuotaBytes(anyString(), anyInt())).thenReturn(DEFAULT_QUOTA); in setUp()
151 when(mSource.getExternalStorageStats(anyString(), eq(UserHandle.SYSTEM))) in testMultipleUsers()
153 when(mSource.getExternalStorageStats(anyString(), eq(new UserHandle(SECONDARY_USER_ID)))) in testMultipleUsers()
182 when(mSource.getStatsForPackage(anyString(), anyString(), any(UserHandle.class))) in testRemovedPackageDoesNotCrash()
220 when(mSource.getStatsForPackage(anyString(), eq(packageName), any(UserHandle.class))) in addPackage()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DPendingSplitSelectInfo.java32 private final StatsLogManager.EventEnum mSource; field in PendingSplitSelectInfo
38 this.mSource = source; in PendingSplitSelectInfo()
50 return mSource; in getSource()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/stats/
DServerAuctionKeyFetchExecutionLoggerImpl.java64 @AdsRelevanceStatusUtils.ServerAuctionKeyFetchSource private int mSource; field in ServerAuctionKeyFetchExecutionLoggerImpl
98 .setSource(mSource) in logServerAuctionKeyFetchCalledStatsFromDatabase()
131 .setSource(mSource) in logServerAuctionKeyFetchCalledStatsFromNetwork()
142 mSource = source; in setSource()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
DLevenshteinDistance.kt28 private val mSource: Array<Token?>? constant
39 val src = mSource in calculate()
81 var sourcePos = mSource!!.size
162 mSource = source
/packages/apps/Settings/src/com/android/settings/applications/
DFetchPackageStorageAsyncLoader.java40 private final StorageStatsSource mSource; field in FetchPackageStorageAsyncLoader
47 mSource = Preconditions.checkNotNull(source); in FetchPackageStorageAsyncLoader()
56 result = mSource.getStatsForPackage(mInfo.volumeUuid, mInfo.packageName, mUser); in loadInBackground()
/packages/apps/Car/Settings/src/com/android/car/settings/storage/
DFetchPackageStorageAsyncLoader.java41 private final StorageStatsSource mSource; field in FetchPackageStorageAsyncLoader
48 mSource = Preconditions.checkNotNull(source); in FetchPackageStorageAsyncLoader()
57 result = mSource.getStatsForPackage(mInfo.volumeUuid, mInfo.packageName, mUser); in loadInBackground()
/packages/modules/Connectivity/framework/src/android/net/
DNattSocketKeepalive.java32 @NonNull private final InetAddress mSource; field in NattSocketKeepalive
45 mSource = source; in NattSocketKeepalive()
83 intervalSec, mCallback, mSource.getHostAddress(), in startImpl()

12