Home
last modified time | relevance | path

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

1234

/cts/tests/tests/provider/src/android/provider/cts/
DSettings_SecureTest.java49 private ContentResolver cr; field in Settings_SecureTest
53 cr = InstrumentationRegistry.getTargetContext().getContentResolver(); in setUp()
54 assertNotNull(cr); in setUp()
60 assertNull(Secure.getString(cr, NO_SUCH_SETTING)); in assertSettingsForTests()
62 String value = Secure.getString(cr, STRING_VALUE_SETTING); in assertSettingsForTests()
73 assertEquals(10, Secure.getInt(cr, "int", 10)); in testGetDefaultValues()
74 assertEquals(20, Secure.getLong(cr, "long", 20)); in testGetDefaultValues()
75 assertEquals(30.0f, Secure.getFloat(cr, "float", 30), 0.001); in testGetDefaultValues()
80 assertNull(Secure.getString(cr, NO_SUCH_SETTING)); in testGetPutInt()
83 Secure.putInt(cr, NO_SUCH_SETTING, -1); in testGetPutInt()
[all …]
DSettings_SystemTest.java66 final ContentResolver cr = InstrumentationRegistry.getTargetContext().getContentResolver(); in testSystemSettings() local
75 Cursor c = cr.query(System.CONTENT_URI, null, null, null, null); in testSystemSettings()
79 System.getConfiguration(cr, cfg); in testSystemSettings()
89 assertTrue(System.putInt(cr, INT_FIELD, 10)); in testSystemSettings()
90 assertTrue(System.putLong(cr, LONG_FIELD, 20l)); in testSystemSettings()
91 assertTrue(System.putFloat(cr, FLOAT_FIELD, 30.0f)); in testSystemSettings()
92 assertTrue(System.putString(cr, STRING_FIELD, stringValue)); in testSystemSettings()
94 c = cr.query(System.CONTENT_URI, null, null, null, null); in testSystemSettings()
99 assertEquals(10, System.getInt(cr, INT_FIELD)); in testSystemSettings()
100 assertEquals(20l, System.getLong(cr, LONG_FIELD)); in testSystemSettings()
[all …]
DSettings_NameValueTableTest.java58 final ContentResolver cr = InstrumentationRegistry.getTargetContext().getContentResolver(); in testPutString() local
65 Cursor c = cr.query(uri, null, null, null, null); in testPutString()
70 MyNameValueTable.putString(cr, uri, name, value); in testPutString()
71 c = cr.query(uri, null, null, null, null); in testPutString()
77 c = cr.query(uri, null, selection, null, null); in testPutString()
DSettingsTest.java89 ContentResolver cr = getContext().getContentResolver(); in testSystemTable() local
91 cr.acquireContentProviderClient(Settings.System.CONTENT_URI); in testSystemTable()
140 ContentResolver cr = getContext().getContentResolver(); in testSecureTable() local
142 cr.acquireContentProviderClient(Settings.Secure.CONTENT_URI); in testSecureTable()
164 ContentResolver cr = getContext().getContentResolver(); in tryBadTableAccess() local
172 cr.insert(uri, cv); in tryBadTableAccess()
180 cr.update(uri, cv, NAME_EQ_PLACEHOLDER, new String[]{name}); in tryBadTableAccess()
188 cr.query(uri, SELECT_VALUE, NAME_EQ_PLACEHOLDER, in tryBadTableAccess()
198 cr.delete(uri, NAME_EQ_PLACEHOLDER, new String[]{name}); in tryBadTableAccess()
206 String mimeType = cr.getType(uri); in tryBadTableAccess()
[all …]
DSearchRecentSuggestionsTest.java94 ContentResolver cr = mProviderContext.getContentResolver(); in testSearchRecentSuggestions() local
95 ((MySearchRecentSuggestions) srs).truncateHistory(cr, 2); in testSearchRecentSuggestions()
192 protected void truncateHistory(ContentResolver cr, int maxEntries) { in truncateHistory() argument
193 super.truncateHistory(cr, maxEntries); in truncateHistory()
/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/src/android/view/accessibility/cts/
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/tests/tests/permission/src/android/permission/cts/
DLocationAccessCheckTest.java340 ContentResolver cr = sContext.getContentResolver(); in reduceDelays() local
343 Settings.Secure.putLong(cr, LOCATION_ACCESS_CHECK_INTERVAL_MILLIS, 100); in reduceDelays()
344 Settings.Secure.putLong(cr, LOCATION_ACCESS_CHECK_DELAY_MILLIS, 50); in reduceDelays()
480 ContentResolver cr = sContext.getContentResolver(); in resetDelays() local
482 Settings.Secure.resetToDefaults(cr, LOCATION_ACCESS_CHECK_INTERVAL_MILLIS); in resetDelays()
483 Settings.Secure.resetToDefaults(cr, LOCATION_ACCESS_CHECK_DELAY_MILLIS); in resetDelays()
/cts/apps/CameraITS/tests/scene4/
Dtest_multi_camera_alignment.py406 cr = caps[(fmt, i)]['metadata']['android.scaler.cropRegion'];
407 crw = cr['right'] - cr['left']
408 crh = cr['bottom'] - cr['top']
412 circle[i][0] = cr['left'] + circle[i][0] / zoom_ratio
413 circle[i][1] = cr['top'] + circle[i][1] / zoom_ratio
/cts/tests/tests/media/src/android/media/cts/
DAudioManagerStub.java42 public static void setCTSResult(CTSResult cr) { in setCTSResult() argument
43 mCTSResult = cr; in setCTSResult()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DPhoneNumberUtilsTest.java153 ContentResolver cr = getContext().getContentResolver(); in testGetMethods() local
160 personRecord = cr.insert(People.CONTENT_URI, values); in testGetMethods()
165 phoneRecord = cr.insert(phoneUri, values); in testGetMethods()
172 cr.delete(personRecord, null, null); in testGetMethods()
175 cr.delete(phoneRecord, null, null); in testGetMethods()
/cts/tests/tests/uiautomation/src/android/app/uiautomation/cts/
DUiAutomationTest.java528 ContentResolver cr = context.getContentResolver(); in enableAccessibilityService() local
529 String enabledServices = Settings.Secure.getString(cr, in enableAccessibilityService()
531 Settings.Secure.putString(cr, Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES, in enableAccessibilityService()
533 Settings.Secure.putInt(cr, Settings.Secure.ACCESSIBILITY_ENABLED, 1); in enableAccessibilityService()
592 ContentResolver cr = context.getContentResolver(); in turnAccessibilityOff() local
594 cr, Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES, null); in turnAccessibilityOff()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/settings/
DSettingsSession.java68 T get(ContentResolver cr, String key) throws SettingNotFoundException; in get() argument
73 void set(ContentResolver cr, String key, T value); in set() argument
/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/hostsidetests/statsd/src/android/cts/statsd/atom/
DAtomTestCase.java180 CommandResult cr = getDevice().executeShellV2Command(cmd); in resetPerfettoGuardrails() local
181 if (cr.getStatus() != CommandStatus.SUCCESS) in resetPerfettoGuardrails()
182 …ew Exception(String.format("Error while executing %s: %s %s", cmd, cr.getStdout(), cr.getStderr())… in resetPerfettoGuardrails()
/cts/tests/tests/content/src/android/content/cts/
DAsyncQueryHandlerTest.java318 public MockAsyncQueryHandler(ContentResolver cr) { in MockAsyncQueryHandler() argument
319 super(cr); in MockAsyncQueryHandler()
/cts/tests/camera/src/android/hardware/camera2/cts/
DAllocationTest.java316 float cr = yuvData[2] & 0xFF; // V channel in convertPixelYuvToRgb() local
319 float r = y + 1.402f * (cr - 128); in convertPixelYuvToRgb()
320 float g = y - 0.34414f * (cb - 128) - 0.71414f * (cr - 128); in convertPixelYuvToRgb()
DImageReaderTest.java796 float cr = crRow[crPix] & 0xFF; in convertPixelYuvToRgba() local
799 int r = (int) Math.max(0.0f, Math.min(COLOR_RANGE, y + 1.402f * (cr - 128))); in convertPixelYuvToRgba()
801 Math.min(COLOR_RANGE, y - 0.34414f * (cb - 128) - 0.71414f * (cr - 128))); in convertPixelYuvToRgba()
/cts/tests/tests/media/assets/hls_variant/344388/
D20.ts760 S�����g�ֻ���7cr���S��:�ix�ץ5[��D�
1219 …�^�VY�S_&��4�� �:�;}Ѷ��vN����� ��LG�/�(S��R����V�v�s���H�J���@���0cr��X+ ���_dIޯ�7^�z…
D24.ts269 �a� 4���gL��S����-���i�~��Ō���GA������!�%q��� ���A�/JD7��8J�L�ҵ��Q�cr?� ~����~���h�…
/cts/tests/tests/media/assets/hls_variant/165340/
D18.ts399 …�� �:��v��?a M&|ҽ������� ��~�G�V��_�i���J���DRڐ�r��i�^�ZR����]�cr��F�GK��C4�Y�����a[…
D10.ts519 …��#*�0�o�� �P8\�C��9b+�J����Zm��&��Cl"�Vgs��;��@^������0��|pcr���G�3�8M2B����…
/cts/tests/tests/media/assets/hls_variant/387360/
D02.ts632 …J �He�� �.�hi�QG�J�y@P�NG��UMw��::��eT��b��l^B=*r��u��� �'d��Z��cr��ї5x.*7;�jڮݬ�����…
1340 …�B„�=���,+g��ݐ�b=�6Dv���\�2�?,��k��nRg$4����Rv"�9�{���������p��?|�6�cr�__6��D�J�)��o��x�…
1662 …%'J�������BB��-��R�Z}�?�Ժ����{�ܹ2֭PE�x��f�n�oT�S�]E2'�~}���� �T�cr h�ηj�G��ВY�t~��%8�…
/cts/tests/tests/media/assets/hls_variant/765178/
D17.ts1224 ��C����� � ,v���F�ԁ2�/�;������UXȤ@ �L�b��L��/��Tlj/{DG����i�L^�۲�9+�̀��M����/T��cr-9�`,O…
1297 �u(o�~�Z3만v=��A�EVQ�}��6��mG������;�����<?�Hi7��'�m�$s<5��d/M�%4�Y|�^cr\)L�.�����
1940 O@Z�GqĄ�cr*N�t6W���ȩ�H-��v�Z�|����jD
D16.ts344 �u��cr����7H��l���q���1ɋ8��k��{�� a>��G/t�dզ�N:��~��JJ�+*Vh$J�Y���Q__UY?�� g�H��9 ����…
729 …�g���������cr�����*H���Y���I�E.��M4j��q�+� ��vfq��@P�<�#a�I03����}�@��JS�v��>�����Ii…

1234