/cts/tests/tests/appcomponentfactory/src/android/app/componentfactory/cts/ |
D | AppComponentFactoryTest.java | 31 private final Context mContext = InstrumentationRegistry.getContext(); field in AppComponentFactoryTest 35 assertTrue(mContext.getApplicationContext() instanceof MyApplication); in testApplication() 40 mContext.startActivity(new Intent() in testActivity() 41 .setComponent(new ComponentName(mContext.getPackageName(), in testActivity() 42 mContext.getPackageName() + ".inject.MyActivity")) in testActivity() 48 mContext.sendBroadcast(new Intent() in testReceiver() 49 .setComponent(new ComponentName(mContext.getPackageName(), in testReceiver() 50 mContext.getPackageName() + ".inject.MyReceiver"))); in testReceiver() 55 mContext.startService(new Intent() in testService() 56 .setComponent(new ComponentName(mContext.getPackageName(), in testService() [all …]
|
/cts/tests/tests/content/src/android/content/cts/ |
D | ContextTest.java | 45 private Context mContext; field in ContextTest 50 mContext = getContext(); in setUp() 51 mContext.setTheme(R.style.Test_Theme); in setUp() 55 String testString = mContext.getString(R.string.context_test_string1); in testGetString() 58 testString = mContext.getString(R.string.context_test_string1, "expected"); in testGetString() 61 testString = mContext.getString(R.string.context_test_string2); in testGetString() 66 testString = mContext.getString(0, "expected"); in testGetString() 73 testString = mContext.getString(0); in testGetString() 80 CharSequence testCharSequence = mContext.getText(R.string.context_test_string2); in testGetText() 85 testCharSequence = mContext.getText(0); in testGetText() [all …]
|
/cts/tests/app/src/android/app/cts/ |
D | ServiceTest.java | 69 private Context mContext; field in ServiceTest 203 mContext.startService(new Intent(service).putExtras(bundle)); in startExpectResult() 206 mContext.startService(new Intent(service).putExtras(bundle)); in startExpectResult() 211 mContext.stopService(service); in startExpectResult() 215 mContext.stopService(service); in startExpectResult() 318 mContext.bindService(service, conn, 0); in bindExpectResult() 319 mContext.startService(service); in bindExpectResult() 323 mContext.bindService(service, conn2, 0); in bindExpectResult() 326 mContext.unbindService(conn2); in bindExpectResult() 330 mContext.unbindService(conn); in bindExpectResult() [all …]
|
D | PendingIntentTest.java | 45 private Context mContext; field in PendingIntentTest 57 mContext = getContext(); in setUp() 143 mIntent.setClass(mContext, PendingIntentStubActivity.class); in testGetActivity() 145 mPendingIntent = PendingIntent.getActivity(mContext, 1, mIntent, in testGetActivity() 147 assertEquals(mContext.getPackageName(), mPendingIntent.getTargetPackage()); in testGetActivity() 157 mPendingIntent = PendingIntent.getActivity(mContext, 1, mIntent, in testGetActivity() 161 mPendingIntent = PendingIntent.getActivity(mContext, 1, mIntent, in testGetActivity() 183 mIntent.setClass(mContext, MockReceiver.class); in testGetBroadcast() 184 mPendingIntent = PendingIntent.getBroadcast(mContext, 1, mIntent, in testGetBroadcast() 194 mPendingIntent = PendingIntent.getBroadcast(mContext, 1, mIntent, in testGetBroadcast() [all …]
|
D | ProgressDialogTest.java | 49 private Context mContext; field in ProgressDialogTest 64 mContext = mActivity; in setUp() 71 new ProgressDialog(mContext); in testProgressDialog1() 76 new ProgressDialog(mContext, R.style.Theme_AlertDialog); in testProgressDialog2() 81 MockProgressDialog pd = new MockProgressDialog(mContext); in testOnStartCreateStop() 96 ProgressDialog.show(mContext, TITLE, MESSAGE); in testShow1() 101 ProgressDialog dialog = ProgressDialog.show(mContext, TITLE, MESSAGE, false); in testShow2() 109 dialog = ProgressDialog.show(mContext, TITLE, MESSAGE, true); in testShow2() 123 ProgressDialog dialog = ProgressDialog.show(mContext, TITLE, MESSAGE, true, false); in testShow3() 137 ProgressDialog dialog = ProgressDialog.show(mContext, TITLE, MESSAGE, true, true); in testShow3() [all …]
|
/cts/hostsidetests/appsecurity/test-apps/ApplicationVisibilityCrossUserApp/src/com/android/cts/applicationvisibility/ |
D | ApplicationVisibilityCrossUserTest.java | 40 private Context mContext; field in ApplicationVisibilityCrossUserTest 44 mContext = InstrumentationRegistry.getContext(); in setUp() 50 final PackageManager pm = mContext.getPackageManager(); in testPackageVisibility_currentUser() 52 pm.getInstalledPackagesAsUser(0, mContext.getUserId()); in testPackageVisibility_currentUser() 59 final PackageManager pm = mContext.getPackageManager(); in testPackageVisibility_anyUserCrossUserGrant() 61 pm.getInstalledPackagesAsUser(MATCH_KNOWN_PACKAGES, mContext.getUserId()); in testPackageVisibility_anyUserCrossUserGrant() 68 final PackageManager pm = mContext.getPackageManager(); in testPackageVisibility_anyUserCrossUserNoGrant() 71 pm.getInstalledPackagesAsUser(MATCH_KNOWN_PACKAGES, mContext.getUserId()); in testPackageVisibility_anyUserCrossUserNoGrant() 79 final PackageManager pm = mContext.getPackageManager(); in testPackageVisibility_otherUserGrant() 88 final PackageManager pm = mContext.getPackageManager(); in testPackageVisibility_otherUserNoGrant() [all …]
|
/cts/hostsidetests/numberblocking/app/src/com/android/cts/numberblocking/hostside/ |
D | NumberBlockingAppTest.java | 27 assertTrue(BlockedNumberContract.canCurrentUserBlockNumbers(mContext)); in testCleanupBlockedNumberAsPrimaryUserSucceeds() 29 assertTrue(mContext.getContentResolver().delete( in testCleanupBlockedNumberAsPrimaryUserSucceeds() 36 assertTrue(BlockedNumberContract.canCurrentUserBlockNumbers(mContext)); in testBlockNumberAsPrimaryUserSucceeds() 42 assertFalse(BlockedNumberContract.canCurrentUserBlockNumbers(mContext)); in testSecondaryUserCannotBlockNumbers() 45 BlockedNumberContract.isBlocked(mContext, mBlockedPhoneNumber); in testSecondaryUserCannotBlockNumbers() 52 assertTrue(BlockedNumberContract.canCurrentUserBlockNumbers(mContext)); in testUnblockNumberAsPrimaryUserSucceeds() 54 assertEquals(1, mContext.getContentResolver().delete( in testUnblockNumberAsPrimaryUserSucceeds() 63 mContext.getContentResolver().insert( in verifyInsertBlockedNumberSucceeds() 65 assertTrue(BlockedNumberContract.isBlocked(mContext, mBlockedPhoneNumber)); in verifyInsertBlockedNumberSucceeds()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | OrientationListenerTest.java | 36 private Context mContext; field in OrientationListenerTest 40 mContext = InstrumentationRegistry.getTargetContext(); in setup() 45 new MockOrientationListener(mContext); in testConstructor() 47 new MockOrientationListener(mContext, SensorManager.SENSOR_DELAY_UI); in testConstructor() 53 MockOrientationListener listener = new MockOrientationListener(mContext); in testRegisterationOfOrientationListener() 61 new MockOrientationListener(mContext).onAccuracyChanged(SensorManager.SENSOR_ACCELEROMETER, in testOnAccuracyChanged() 64 new MockOrientationListener(mContext).onAccuracyChanged(SensorManager.SENSOR_ORIENTATION, in testOnAccuracyChanged() 71 MockOrientationListener listener = new MockOrientationListener(mContext); in testOnSensorChanged() 76 new MockOrientationListener(mContext).onSensorChanged(SensorManager.SENSOR_ACCELEROMETER, in testOnSensorChanged() 82 new MockOrientationListener(mContext).onSensorChanged(SensorManager.SENSOR_MAGNETIC_FIELD, in testOnSensorChanged() [all …]
|
/cts/tests/tests/telecom2/src/android/telecom/cts/ |
D | DefaultDialerOperationsNoPermissionsTest.java | 28 private Context mContext; field in DefaultDialerOperationsNoPermissionsTest 36 mContext = getInstrumentation().getContext(); in setUp() 37 if (!TestUtils.shouldTestTelecom(mContext)) { in setUp() 40 TestUtils.PACKAGE = mContext.getPackageName(); in setUp() 48 mTelecomManager = (TelecomManager) mContext.getSystemService(Context.TELECOM_SERVICE); in setUp() 62 if (!TestUtils.shouldTestTelecom(mContext)) { in testShowInCallScreenPermissions() 74 if (!TestUtils.shouldTestTelecom(mContext)) { in testGetCallCapableAccountsPermissions() 86 if (!TestUtils.shouldTestTelecom(mContext)) { in testGetDefaultOutgoingPhoneAccount() 98 if (!TestUtils.shouldTestTelecom(mContext)) { in testGetLine1Number() 110 if (!TestUtils.shouldTestTelecom(mContext)) { in testGetVoicemailNumber() [all …]
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | ViewSwitcherTest.java | 48 private Context mContext; field in ViewSwitcherTest 52 mContext = InstrumentationRegistry.getTargetContext(); in setup() 57 new ViewSwitcher(mContext); in testConstructor() 59 new ViewSwitcher(mContext, null); in testConstructor() 61 XmlPullParser parser = mContext.getResources().getXml(R.layout.viewswitcher_layout); in testConstructor() 63 new ViewSwitcher(mContext, attrs); in testConstructor() 68 final ViewSwitcher viewSwitcher = new ViewSwitcher(mContext); in testSetFactory() 77 final ViewSwitcher viewSwitcher = new ViewSwitcher(mContext); in testReset() 79 ListView lv1 = new ListView(mContext); in testReset() 80 ListView lv2 = new ListView(mContext); in testReset() [all …]
|
D | ZoomControlsTest.java | 41 private Context mContext; field in ZoomControlsTest 45 mContext = InstrumentationRegistry.getTargetContext(); in setup() 51 new ZoomControls(mContext); in testConstructor() 53 new ZoomControls(mContext, null); in testConstructor() 59 ZoomControls zoomControls = new ZoomControls(mContext); in testSetOnZoomInClickListener() 72 ZoomControls zoomControls = new ZoomControls(mContext); in testSetOnZoomOutClickListener() 85 ZoomControls zoomControls = new ZoomControls(mContext); in testSetZoomSpeed() 95 final ZoomControls zoomControls = new ZoomControls(mContext); in testShowAndHide() 108 ZoomControls zoomControls = new ZoomControls(mContext); in testSetIsZoomInEnabled() 116 ZoomControls zoomControls = new ZoomControls(mContext); in testSetIsZoomOutEnabled() [all …]
|
D | CursorAdapterTest.java | 77 private Context mContext; field in CursorAdapterTest 81 mContext = InstrumentationRegistry.getTargetContext(); in setup() 82 File dbDir = mContext.getDir("tests", Context.MODE_PRIVATE); in setup() 95 final LayoutInflater inflater = LayoutInflater.from(mContext); in setup() 113 new MockCursorAdapter(mContext, mCursor); in testConstructor() 117 new MockCursorAdapter(mContext, mCursor, true); in testConstructor() 134 cursorAdapter.init(mContext, null, false); in testInit() 135 assertSame(mContext, cursorAdapter.getContext()); in testInit() 142 cursorAdapter.init(mContext, null, true); in testInit() 143 assertSame(mContext, cursorAdapter.getContext()); in testInit() [all …]
|
/cts/hostsidetests/incident/apps/errorsapp/src/com/android/server/cts/errors/ |
D | ErrorsTests.java | 52 private Context mContext; field in ErrorsTests 56 mContext = InstrumentationRegistry.getTargetContext(); in setUp() 57 mDropbox = (DropBoxManager) mContext.getSystemService(Context.DROPBOX_SERVICE); in setUp() 66 registerReceiver(mContext, mResultsReceivedSignal, CRASH_TAG, in testException() 67 mContext.getPackageName() + ":TestProcess", in testException() 70 intent.setClass(mContext, ExceptionActivity.class); in testException() 72 mContext.startActivity(intent); in testException() 81 registerReceiver(mContext, mResultsReceivedSignal, ANR_TAG, in testANR() 82 mContext.getPackageName() + ":TestProcess", in testANR() 85 intent.setClass(mContext, ANRActivity.class); in testANR() [all …]
|
/cts/tests/tests/text/src/android/text/style/cts/ |
D | ImageSpanTest.java | 44 private Context mContext; field in ImageSpanTest 48 mContext = InstrumentationRegistry.getTargetContext(); in setup() 62 new ImageSpan(mContext, b); in testConstructor() 63 new ImageSpan(mContext, b, DynamicDrawableSpan.ALIGN_BOTTOM); in testConstructor() 64 new ImageSpan(mContext, b, DynamicDrawableSpan.ALIGN_BASELINE); in testConstructor() 66 Drawable d = mContext.getResources().getDrawable(R.drawable.pass); in testConstructor() 75 new ImageSpan(mContext, Uri.parse("content://user/a/b")); in testConstructor() 76 new ImageSpan(mContext, Uri.parse("content://user/a/b"), in testConstructor() 78 new ImageSpan(mContext, Uri.parse("content://user/a/b"), in testConstructor() 81 new ImageSpan(mContext, R.drawable.pass); in testConstructor() [all …]
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | LockTaskHostDrivenTest.java | 52 private Context mContext; field in LockTaskHostDrivenTest 58 mContext = InstrumentationRegistry.getContext(); in setUp() 59 mDevicePolicyManager = mContext.getSystemService(DevicePolicyManager.class); in setUp() 60 mActivityManager = mContext.getSystemService(ActivityManager.class); in setUp() 96 BasicAdminReceiver.getComponentName(mContext), in clearDefaultHomeIntentReceiver() 97 mContext.getPackageName()); in clearDefaultHomeIntentReceiver() 98 mDevicePolicyManager.setLockTaskPackages(BasicAdminReceiver.getComponentName(mContext), in clearDefaultHomeIntentReceiver() 114 Intent intent = new Intent(mContext, LockTaskUtilityActivityIfWhitelisted.class); in launchLockTaskActivity() 117 mContext.startActivity(intent); in launchLockTaskActivity() 121 mDevicePolicyManager.setLockTaskPackages(BasicAdminReceiver.getComponentName(mContext), in setDefaultHomeIntentReceiver() [all …]
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | DefaultDialerOperationsTest.java | 36 private Context mContext; field in DefaultDialerOperationsTest 45 mContext = getInstrumentation().getContext(); in setUp() 47 if (!TestUtils.shouldTestTelecom(mContext)) { in setUp() 57 mTelecomManager = (TelecomManager) mContext.getSystemService(Context.TELECOM_SERVICE); in setUp() 75 if (!TestUtils.shouldTestTelecom(mContext)) { in testGetDefaultDialerPackage() 84 if (!TestUtils.shouldTestTelecom(mContext)) { in testVoicemailReadWritePermissions() 88 mContext.getContentResolver().query(Voicemails.CONTENT_URI, null, null, null, null); in testVoicemailReadWritePermissions() 94 mContext.getContentResolver().delete(Voicemails.CONTENT_URI, in testVoicemailReadWritePermissions() 101 mContext.getContentResolver().update( in testVoicemailReadWritePermissions() 112 mContext.getContentResolver().query(Voicemails.CONTENT_URI, null, null, null, null); in testVoicemailReadWritePermissions() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/p2p/testcase/ |
D | TestCase.java | 49 protected Context mContext; field in TestCase 69 mContext = context; in TestCase() 89 mListener.onTestFailed(mContext.getString(R.string.p2p_setup_error)); in start() 102 mContext.getString(R.string.p2p_unexpected_error)); in start() 145 mP2pMgr = (WifiP2pManager) mContext.getSystemService(Context.WIFI_P2P_SERVICE); in setUp() 146 mWifiMgr = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE); in setUp() 147 mChannel = mP2pMgr.initialize(mContext, mContext.getMainLooper(), null); in setUp() 148 mSubChannel = mP2pMgr.initialize(mContext, mContext.getMainLooper(), null); in setUp() 172 mListener.onTestMsgReceived(mContext.getString(id)); in notifyTestMsg() 181 return mContext.getString(R.string.p2p_unexpected_error); in getReason()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | RingtoneManagerTest.java | 45 private Context mContext; field in RingtoneManagerTest 60 mContext = mInstrumentation.getContext(); in setUp() 61 Utils.enableAppOps(mContext.getPackageName(), "android:write_settings", mInstrumentation); in setUp() 63 mAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); in setUp() 66 mDefaultUri = RingtoneManager.getActualDefaultRingtoneUri(mContext, in setUp() 73 mContext.getPackageName(), getInstrumentation(), true); in setUp() 79 mContext.getPackageName(), getInstrumentation(), false); in setUp() 89 mContext.getPackageName(), getInstrumentation(), true); in tearDown() 97 mContext.getPackageName(), getInstrumentation(), false); in tearDown() 100 RingtoneManager.setActualDefaultRingtoneUri(mContext, RingtoneManager.TYPE_RINGTONE, in tearDown() [all …]
|
D | RingtoneTest.java | 37 private Context mContext; field in RingtoneTest 49 mContext = getInstrumentation().getContext(); in setUp() 50 mAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); in setUp() 51 mRingtone = RingtoneManager.getRingtone(mContext, Settings.System.DEFAULT_RINGTONE_URI); in setUp() 69 mContext.getPackageName(), getInstrumentation(), true); in setUp() 77 mContext.getPackageName(), getInstrumentation(), false); in setUp() 81 mDefaultRingUri = RingtoneManager.getActualDefaultRingtoneUri(mContext, in setUp() 107 mContext.getPackageName(), getInstrumentation(), true); in tearDown() 113 mContext.getPackageName(), getInstrumentation(), false); in tearDown() 116 RingtoneManager.setActualDefaultRingtoneUri(mContext, RingtoneManager.TYPE_RINGTONE, in tearDown() [all …]
|
D | SessionToken2Test.java | 42 private Context mContext; field in SessionToken2Test 46 mContext = InstrumentationRegistry.getTargetContext(); in setUp() 51 SessionToken2 token = new SessionToken2(mContext, mContext.getPackageName(), in testConstructor_sessionService() 54 assertEquals(mContext.getPackageName(), token.getPackageName()); in testConstructor_sessionService() 61 SessionToken2 token = new SessionToken2(mContext, mContext.getPackageName(), in testConstructor_libraryService() 64 assertEquals(mContext.getPackageName(), token.getPackageName()); in testConstructor_libraryService()
|
/cts/tests/ProcessTest/src/com/android/cts/process/ |
D | ProcessTest.java | 38 String testApp = mContext.getPackageName(); in testUid() 39 int uid1 = mContext.getPackageManager().getApplicationInfo(enableApp, in testUid() 41 int uid2 = mContext.getPackageManager().getApplicationInfo(disableApp, in testUid() 43 int uid3 = mContext.getPackageManager().getApplicationInfo(testApp, in testUid() 50 ActivityManager am = (ActivityManager) mContext.getSystemService(Context.ACTIVITY_SERVICE); in testPid() 51 String shareProcessName = mContext.getPackageName() + ":shareProcess"; in testPid() 52 String noShareProcessName = mContext.getPackageName() + ":noShareProcess"; in testPid() 57 sharePidIntent.setClass(mContext, SharePidActivity.class); in testPid() 59 mContext.startActivity(sharePidIntent); in testPid() 65 sharePidStubIntent.setClass(mContext, SharePidSubActivity.class); in testPid() [all …]
|
/cts/hostsidetests/devicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/ |
D | ManagementTest.java | 35 mContext.getSystemService(Context.DEVICE_POLICY_SERVICE); in setUp() 61 UserHandle otherProfile = Utils.getOtherProfile(mContext); in testOtherProfilesEqualsBindTargetUsers() 65 AdminReceiver.getComponentName(mContext)); in testOtherProfilesEqualsBindTargetUsers() 85 UserHandle profileUserHandle = Utils.getOtherProfile(mContext); in testCanRemoveManagedProfile() 87 assertTrue(mDevicePolicyManager.removeUser(AdminReceiver.getComponentName(mContext), in testCanRemoveManagedProfile() 92 ComponentName admin = AdminReceiver.getComponentName(mContext); in testCreateSecondaryUser() 99 AdminReceiver.getComponentName(mContext))); in testNoBindDeviceAdminTargetUsers() 103 UserHandle profileUserHandle = Utils.getOtherProfile(mContext); in testCannotStartManagedProfileInBackground() 106 mDevicePolicyManager.startUserInBackground(AdminReceiver.getComponentName(mContext), in testCannotStartManagedProfileInBackground() 111 UserHandle profileUserHandle = Utils.getOtherProfile(mContext); in testCannotStopManagedProfile() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifiaware/testcase/ |
D | DataPathOutOfBandTestCase.java | 121 setFailureReason(mContext.getString(R.string.aware_status_attach_timeout)); in executeTest() 125 setFailureReason(mContext.getString(R.string.aware_status_attach_fail)); in executeTest() 131 setFailureReason(mContext.getString(R.string.aware_status_attach_fail)); in executeTest() 135 mListener.onTestMsgReceived(mContext.getString(R.string.aware_status_attached)); in executeTest() 141 setFailureReason(mContext.getString(R.string.aware_status_identity_fail)); in executeTest() 200 setFailureReason(mContext.getString(R.string.aware_status_publish_timeout)); in executeTestResponder() 204 setFailureReason(mContext.getString(R.string.aware_status_publish_failed)); in executeTestResponder() 211 setFailureReason(mContext.getString(R.string.aware_status_publish_null_session)); in executeTestResponder() 215 mListener.onTestMsgReceived(mContext.getString(R.string.aware_status_publish_started)); in executeTestResponder() 222 setFailureReason(mContext.getString(R.string.aware_status_receive_timeout)); in executeTestResponder() [all …]
|
/cts/tests/pdf/src/android/graphics/pdf/cts/ |
D | PdfRendererTest.java | 67 private Context mContext; field in PdfRendererTest 71 mContext = InstrumentationRegistry.getTargetContext(); in setup() 82 verifyException(() -> createRenderer(R.raw.testimage, mContext), IOException.class); in constructRendererFromNonPDF() 87 verifyException(() -> createRenderer(PROTECTED_PDF, mContext), SecurityException.class); in constructRendererFromProtectedPDF() 93 PdfRenderer firstRenderer = createRenderer(A4_PORTRAIT, mContext); in rendererRecoversAfterFailure() 95 verifyException(() -> createRenderer(PROTECTED_PDF, mContext), SecurityException.class); in rendererRecoversAfterFailure() 98 PdfRenderer renderer = createRenderer(TWO_PAGES, mContext); in rendererRecoversAfterFailure() 106 PdfRenderer renderer = createRenderer(A4_PORTRAIT, mContext); in useRendererAfterClose() 117 PdfRenderer renderer = createRenderer(A4_PORTRAIT, mContext); in usePageAfterClose() 138 PdfRenderer renderer = createRenderer(A4_PORTRAIT, mContext); in closeWithOpenPage() [all …]
|
/cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/ |
D | ChangeDefaultUris.java | 39 FileCopyHelper copier = new FileCopyHelper(mContext); in testChangeDefaultUris() 53 mContext.getContentResolver() in testChangeDefaultUris() 56 RingtoneManager.setActualDefaultRingtoneUri(mContext, RingtoneManager.TYPE_RINGTONE, uri); in testChangeDefaultUris() 57 RingtoneManager.setActualDefaultRingtoneUri(mContext, RingtoneManager.TYPE_ALARM, uri); in testChangeDefaultUris() 59 mContext, RingtoneManager.TYPE_NOTIFICATION, uri); in testChangeDefaultUris() 64 mContext.getContentResolver() in testResetDefaultUris() 70 Uri uri = RingtoneManager.getValidRingtoneUri(mContext); in testResetDefaultUris() 71 RingtoneManager.setActualDefaultRingtoneUri(mContext, RingtoneManager.TYPE_RINGTONE, uri); in testResetDefaultUris() 72 RingtoneManager.setActualDefaultRingtoneUri(mContext, RingtoneManager.TYPE_ALARM, uri); in testResetDefaultUris() 74 mContext, RingtoneManager.TYPE_NOTIFICATION, uri); in testResetDefaultUris()
|