Home
last modified time | relevance | path

Searched refs:cr (Results 1 – 25 of 29) sorted by relevance

12

/cts/tests/tests/provider/src/android/provider/cts/settings/
DSettings_SecureTest.java56 private ContentResolver cr; field in Settings_SecureTest
60 cr = InstrumentationRegistry.getInstrumentation().getTargetContext().getContentResolver(); in setUp()
61 assertNotNull(cr); in setUp()
67 assertNull(Secure.getString(cr, NO_SUCH_SETTING)); in assertSettingsForTests()
69 String value = Secure.getString(cr, STRING_VALUE_SETTING); in assertSettingsForTests()
80 assertEquals(10, Secure.getInt(cr, "int", 10)); in testGetDefaultValues()
81 assertEquals(20, Secure.getLong(cr, "long", 20)); in testGetDefaultValues()
82 assertEquals(30.0f, Secure.getFloat(cr, "float", 30), 0.001); in testGetDefaultValues()
87 assertNull(Secure.getString(cr, NO_SUCH_SETTING)); in testGetPutInt()
90 Secure.putInt(cr, NO_SUCH_SETTING, -1); in testGetPutInt()
[all …]
DSettingsTest.java98 ContentResolver cr = getContext().getContentResolver(); in testSystemTable() local
100 cr.acquireContentProviderClient(Settings.System.CONTENT_URI); in testSystemTable()
149 ContentResolver cr = getContext().getContentResolver(); in testSecureTable() local
151 cr.acquireContentProviderClient(Settings.Secure.CONTENT_URI); in testSecureTable()
173 ContentResolver cr = getContext().getContentResolver(); in tryBadTableAccess() local
181 cr.insert(uri, cv); in tryBadTableAccess()
189 cr.update(uri, cv, NAME_EQ_PLACEHOLDER, new String[]{name}); in tryBadTableAccess()
197 cr.query(uri, SELECT_VALUE, NAME_EQ_PLACEHOLDER, in tryBadTableAccess()
207 cr.delete(uri, NAME_EQ_PLACEHOLDER, new String[]{name}); in tryBadTableAccess()
215 String mimeType = cr.getType(uri); in tryBadTableAccess()
[all …]
/cts/tests/tests/systemui/src/android/systemui/cts/
DColorUtils.java48 final float cr = (V - r) / vtemp; in hue() local
55 H = 2 + cr - cb; in hue()
57 H = 4 + cg - cr; in hue()
/cts/tests/accessibility/common/src/android/accessibility/cts/common/
DServiceControlUtils.java33 public static String getEnabledServices(ContentResolver cr) { in getEnabledServices() argument
34 return Settings.Secure.getString(cr, Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES); in getEnabledServices()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/perfetto/
DPerfettoTests.java296 CommandResult cr = getDevice().executeShellV2Command(cmd); in runTriggerPerfetto() local
297 if (cr.getStatus() != CommandStatus.SUCCESS) { in runTriggerPerfetto()
301 cmd, cr.getStdout(), cr.getStderr())); in runTriggerPerfetto()
311 CommandResult cr = getDevice().executeShellV2Command(cmd); in resetPerfettoGuardrails() local
312 if (cr.getStatus() != CommandStatus.SUCCESS) { in resetPerfettoGuardrails()
316 cmd, cr.getStdout(), cr.getStderr())); in resetPerfettoGuardrails()
/cts/tests/tests/provider/src/android/provider/cts/
DSearchRecentSuggestionsTest.java104 ContentResolver cr = mProviderContext.getContentResolver(); in testSearchRecentSuggestions() local
105 ((MySearchRecentSuggestions) srs).truncateHistory(cr, 2); in testSearchRecentSuggestions()
217 protected void truncateHistory(ContentResolver cr, int maxEntries) { in truncateHistory() argument
218 super.truncateHistory(cr, maxEntries); in truncateHistory()
/cts/apps/CameraITS/tests/scene4/
Dtest_multi_camera_alignment.py225 cr = cap['metadata']['android.scaler.cropRegion']
226 cr_w = cr['right'] - cr['left']
227 cr_h = cr['bottom'] - cr['top']
242 circle['x'] = cr['left'] + yuv_x + circle['x'] / zoom_ratio
243 circle['y'] = cr['top'] + yuv_y + circle['y'] / zoom_ratio
/cts/hostsidetests/devicepolicy/app/SimpleApp/src/com/android/cts/launcherapps/simpleapp/
DSimpleService4.java141 ContentResolver cr = getContentResolver(); in doAction() local
142 mProviderClient = cr.acquireContentProviderClient( in doAction()
/cts/tests/tests/networksecurityconfig/networksecurityconfig-resourcesrc/res/raw/
Dpem_multiple.pem8 L4xwr+cr/SRntVXMtAH6yCNOXhvxhGLISkyGNvVlvlj+yJ09kZHme/+YSDkJQ1Qk
/cts/tests/tests/telecom/src/android/telecom/cts/
DOutgoingCallTest.java72 ContentResolver cr = getInstrumentation().getTargetContext().getContentResolver(); in setUp() local
78 mPersonRecord = cr.insert(ContactsContract.RawContacts.CONTENT_URI, values); in setUp()
84 cr.insert(Data.CONTENT_URI, values); in setUp()
91 mPhoneRecord = cr.insert(Data.CONTENT_URI, values); in setUp()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/settings/
DSettingsSession.java71 T get(ContentResolver cr, String key) throws SettingNotFoundException; in get() argument
76 void set(ContentResolver cr, String key, T value); in set() argument
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DPhoneNumberUtilsTest.java190 ContentResolver cr = getContext().getContentResolver(); in testGetMethods() local
197 personRecord = cr.insert(People.CONTENT_URI, values); in testGetMethods()
202 phoneRecord = cr.insert(phoneUri, values); in testGetMethods()
209 cr.delete(personRecord, null, null); in testGetMethods()
212 cr.delete(phoneRecord, null, null); in testGetMethods()
/cts/tests/tests/tv/tuner/src/android/media/tv/tuner/cts/
DTunerFrontendTest.java327 DvbsCodeRate cr = settings.getCodeRate(); in testDvbsFrontendSettingsWithIntFrequency() local
328 assertNotNull(cr); in testDvbsFrontendSettingsWithIntFrequency()
329 assertEquals(FrontendSettings.FEC_9_10, cr.getInnerFec()); in testDvbsFrontendSettingsWithIntFrequency()
330 assertEquals(true, cr.isLinear()); in testDvbsFrontendSettingsWithIntFrequency()
331 assertEquals(false, cr.isShortFrameEnabled()); in testDvbsFrontendSettingsWithIntFrequency()
332 assertEquals(55, cr.getBitsPer1000Symbol()); in testDvbsFrontendSettingsWithIntFrequency()
847 DvbsCodeRate cr = settings.getCodeRate(); in testDvbsFrontendSettingsWithLongFrequency() local
848 assertNotNull(cr); in testDvbsFrontendSettingsWithLongFrequency()
849 assertEquals(FrontendSettings.FEC_9_10, cr.getInnerFec()); in testDvbsFrontendSettingsWithLongFrequency()
850 assertEquals(true, cr.isLinear()); in testDvbsFrontendSettingsWithLongFrequency()
[all …]
/cts/tests/tests/tv/src/android/media/tv/tuner/cts/
DTunerFrontendTest.java327 DvbsCodeRate cr = settings.getCodeRate(); in testDvbsFrontendSettingsWithIntFrequency() local
328 assertNotNull(cr); in testDvbsFrontendSettingsWithIntFrequency()
329 assertEquals(FrontendSettings.FEC_9_10, cr.getInnerFec()); in testDvbsFrontendSettingsWithIntFrequency()
330 assertEquals(true, cr.isLinear()); in testDvbsFrontendSettingsWithIntFrequency()
331 assertEquals(false, cr.isShortFrameEnabled()); in testDvbsFrontendSettingsWithIntFrequency()
332 assertEquals(55, cr.getBitsPer1000Symbol()); in testDvbsFrontendSettingsWithIntFrequency()
847 DvbsCodeRate cr = settings.getCodeRate(); in testDvbsFrontendSettingsWithLongFrequency() local
848 assertNotNull(cr); in testDvbsFrontendSettingsWithLongFrequency()
849 assertEquals(FrontendSettings.FEC_9_10, cr.getInnerFec()); in testDvbsFrontendSettingsWithLongFrequency()
850 assertEquals(true, cr.isLinear()); in testDvbsFrontendSettingsWithLongFrequency()
[all …]
/cts/tests/tests/content/src/android/content/cts/
DContentResolverTest.java1232 (cr) -> cr.registerContentObserverAsUser(TABLE1_URI, true, mco, mContext.getUser()) in testRegisterContentObserverAsUser()
1260 (cr) -> cr.registerContentObserverAsUser(TABLE1_URI, true, mco, UserHandle.ALL) in testRegisterContentObserverForAllUsers()
1285 (cr) -> cr.registerContentObserverAsUser(null, false, mco, UserHandle.ALL) in testRegisterContentObserverForAllUsers()
1298 (cr) -> cr.registerContentObserverAsUser(TABLE1_URI, false, null, in testRegisterContentObserverForAllUsers()
1369 (cr) -> cr.registerContentObserverAsUser(LEVEL2_URI, false, mco1, UserHandle.ALL) in testRegisterContentObserverForAllUsersDescendantBehavior()
1373 (cr) -> cr.registerContentObserverAsUser(LEVEL2_URI, true, mco2, UserHandle.ALL) in testRegisterContentObserverForAllUsersDescendantBehavior()
DAsyncQueryHandlerTest.java320 public MockAsyncQueryHandler(ContentResolver cr) { in MockAsyncQueryHandler() argument
321 super(cr); in MockAsyncQueryHandler()
/cts/tests/tests/uiautomation/src/android/app/uiautomation/cts/
DUiAutomationTest.java467 ContentResolver cr = context.getContentResolver(); in enableAccessibilityService() local
468 String enabledServices = Settings.Secure.getString(cr, in enableAccessibilityService()
470 Settings.Secure.putString(cr, Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES, in enableAccessibilityService()
472 Settings.Secure.putInt(cr, Settings.Secure.ACCESSIBILITY_ENABLED, 1); in enableAccessibilityService()
/cts/tests/app/app/src/android/app/stubs/
DLocalActivityManagerTestHelper.java46 public static void setResult(CTSResult cr) { in setResult() argument
47 sResult = cr; in setResult()
/cts/tools/cts-api-coverage/src/com/android/cts/apimap/
DApiMap.java219 ClassReader cr = new ClassReader(bis); in scanJarFile() local
224 cr.accept(visitor, 0); in scanJarFile()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DReportExporter.java192 for (ICaseResult cr : module.getResults()) { in containsScreenshotMetadata()
193 for (ITestResult r : cr.getResults()) { in containsScreenshotMetadata()
/cts/hostsidetests/scopedstorage/general/src/android/scopedstorage/cts/general/
DScopedStorageDeviceTest.java1708 final ContentResolver cr = getContentResolver(); in testRenameAndReplaceFile() local
1712 final Uri uriVideoFile1 = MediaStore.scanFile(cr, videoFile1); in testRenameAndReplaceFile()
1713 final Uri uriVideoFile2 = MediaStore.scanFile(cr, videoFile2); in testRenameAndReplaceFile()
1719 try (ParcelFileDescriptor pfd = cr.openFileDescriptor(uriVideoFile2, "rw")) { in testRenameAndReplaceFile()
1726 cr.openFileDescriptor(uriVideoFile1, "rw"); in testRenameAndReplaceFile()
2495 final ContentResolver cr = getContentResolver(); in testCreateCanRestoreDeletedRowId() local
2501 final Uri uriOfOldFile = MediaStore.scanFile(cr, imageFile); in testCreateCanRestoreDeletedRowId()
2508 try (ParcelFileDescriptor pfd = cr.openFileDescriptor(uriOfOldFile, "rw")) { in testCreateCanRestoreDeletedRowId()
2534 final ContentResolver cr = getContentResolver(); in testRenameCanRestoreDeletedRowId() local
2538 final Uri oldUri = MediaStore.scanFile(cr, imageFile); in testRenameCanRestoreDeletedRowId()
[all …]
/cts/hostsidetests/scopedstorage/legacy/src/android/scopedstorage/cts/legacy/
DLegacyStorageTest.java629 final ContentResolver cr = getContentResolver(); in testCreateAndRenameDoesntLeaveStaleDBRow_hasRW() local
660 final ContentResolver cr = getContentResolver(); in testRenameDoesntInvalidateUri_hasRW() local
680 final Uri scannedUri = MediaStore.scanFile(cr, imageFile); in testRenameDoesntInvalidateUri_hasRW()
703 final ContentResolver cr = getContentResolver(); in testCanRenameAFileWithNoDBRow_hasRW() local
712 MediaStore.scanFile(cr, directoryNoMedia); in testCanRenameAFileWithNoDBRow_hasRW()
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/
DTestUtils.java854 public static int getFileRowIdFromDatabase(ContentResolver cr, @NonNull File file) { in getFileRowIdFromDatabase() argument
856 try (Cursor c = queryFile(cr, file, MediaStore.MediaColumns._ID)) { in getFileRowIdFromDatabase()
2077 public static Cursor queryFile(ContentResolver cr, @NonNull File file, String... projection) { in queryFile() argument
2078 return queryFile(cr, MediaStore.Files.getContentUri(sStorageVolumeName), in queryFile()
2089 private static Cursor queryFile(ContentResolver cr, @NonNull Uri uri, @NonNull File file, in queryFile() argument
2104 final Cursor c = cr.query(uri, projection, queryArgs, null); in queryFile()
/cts/tests/autofillservice/src/android/autofillservice/cts/testcore/
DHelper.java1700 final ContentResolver cr = context.getContentResolver(); in mockSwitchInputMethod() local
1701 final int subtype = Settings.Secure.getInt(cr, SELECTED_INPUT_METHOD_SUBTYPE); in mockSwitchInputMethod()
1702 Settings.Secure.putInt(cr, SELECTED_INPUT_METHOD_SUBTYPE, subtype); in mockSwitchInputMethod()
/cts/tests/camera/src/android/hardware/camera2/cts/
DImageReaderTest.java1471 float cr = crRow[crPix] & 0xFF; in convertPixelYuvToRgba() local
1474 int r = (int) Math.max(0.0f, Math.min(COLOR_RANGE, y + 1.402f * (cr - 128))); in convertPixelYuvToRgba()
1476 Math.min(COLOR_RANGE, y - 0.34414f * (cb - 128) - 0.71414f * (cr - 128))); in convertPixelYuvToRgba()

12