/cts/tests/tests/provider/src/android/provider/cts/ |
D | MediaStoreAudioTestHelper.java | 62 final ContentValues values = getContentValues(volumeName); in insert() local 64 values.getAsString(MediaStore.Audio.Media.DATA) in insert() 67 final Uri itemUri = contentResolver.insert(dirUri, values); in insert() 107 ContentValues values = new ContentValues(); in getContentValues() local 115 values.put(Media.DATA, data.getAbsolutePath()); in getContentValues() 119 values.put(Media.DATE_MODIFIED, DATE_MODIFIED); in getContentValues() 120 values.put(Media.DISPLAY_NAME, DISPLAY_NAME); in getContentValues() 121 values.put(Media.MIME_TYPE, MIME_TYPE); in getContentValues() 122 values.put(Media.SIZE, SIZE); in getContentValues() 123 values.put(Media.TITLE, TITLE); in getContentValues() [all …]
|
D | MediaStore_FilesTest.java | 89 ContentValues values = new ContentValues(); in testGetContentUri() local 95 values.put(MediaColumns.DATA, dataPath); in testGetContentUri() 96 Uri fileUri = mResolver.insert(allFilesUri, values); in testGetContentUri() 113 values.put(MediaColumns.DATA, updatedPath); in testGetContentUri() 114 assertEquals(1, mResolver.update(fileUri, values, null, null)); in testGetContentUri() 118 Uri foo = mResolver.insert(allFilesUri, values); in testGetContentUri() 134 values.clear(); in testGetContentUri() 140 values.put(MediaColumns.DATA, b + "/testing" + System.nanoTime()); in testGetContentUri() 141 fileUri = mResolver.insert(allFilesUri, values); in testGetContentUri() 174 ContentValues values = new ContentValues(); in testCaseSensitivity() local [all …]
|
D | CalendarTest.java | 143 ContentValues values = new ContentValues(); in getNewCalendarValues() local 144 values.put(Calendars.ACCOUNT_TYPE, CTS_TEST_TYPE); in getNewCalendarValues() 146 values.put(Calendars.ACCOUNT_NAME, account); in getNewCalendarValues() 147 values.put(Calendars._SYNC_ID, "SYNC_ID:" + seedString); in getNewCalendarValues() 148 values.put(Calendars.CAL_SYNC7, "SYNC_V:" + seedString); in getNewCalendarValues() 149 values.put(Calendars.CAL_SYNC8, "SYNC_TIME:" + seedString); in getNewCalendarValues() 150 values.put(Calendars.DIRTY, 0); in getNewCalendarValues() 151 values.put(Calendars.OWNER_ACCOUNT, generateCalendarOwnerEmail(account)); in getNewCalendarValues() 153 values.put(Calendars.NAME, seedString); in getNewCalendarValues() 154 values.put(Calendars.CALENDAR_DISPLAY_NAME, "DISPLAY_" + seedString); in getNewCalendarValues() [all …]
|
/cts/tests/sensor/src/android/hardware/cts/helpers/sensorverification/ |
D | OffsetVerificationTest.java | 45 float[][] values = null; in testSingleEventVerify() local 48 values = new float[][]{ {10, 10, 10, 2, 2, 2} }; in testSingleEventVerify() 49 runStats(3.5f /* threshold */, values, true /* pass */); in testSingleEventVerify() 50 runStats(3.4f /* threshold */, values, false /* pass */); in testSingleEventVerify() 53 values = new float[][]{ {10, 10, 10, 2, 0, 0} }; in testSingleEventVerify() 54 runStats(2.0f /* threshold */, values, true /* pass */); in testSingleEventVerify() 55 runStats(1.9f /* threshold */, values, false /* pass */); in testSingleEventVerify() 58 values = new float[][]{ {10, 10, 10, 0, 0, 2} }; in testSingleEventVerify() 59 runStats(2.0f /* threshold */, values, true /* pass */); in testSingleEventVerify() 60 runStats(1.9f /* threshold */, values, false /* pass */); in testSingleEventVerify() [all …]
|
D | MagnitudeVerificationTest.java | 37 float[][] values = { in testVerify() local 45 runStats(5.0f, 0.1f, values, true, 5.0f); in testVerify() 46 runStats(4.5f, 0.6f, values, true, 5.0f); in testVerify() 47 runStats(5.5f, 0.6f, values, true, 5.0f); in testVerify() 48 runStats(4.5f, 0.1f, values, false, 5.0f); in testVerify() 49 runStats(5.5f, 0.1f, values, false, 5.0f); in testVerify() 52 …private void runStats(float expected, float threshold, float[][] values, boolean pass, float magni… in runStats() argument 54 MagnitudeVerification verification = getVerification(expected, threshold, values); in runStats() 70 float[] ... values) { in getVerification() argument 71 Collection<TestSensorEvent> events = new ArrayList<>(values.length); in getVerification() [all …]
|
D | StandardDeviationVerificationTest.java | 38 float[][] values = { in testVerify() local 50 runVerification(threshold, values, true, standardDeviations); in testVerify() 53 runVerification(threshold, values, false, standardDeviations); in testVerify() 56 runVerification(threshold, values, false, standardDeviations); in testVerify() 59 runVerification(threshold, values, false, standardDeviations); in testVerify() 62 private void runVerification(float[] threshold, float[][] values, boolean pass, in runVerification() argument 65 StandardDeviationVerification verification = getVerification(threshold, values); in runVerification() 87 float[] ... values) { in getVerification() argument 88 Collection<TestSensorEvent> events = new ArrayList<>(values.length); in getVerification() 89 for (float[] value : values) { in getVerification()
|
D | MeanVerificationTest.java | 38 float[][] values = { in testVerify() local 51 getVerification(expected, upperThresholds, lowerThresholds, values); in testVerify() 59 verification = getVerification(expected, upperThresholds, lowerThresholds, values); in testVerify() 65 verification = getVerification(expected, upperThresholds, lowerThresholds, values); in testVerify() 76 verification = getVerification(expected, upperThresholds, lowerThresholds, values); in testVerify() 87 verification = getVerification(expected, upperThresholds, lowerThresholds, values); in testVerify() 101 verification = getVerification(expected, upperThresholds, lowerThresholds, values); in testVerify() 107 verification = getVerification(expected, upperThresholds, lowerThresholds, values); in testVerify() 118 verification = getVerification(expected, upperThresholds, lowerThresholds, values); in testVerify() 129 verification = getVerification(expected, upperThresholds, lowerThresholds, values); in testVerify() [all …]
|
/cts/tests/tests/tv/src/android/media/tv/cts/ |
D | TvContractTest.java | 140 ContentValues values = new ContentValues(); in createDummyChannelValues() local 141 values.put(Channels.COLUMN_INPUT_ID, inputId); in createDummyChannelValues() 142 values.put(Channels.COLUMN_INTERNAL_PROVIDER_ID, "ID-4321"); in createDummyChannelValues() 143 values.put(Channels.COLUMN_TYPE, preview ? Channels.TYPE_PREVIEW : Channels.TYPE_OTHER); in createDummyChannelValues() 144 values.put(Channels.COLUMN_SERVICE_TYPE, Channels.SERVICE_TYPE_AUDIO_VIDEO); in createDummyChannelValues() 145 values.put(Channels.COLUMN_DISPLAY_NUMBER, "1"); in createDummyChannelValues() 146 values.put(Channels.COLUMN_VIDEO_FORMAT, Channels.VIDEO_FORMAT_480P); in createDummyChannelValues() 148 return values; in createDummyChannelValues() 152 ContentValues values = new ContentValues(); in createDummyProgramValues() local 153 values.put(Programs.COLUMN_CHANNEL_ID, channelId); in createDummyProgramValues() [all …]
|
/cts/tests/app/src/android/app/cts/ |
D | ActivityManager_RunningServiceInfoTest.java | 60 ActivityManager.RunningServiceInfo values = in testWriteToParcel() local 62 assertEquals(mService, values.service); in testWriteToParcel() 63 assertEquals(1, values.pid); in testWriteToParcel() 64 assertEquals(PROCESS, values.process); in testWriteToParcel() 65 assertTrue(values.foreground); in testWriteToParcel() 66 assertEquals(1l, values.activeSince); in testWriteToParcel() 67 assertTrue(values.started); in testWriteToParcel() 68 assertEquals(2, values.clientCount); in testWriteToParcel() 69 assertEquals(1, values.crashCount); in testWriteToParcel() 70 assertEquals(1l, values.lastActivityTime); in testWriteToParcel() [all …]
|
D | ActivityManagerProcessErrorStateInfoTest.java | 59 ActivityManager.ProcessErrorStateInfo values = in testWriteToParcel() local 62 assertEquals(condition, values.condition); in testWriteToParcel() 63 assertEquals(processName, values.processName); in testWriteToParcel() 64 assertEquals(pid, values.pid); in testWriteToParcel() 65 assertEquals(uid, values.uid); in testWriteToParcel() 66 assertEquals(tag, values.tag); in testWriteToParcel() 68 assertEquals(shortMsg, values.shortMsg); in testWriteToParcel() 69 assertEquals(longMsg, values.longMsg); in testWriteToParcel() 70 assertNull(values.crashData); // Deprecated field: always null in testWriteToParcel() 93 ActivityManager.ProcessErrorStateInfo values = new ActivityManager.ProcessErrorStateInfo(); in testReadFromParcel() local [all …]
|
/cts/tests/tests/view/src/android/view/animation/cts/ |
D | ScaleAnimationTest.java | 96 float values[] = new float[9]; in testApplyTransformation() local 100 transformation.getMatrix().getValues(values); in testApplyTransformation() 101 assertMatrixValue(FROM_X, FROM_Y, values); in testApplyTransformation() 102 float trans1X = values[Matrix.MTRANS_X]; in testApplyTransformation() 103 float trans1Y = values[Matrix.MTRANS_Y]; in testApplyTransformation() 106 transformation.getMatrix().getValues(values); in testApplyTransformation() 107 assertMatrixValue(MID_X, MID_Y, values); in testApplyTransformation() 108 float trans2X = values[Matrix.MTRANS_X]; in testApplyTransformation() 109 float trans2Y = values[Matrix.MTRANS_Y]; in testApplyTransformation() 112 transformation.getMatrix().getValues(values); in testApplyTransformation() [all …]
|
D | TranslateAnimationTest.java | 117 float values[] = new float[9]; in testApplyTransformation() local 120 transformation.getMatrix().getValues(values); in testApplyTransformation() 121 assertEquals(FROM_X_DETLTA, values[Matrix.MTRANS_X], POSITION_DELTA); in testApplyTransformation() 122 assertEquals(FROM_Y_DELTA, values[Matrix.MTRANS_Y], POSITION_DELTA); in testApplyTransformation() 126 transformation.getMatrix().getValues(values); in testApplyTransformation() 127 assertEquals((TO_X_DELTA + FROM_X_DETLTA) / 2, values[Matrix.MTRANS_X], POSITION_DELTA); in testApplyTransformation() 128 assertEquals((TO_Y_DELTA + FROM_Y_DELTA) / 2, values[Matrix.MTRANS_Y], POSITION_DELTA); in testApplyTransformation() 132 transformation.getMatrix().getValues(values); in testApplyTransformation() 133 assertEquals(TO_X_DELTA, values[Matrix.MTRANS_X], POSITION_DELTA); in testApplyTransformation() 134 assertEquals(TO_Y_DELTA, values[Matrix.MTRANS_Y], POSITION_DELTA); in testApplyTransformation() [all …]
|
/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
D | DataUtil.java | 47 ContentValues values = new ContentValues(); in insertName() local 48 values.put(ContactsContract.Data.MIMETYPE, in insertName() 50 values.put(CommonDataKinds.StructuredName.DISPLAY_NAME, name); in insertName() 51 insertData(resolver, rawContactId, values); in insertName() 56 ContentValues values = new ContentValues(); in insertPhoneNumber() local 57 values.put(ContactsContract.Data.MIMETYPE, CommonDataKinds.Phone.CONTENT_ITEM_TYPE); in insertPhoneNumber() 58 values.put(CommonDataKinds.Phone.NUMBER, number); in insertPhoneNumber() 59 return DataUtil.insertData(resolver, rawContactId, values); in insertPhoneNumber() 63 ContentValues values = new ContentValues(); in insertEmail() local 64 values.put(ContactsContract.Data.MIMETYPE, CommonDataKinds.Email.CONTENT_ITEM_TYPE); in insertEmail() [all …]
|
D | ContactsContract_DataUsageTest.java | 160 ContentValues values; in testUsageUpdate() local 162 values = new ContentValues(); in testUsageUpdate() 163 values.put(Contacts.LAST_TIME_CONTACTED, 123); in testUsageUpdate() 164 assertEquals(1, ContactUtil.update(mResolver, contact.getId(), values)); in testUsageUpdate() 166 values = new ContentValues(); in testUsageUpdate() 167 values.put(Contacts.LAST_TIME_CONTACTED, 123); in testUsageUpdate() 168 assertEquals(1, RawContactUtil.update(mResolver, rawContact.getId(), values)); in testUsageUpdate() 170 values = new ContentValues(); in testUsageUpdate() 171 values.put(Contacts.TIMES_CONTACTED, 456); in testUsageUpdate() 172 assertEquals(1, ContactUtil.update(mResolver, contact.getId(), values)); in testUsageUpdate() [all …]
|
D | ContactsContract_AggregationSuggestionsTest.java | 72 ContentValues values = new ContentValues(); in testAggregationSuggestionsByNameReversed() local 73 values.put(Contacts._ID, contactIds[0]); in testAggregationSuggestionsByNameReversed() 74 values.put(Contacts.DISPLAY_NAME, "first1 last1"); in testAggregationSuggestionsByNameReversed() 75 DatabaseAsserts.assertCursorValuesMatchExactly(cursor, values); in testAggregationSuggestionsByNameReversed() 94 ContentValues values = new ContentValues(); in testAggregationSuggestionsByName() local 95 values.put(Contacts._ID, contactIds[0]); in testAggregationSuggestionsByName() 96 values.put(Contacts.DISPLAY_NAME, "first1 last1"); in testAggregationSuggestionsByName() 97 DatabaseAsserts.assertCursorValuesMatchExactly(cursor, values); in testAggregationSuggestionsByName() 131 ContentValues values = new ContentValues(); in testAggregationSuggestionsByName_matchSecondNameParameter() local 132 values.put(Contacts._ID, contactIds[1]); in testAggregationSuggestionsByName_matchSecondNameParameter() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/ |
D | MockTvInputSetupActivity.java | 77 ContentValues values = new ContentValues(); in onCreate() local 78 values.put(TvContract.Channels.COLUMN_INPUT_ID, inputId); in onCreate() 79 values.put(TvContract.Channels.COLUMN_DISPLAY_NUMBER, CHANNEL_NUMBER); in onCreate() 80 values.put(TvContract.Channels.COLUMN_DISPLAY_NAME, CHANNEL_NAME); in onCreate() 81 values.put(TvContract.Channels.COLUMN_APP_LINK_TEXT, APP_LINK_TEXT); in onCreate() 82 values.put(TvContract.Channels.COLUMN_APP_LINK_COLOR, Color.RED); in onCreate() 83 values.put(TvContract.Channels.COLUMN_APP_LINK_ICON_URI, in onCreate() 85 values.put(TvContract.Channels.COLUMN_APP_LINK_POSTER_ART_URI, in onCreate() 90 values.put(TvContract.Channels.COLUMN_APP_LINK_INTENT_URI, in onCreate() 93 Uri channelUri = getContentResolver().insert(uri, values); in onCreate() [all …]
|
/cts/tests/tests/database/src/android/database/cts/ |
D | DatabaseUtils_InsertHelperTest.java | 146 ContentValues values = new ContentValues(); in testInsert() local 147 values.put("boolean_value", false); in testInsert() 148 values.put("int_value", 123); in testInsert() 149 values.put("long_value", 987654L); in testInsert() 150 values.put("double_value", 654.321); in testInsert() 151 values.put("float_value", 21.1f); in testInsert() 152 values.put("string_value", "insert another row"); in testInsert() 153 values.put("blob_value", blob); in testInsert() 154 values.putNull("null_value"); in testInsert() 155 id = mInsertHelper.insert(values); in testInsert() [all …]
|
/cts/tests/autofillservice/src/android/autofillservice/cts/ |
D | CompositeUserDataTest.java | 93 final String[] values = userData.getValues(); in testMerge_nullGenericUserData() local 94 assertThat(values.length).isEqualTo(1); in testMerge_nullGenericUserData() 95 assertThat(values[0]).isEqualTo(mValue3); in testMerge_nullGenericUserData() 111 final String[] values = userData.getValues(); in testMerge_bothEmpty() local 112 assertThat(values.length).isEqualTo(2); in testMerge_bothEmpty() 113 assertThat(values[0]).isEqualTo(mValue3); in testMerge_bothEmpty() 114 assertThat(values[1]).isEqualTo(mValue); in testMerge_bothEmpty() 131 final String[] values = userData.getValues(); in testMerge_emptyGenericUserData() local 132 assertThat(values.length).isEqualTo(3); in testMerge_emptyGenericUserData() 133 assertThat(values[0]).isEqualTo(mValue3); in testMerge_emptyGenericUserData() [all …]
|
/cts/tests/sensor/src/android/hardware/cts/helpers/ |
D | TestSensorEvent.java | 34 public final float values[]; field in TestSensorEvent 54 values = event.values.clone(); in TestSensorEvent() 65 public TestSensorEvent(Sensor sensor, long timestamp, int accuracy, float[] values) { in TestSensorEvent() argument 66 this(sensor, timestamp, timestamp, accuracy, values); in TestSensorEvent() 73 float[] values) { in TestSensorEvent() argument 78 this.values = values; in TestSensorEvent() 88 Arrays.toString(this.values)); in toString()
|
D | MovementDetectorHelper.java | 87 mGravity[0] = event.values[0]; in onSensorChanged() 88 mGravity[1] = event.values[1]; in onSensorChanged() 89 mGravity[2] = event.values[2]; in onSensorChanged() 92 mGravity[0] = ALPHA * mGravity[0] + (1 - ALPHA) * event.values[0]; in onSensorChanged() 93 mGravity[1] = ALPHA * mGravity[1] + (1 - ALPHA) * event.values[1]; in onSensorChanged() 94 mGravity[2] = ALPHA * mGravity[2] + (1 - ALPHA) * event.values[2]; in onSensorChanged() 98 linearAcceleration[0] = event.values[0] - mGravity[0]; in onSensorChanged() 99 linearAcceleration[1] = event.values[1] - mGravity[1]; in onSensorChanged() 100 linearAcceleration[2] = event.values[2] - mGravity[2]; in onSensorChanged()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | ContentQueryMapTest.java | 151 ContentValues values = new ContentValues(); in testRequery() local 152 values.put(DummyProvider.NAME, NAME2); in testRequery() 153 values.put(DummyProvider.VALUE, VALUE2); in testRequery() 154 mResolver.update(DummyProvider.CONTENT_URI, values, in testRequery() 185 ContentValues values = new ContentValues(); in testSetKeepUpdated() local 186 values.put(DummyProvider.NAME, NAME2); in testSetKeepUpdated() 187 values.put(DummyProvider.VALUE, VALUE2); in testSetKeepUpdated() 188 mResolver.update(DummyProvider.CONTENT_URI, values, in testSetKeepUpdated() 229 values = new ContentValues(); in testSetKeepUpdated() 230 values.put(DummyProvider.NAME, NAME3); in testSetKeepUpdated() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/peripheralprofile/ |
D | AudioStringsHelper.java | 90 public static String makeRatesList(int[] values) { in makeRatesList() argument 91 return makeIntList(values); in makeRatesList() 95 public static String makeIntList(int[] values) { in makeIntList() argument 97 for (int index = 0; index < values.length; index++) { in makeIntList() 98 sb.append(values[index]); in makeIntList() 99 if (index < values.length - 1) { in makeIntList() 108 public static String makeHexList(int[] values) { in makeHexList() argument 110 for (int index = 0; index < values.length; index++) { in makeHexList() 111 sb.append("0x" + Integer.toHexString(values[index]).toUpperCase()); in makeHexList() 112 if (index < values.length - 1) { in makeHexList()
|
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/metrics/ |
D | DevicePolicyEventWrapper.java | 133 public Builder setStrings(String... values) { in setStrings() argument 134 mStringArrayValue = values; in setStrings() 138 public Builder setStrings(String value, String[] values) { in setStrings() argument 139 if (values == null) { in setStrings() 142 mStringArrayValue = new String[values.length + 1]; in setStrings() 144 System.arraycopy(values, 0, mStringArrayValue, 1, values.length); in setStrings() 148 public Builder setStrings(String value1, String value2, String[] values) { in setStrings() argument 149 if (values == null) { in setStrings() 152 mStringArrayValue = new String[values.length + 2]; in setStrings() 155 System.arraycopy(values, 0, mStringArrayValue, 2, values.length); in setStrings()
|
/cts/tests/tests/animation/src/android/animation/cts/ |
D | CreationTest.java | 161 private void verifyValues(ValueAnimator animator, float... values) { in verifyValues() argument 163 assertEquals((Float) animator.getAnimatedValue(), values[0], EPSILON); in verifyValues() local 164 for (int i = 1; i < values.length - 1; ++i) { in verifyValues() 165 animator.setCurrentFraction((float) i / (values.length - 1)); in verifyValues() 166 assertEquals((Float) animator.getAnimatedValue(), values[i], EPSILON); in verifyValues() local 169 assertEquals((Float) animator.getAnimatedValue(), values[values.length - 1], EPSILON); in verifyValues() local 172 private void verifyValues(ObjectAnimator animator, String propertyName, float... values) { in verifyValues() argument 174 assertEquals((Float) animator.getAnimatedValue(propertyName), values[0], EPSILON); in verifyValues() local 175 for (int i = 1; i < values.length - 1; ++i) { in verifyValues() 176 animator.setCurrentFraction((float) i / (values.length - 1)); in verifyValues() [all …]
|
/cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/ |
D | ChangeDefaultUris.java | 44 ContentValues values = new ContentValues(); in testChangeDefaultUris() local 45 values.put(MediaStore.MediaColumns.DATA, mediaFile.getPath()); in testChangeDefaultUris() 46 values.put(MediaStore.MediaColumns.TITLE, RINGER_TITLE); in testChangeDefaultUris() 47 values.put(MediaStore.MediaColumns.MIME_TYPE, "audio/mp3"); in testChangeDefaultUris() 48 values.put(MediaStore.Audio.AudioColumns.ARTIST, "CTS ringer artist"); in testChangeDefaultUris() 49 values.put(MediaStore.Audio.AudioColumns.IS_RINGTONE, true); in testChangeDefaultUris() 50 values.put(MediaStore.Audio.AudioColumns.IS_NOTIFICATION, true); in testChangeDefaultUris() 51 values.put(MediaStore.Audio.AudioColumns.IS_ALARM, true); in testChangeDefaultUris() 52 values.put(MediaStore.Audio.AudioColumns.IS_MUSIC, false); in testChangeDefaultUris() 56 .insert(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, values); in testChangeDefaultUris()
|