Searched refs:mIsolatedContext (Results 1 – 4 of 4) sorted by relevance
/packages/providers/MediaProvider/tests/src/com/android/providers/media/ |
D | ResolvePlaylistTest.java | 50 private Context mIsolatedContext; field in ResolvePlaylistTest 67 mIsolatedContext = new IsolatedContext(context, "modern", /*asFuseThread*/ false); in setUp() 68 mIsolatedResolver = mIsolatedContext.getContentResolver(); in setUp() 70 mModern = new ModernMediaScanner(mIsolatedContext); in setUp() 112 try (Cursor cursor = mIsolatedContext.getContentResolver().query( in doPlaylist() 191 try (Cursor cursor = mIsolatedContext.getContentResolver().query( in testBrokenPlaylistM3u() 224 try (Cursor cursor = mIsolatedContext.getContentResolver().query(playlistUri, in testPlaylistDeletion() 230 final int count = mIsolatedContext.getContentResolver().delete( in testPlaylistDeletion() 258 try (Cursor cursor = mIsolatedContext.getContentResolver().query(playlistUri, in testPlaylistMembersDeletion() 264 final int count = mIsolatedContext.getContentResolver().delete( in testPlaylistMembersDeletion()
|
D | MediaGrantsTest.java | 57 private Context mIsolatedContext; field in MediaGrantsTest 92 mIsolatedContext = new IsolatedContext(mContext, "modern", /*asFuseThread*/ false); in setUp() 93 mIsolatedResolver = mIsolatedContext.getContentResolver(); in setUp() 94 mExternalDatabase = ((IsolatedContext) mIsolatedContext).getExternalDatabase(); in setUp() 523 MediaStore.grantMediaReadForPackage(mIsolatedContext, Process.myUid(), uris); in mediaProviderUidCanAddMediaGrants() 536 MediaStore.grantMediaReadForPackage(mIsolatedContext, Process.myUid(), uris); in test_generationGrantedExistsAndIsIncreasing_success() 540 MediaStore.grantMediaReadForPackage(mIsolatedContext, Process.myUid(), uris2); in test_generationGrantedExistsAndIsIncreasing_success()
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/viewmodel/ |
D | BannerControllerTest.java | 55 private IsolatedContext mIsolatedContext; field in BannerControllerTest 64 mIsolatedContext = new IsolatedContext(sTargetContext, /* tag= */ "databases", in setUp() 66 mContentResolver = mIsolatedContext.getContentResolver(); in setUp() 71 mIsolatedContext, mIsolatedContext.getUser(), configStore); in setUp() 165 mIsolatedContext.resetFlakyCloudProviderToNotFlakeInTheNextRequest(); in testCloudProviderSlowQueryFallback() 181 mIsolatedContext.setFlakyCloudProviderToFlakeInTheNextRequest(); in testCloudProviderSlowQueryFallback()
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/scan/ |
D | ModernMediaScannerTest.java | 107 private Context mIsolatedContext; field in ModernMediaScannerTest 124 mIsolatedContext = new IsolatedContext(context, "modern", /*asFuseThread*/ false); in setUp() 125 mIsolatedResolver = mIsolatedContext.getContentResolver(); in setUp() 127 mModern = new ModernMediaScanner(mIsolatedContext); in setUp()
|