/packages/modules/Bluetooth/system/embdrv/encoder_for_aptx/src/ |
D | QmfConv.c | 39 int16_t data1; in AsmQmfConvO() local 49 data1 = (*(p2dl_buffPtr)); in AsmQmfConvO() 54 local_acc1 = ((int64_t)(coeffVal0) * (int64_t)data1); in AsmQmfConvO() 61 data1 = (*(p2dl_buffPtr + 2)); in AsmQmfConvO() 66 local_acc1 += ((int64_t)(coeffVal0) * (int64_t)data1); in AsmQmfConvO() 73 data1 = (*(p2dl_buffPtr + 4)); in AsmQmfConvO() 78 local_acc1 += ((int64_t)(coeffVal0) * (int64_t)data1); in AsmQmfConvO() 85 data1 = (*(p2dl_buffPtr + 6)); in AsmQmfConvO() 90 local_acc1 += ((int64_t)(coeffVal0) * (int64_t)data1); in AsmQmfConvO() 97 data1 = (*(p2dl_buffPtr + 8)); in AsmQmfConvO() [all …]
|
/packages/modules/Bluetooth/system/embdrv/encoder_for_aptxhd/src/ |
D | QmfConv.c | 41 int32_t data1; in AsmQmfConvO_HD() local 51 data1 = (*(p2dl_buffPtr)); in AsmQmfConvO_HD() 56 local_acc1 = ((int64_t)(coeffVal0) * (int64_t)data1); in AsmQmfConvO_HD() 63 data1 = (*(p2dl_buffPtr + 2)); in AsmQmfConvO_HD() 68 local_acc1 += ((int64_t)(coeffVal0) * (int64_t)data1); in AsmQmfConvO_HD() 75 data1 = (*(p2dl_buffPtr + 4)); in AsmQmfConvO_HD() 80 local_acc1 += ((int64_t)(coeffVal0) * (int64_t)data1); in AsmQmfConvO_HD() 87 data1 = (*(p2dl_buffPtr + 6)); in AsmQmfConvO_HD() 92 local_acc1 += ((int64_t)(coeffVal0) * (int64_t)data1); in AsmQmfConvO_HD() 99 data1 = (*(p2dl_buffPtr + 8)); in AsmQmfConvO_HD() [all …]
|
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/async/ |
D | BufferedFileTest.java | 105 final byte[] data1 = new byte[101]; in enqueueOutboundData() 107 data1[0] = (byte) 1; in enqueueOutboundData() 112 final int totalLen = data1.length + data2.length; in enqueueOutboundData() 115 assertTrue(file.enqueueOutboundData(data1, 0, data1.length, null, 0, 0)); in enqueueOutboundData() 118 assertEquals(data1.length, file.getOutboundBufferSize()); in enqueueOutboundData() 135 assertEquals(data1[0], arrayCaptor.getValue()[0]); in enqueueOutboundData() 136 assertEquals(data2[0], arrayCaptor.getValue()[data1.length]); in enqueueOutboundData() 146 final byte[] data1 = new byte[101]; in enqueueOutboundData_combined() 148 data1[0] = (byte) 1; in enqueueOutboundData_combined() 153 final int totalLen = data1.length + data2.length; in enqueueOutboundData_combined() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/ |
D | ByteArrayRingBufferTest.java | 55 final byte[] data1 = {0}; in canAddAndRetrieveMultipleElements() 57 assertTrue(rb.appendBuffer(data1)); in canAddAndRetrieveMultipleElements() 60 assertSame(data1, rb.getBuffer(0)); in canAddAndRetrieveMultipleElements() 67 final byte[] data1 = {1, 2, 3, 4, 5}; in canFillToCapacityWithMultipleElements() 69 assertEquals(MAX_BYTES, data1.length + data2.length); in canFillToCapacityWithMultipleElements() 70 assertTrue(rb.appendBuffer(data1)); in canFillToCapacityWithMultipleElements() 95 final byte[] data1 = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; in appendPrunesBufferIfNecessary() 96 assertTrue(rb.appendBuffer(data1)); in appendPrunesBufferIfNecessary() 107 final byte[] data1 = {1, 2, 3, 4, 5}; in appendPrunesMultipleBuffersIfNecessary() 109 assertTrue(rb.appendBuffer(data1)); in appendPrunesMultipleBuffersIfNecessary() [all …]
|
/packages/modules/Bluetooth/system/stack/test/ |
D | ad_parser_unittest.cc | 27 const std::vector<uint8_t> data1{0x00}; in TEST() local 28 EXPECT_TRUE(AdvertiseDataParser::IsValid(data1)); in TEST() 37 const std::vector<uint8_t> data1{0x05, 0x02, 0x00, 0x00, 0x00}; in TEST() local 38 EXPECT_FALSE(AdvertiseDataParser::IsValid(data1)); in TEST() 51 EXPECT_FALSE(AdvertiseDataParser::IsValid(data1)); in TEST() 56 EXPECT_FALSE(AdvertiseDataParser::IsValid(data1)); in TEST() 65 const std::vector<uint8_t> data1{0x03, 0x02, 0x01, 0x02, 0x02, 0x03, 0x01}; in TEST() local 66 EXPECT_TRUE(AdvertiseDataParser::IsValid(data1)); in TEST() 119 const std::vector<uint8_t> data1{0x02, 0x02, 0x00, 0x03, 0x00}; in TEST() local 122 data = AdvertiseDataParser::GetFieldByType(data1, 0x02, &p_length); in TEST() [all …]
|
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/storage/datatypehelpers/aggregation/ |
D | PriorityAggregationDataComparisonTest.java | 47 AggregationRecordData data1 = createStepsData(10, 15, 15, 1, 1); in testCompareTimestamps_orderByTime() local 50 assertThat(data1.getStartTimestamp().compareTo(data2.getStartTimestamp())).isLessThan(0); in testCompareTimestamps_orderByTime() 51 assertThat(data1.getStartTimestamp().compareTo(data2.getStartTimestamp())).isLessThan(0); in testCompareTimestamps_orderByTime() 52 assertThat(data2.getStartTimestamp().compareTo(data1.getEndTimestamp())).isLessThan(0); in testCompareTimestamps_orderByTime() 53 assertThat(data1.getEndTimestamp().compareTo(data2.getStartTimestamp())).isGreaterThan(0); in testCompareTimestamps_orderByTime() 54 assertThat(data2.getStartTimestamp().compareTo(data1.getStartTimestamp())).isGreaterThan(0); in testCompareTimestamps_orderByTime() 68 AggregationRecordData data1 = createStepsData(10, 20, 15, 1, 1); in testCompareTimestamps_timestampsWithDifferentParentDataAreNotEqual() local 71 assertThat(data1.getStartTimestamp().compareTo(data2.getStartTimestamp())).isNotEqualTo(0); in testCompareTimestamps_timestampsWithDifferentParentDataAreNotEqual() 72 assertThat(data1.getEndTimestamp().compareTo(data2.getEndTimestamp())).isLessThan(0); in testCompareTimestamps_timestampsWithDifferentParentDataAreNotEqual()
|
/packages/providers/ContactsProvider/tests/assets/test1/ |
D | expected_data.txt | 5 5 data1=Test Android 32 32 data1=Jane Doe 59 59 data1=John Doe 86 86 data1=This is a test account for Eclair Android Contacts 113 113 data1=Added On Android 140 140 data1=Acme Corp 167 167 data1=1-800-466-4411 194 194 data1=2345678901 221 221 data1=3456789012 248 248 data1=4567890123 [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/aggregation/ |
D | AggregateAttributionDataTest.java | 57 final AggregateAttributionData data1 = createExample(); in testHashCode_equals() local 59 final Set<AggregateAttributionData> dataSet1 = Set.of(data1); in testHashCode_equals() 61 assertEquals(data1.hashCode(), data2.hashCode()); in testHashCode_equals() 62 assertEquals(data1, data2); in testHashCode_equals() 68 final AggregateAttributionData data1 = createExample(); in testHashCode_notEquals() local 74 final Set<AggregateAttributionData> dataSet1 = Set.of(data1); in testHashCode_notEquals() 76 assertNotEquals(data1.hashCode(), data2.hashCode()); in testHashCode_notEquals() 77 assertNotEquals(data1, data2); in testHashCode_notEquals()
|
D | AggregateTriggerDataTest.java | 75 final AggregateTriggerData data1 = createExampleBuilder().build(); in testHashCode_equals() local 77 final Set<AggregateTriggerData> dataSet1 = Set.of(data1); in testHashCode_equals() 79 assertEquals(data1.hashCode(), data2.hashCode()); in testHashCode_equals() 80 assertEquals(data1, data2); in testHashCode_equals() 86 final AggregateTriggerData data1 = createExampleBuilder().build(); in testHashCode_notEquals() local 103 data1.hashCode(), in testHashCode_notEquals() 106 data1.hashCode(), in testHashCode_notEquals() 117 data1.hashCode(), in testHashCode_notEquals() 120 data1.hashCode(), in testHashCode_notEquals() 123 data1.hashCode(), in testHashCode_notEquals()
|
/packages/providers/ContactsProvider/tests/assets/testSynced/ |
D | expected_data.txt | 5 5 data1=Lemmy Test 32 32 data1=Mail 59 59 data1=Number 86 86 data1=Number And Mail 113 113 data1=Not Synced Number 140 140 data1=Not Synced NumberMail 167 167 data1=Not Synced Mail 194 194 data1=Not Synced 221 221 data1=698-147-02 248 248 data1=716-5432 [all …]
|
/packages/providers/ContactsProvider/tests/assets/testUnsynced/ |
D | expected_data.txt | 5 5 data1=Number And Mail 32 32 data1=Number 59 59 data1=Mail 86 86 data1=542-31 113 113 data1=716-5432 140 140 data1=698-147-02 167 167 data1=gdgjj.fxhnj@ggh.com 194 194 data1=weyj@xtdt.com 221 221 data1=mail@dom.com 248 248 data1=1 [all …]
|
/packages/apps/Dialer/java/com/android/dialer/simulator/ |
D | Simulator.java | 130 @Nullable public final String data1; field in Simulator.Event 140 public Event(@Type int type, String data1, String data2) { in Event() argument 142 this.data1 = data1; in Event() 156 && Objects.equals(data1, event.data1) in equals() 162 return Objects.hash(Integer.valueOf(type), data1, data2); in hashCode()
|
/packages/modules/Permission/tests/cts/safetycenter/src/android/safetycenter/cts/ |
D | SafetyCenterDataTest.kt | 161 private val data1 = constant in android.safetycenter.cts.SafetyCenterDataTest 291 assertThat(data1.status).isEqualTo(status1) in getStatus_returnsStatus() 297 assertThat(data1.issues).containsExactly(issue1) in getIssues_returnsIssues() 304 val data3 = data1.withDismissedIssuesIfAtLeastU(listOf(issue2)) in getDismissedIssues_returnsDismissedIssues() 306 assertThat(data1.dismissedIssues).isEmpty() in getDismissedIssues_returnsDismissedIssues() 313 val mutatedDismissedIssues = data1.dismissedIssues in getDismissedIssues_mutationsAreNotAllowed() 320 val mutatedIssues = data1.issues in getIssues_mutationsAreNotAllowed() 327 assertThat(data1.entriesOrGroups).containsExactly(entryOrGroup1) in getEntriesOrGroups_returnsEntriesOrGroups() 333 val mutatedEntriesOrGroups = data1.entriesOrGroups in getEntriesOrGroups_mutationsAreNotAllowed() 342 assertThat(data1.staticEntryGroups).containsExactly(staticEntryGroup1) in getStaticEntryGroups_returnsStaticEntryGroups() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/ |
D | FilterMapTest.java | 72 final FilterMap data1 = createExample(); in testHashCode_equals() local 74 final Set<FilterMap> dataSet1 = Set.of(data1); in testHashCode_equals() 76 assertEquals(data1.hashCode(), data2.hashCode()); in testHashCode_equals() 77 assertEquals(data1, data2); in testHashCode_equals() 83 final FilterMap data1 = createExample(); in testHashCode_notEquals() local 93 final Set<FilterMap> dataSet1 = Set.of(data1); in testHashCode_notEquals() 95 assertNotEquals(data1.hashCode(), data2.hashCode()); in testHashCode_notEquals() 96 assertNotEquals(data1, data2); in testHashCode_notEquals()
|
/packages/apps/Contacts/tests/src/com/android/contacts/ |
D | MoreContactUtilsTest.java | 152 CharSequence data1, CharSequence mimetype2, CharSequence data2) { in assertCollapses() argument 153 assertEquals(message, expected, MoreContactUtils.shouldCollapse(mimetype1, data1, mimetype2, in assertCollapses() 156 data1)); in assertCollapses() 160 if (data1 == data2 && data1 != null) { in assertCollapses() 164 if (data1 == data2_newref) { in assertCollapses() 171 assertEquals(message, expected, MoreContactUtils.shouldCollapse(mimetype1, data1, in assertCollapses() 174 mimetype1, data1)); in assertCollapses()
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/ |
D | OuiKeyedDataTest.java | 105 OuiKeyedData data1 = new OuiKeyedData.Builder(mTestOui, mTestData).build(); in testSameObjectComparison() local 107 assertTrue(data1.equals(data2)); in testSameObjectComparison() 108 assertEquals(data1.hashCode(), data2.hashCode()); in testSameObjectComparison() 115 OuiKeyedData data1 = new OuiKeyedData.Builder(mTestOui, mTestData).build(); in testDifferentObjectComparison() local 117 assertFalse(data1.equals(data2)); in testDifferentObjectComparison() 118 assertNotEquals(data1.hashCode(), data2.hashCode()); in testDifferentObjectComparison()
|
/packages/apps/Launcher3/quickstep/tests/multivalentTests/src/com/android/quickstep/util/ |
D | TaskKeyByLastActiveTimeCacheTest.java | 39 ThumbnailData data1 = new ThumbnailData(); in add() local 40 cache.put(key1, data1); in add() 48 assertEquals(data1, cache.getAndInvalidateIfModified(key1)); in add() 62 ThumbnailData data1 = new ThumbnailData(); in addSameTasksWithSameLastActiveTimeTwice() local 63 cache.put(key1, data1); in addSameTasksWithSameLastActiveTimeTwice() 84 ThumbnailData data1 = new ThumbnailData(); in addSameTasksWithDifferentLastActiveTime() local 85 cache.put(key1, data1); in addSameTasksWithDifferentLastActiveTime() 178 ThumbnailData data1 = new ThumbnailData(); in getAndInvalidateIfModified() local 179 cache.put(key1, data1); in getAndInvalidateIfModified() 185 assertEquals(data1, result1); in getAndInvalidateIfModified()
|
/packages/providers/ContactsProvider/tests/assets/upgradeTest/ |
D | contacts2_1108.sql | 34 …rimary INTEGER NOT NULL DEFAULT 0,data_version INTEGER NOT NULL DEFAULT 0,data1 TEXT,data2 TEXT,da… field 126 CREATE INDEX data_mimetype_data1_index ON data (mimetype_id,data1); 139 …data1, data2, data3, data4, data5, data6, data7, data8, data9, data10, data11, data12, data13, dat… 142 …data1, data2, data3, data4, data5, data6, data7, data8, data9, data10, data11, data12, data13, dat… 143 …data1, data2, data3, data4, data5, data6, data7, data8, data9, data10, data11, data12, data13, dat… 155 …data1 AS name, raw_contacts.display_name AS display_name, trim(trim(ifnull(name.data7,' ')||' '||i… 156 …n, is_primary AS isprimary, accounts.account_name, accounts.account_type, data1 AS company, data2 … 157 …data1 END) AS data, data.data3 AS label, data.data14 AS aux_data, name.data1 AS name, raw_contacts… 158 …data1 AS number, data.data2 AS type, data.data3 AS label, _PHONE_NUMBER_STRIPPED_REVERSED(data.dat… 159 …a.raw_contact_id AS person, accounts.account_name, accounts.account_type, data1 AS name, data2 AS … [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/noising/ |
D | ImpressionNoiseUtilTest.java | 381 final ImpressionNoiseParams data1 = createExample(); in testHashCode_equals() local 383 final Set<ImpressionNoiseParams> dataSet1 = Set.of(data1); in testHashCode_equals() 385 assertEquals(data1.hashCode(), data2.hashCode()); in testHashCode_equals() 386 assertEquals(data1, data2); in testHashCode_equals() 392 final ImpressionNoiseParams data1 = createExample(); in testHashCode_notEquals() local 394 final Set<ImpressionNoiseParams> dataSet1 = Set.of(data1); in testHashCode_notEquals() 396 assertNotEquals(data1.hashCode(), data2.hashCode()); in testHashCode_notEquals() 397 assertNotEquals(data1, data2); in testHashCode_notEquals() 403 final ImpressionNoiseParams data1 = createExample(); in testToString() local 405 assertEquals(data1.toString(), data2.toString()); in testToString()
|
/packages/apps/Dialer/java/com/android/contacts/common/ |
D | MoreContactUtils.java | 41 CharSequence mimetype1, CharSequence data1, CharSequence mimetype2, CharSequence data2) { in shouldCollapse() argument 48 if (TextUtils.equals(data1, data2)) { in shouldCollapse() 53 if (data1 == null || data2 == null) { in shouldCollapse() 63 return shouldCollapsePhoneNumbers(data1.toString(), data2.toString()); in shouldCollapse()
|
/packages/apps/Contacts/src/com/android/contacts/ |
D | MoreContactUtils.java | 47 public static boolean shouldCollapse(CharSequence mimetype1, CharSequence data1, in shouldCollapse() argument 53 if (TextUtils.equals(data1, data2)) return true; in shouldCollapse() 56 if (data1 == null || data2 == null) return false; in shouldCollapse() 65 return shouldCollapsePhoneNumbers(data1.toString(), data2.toString()); in shouldCollapse()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | DataRowHandler.java | 199 final String data1 = values.getAsString(Data.DATA1); in handleHashIdForInsert() local 206 } else if (!TextUtils.isEmpty(data1) || !TextUtils.isEmpty(data2)) { in handleHashIdForInsert() 207 hashId = mDbHelper.generateHashId(data1, data2); in handleHashIdForInsert() 227 String data1 = values.getAsString(Data.DATA1); in handleHashIdForUpdate() local 234 data1 = values.containsKey(Data.DATA1) ? data1 : c.getString(0); in handleHashIdForUpdate() 241 String hashId = mDbHelper.generateHashId(data1, data2); in handleHashIdForUpdate()
|
/packages/modules/Connectivity/tests/common/java/android/net/ |
D | TcpKeepalivePacketDataTest.kt | 51 val data1 = makeData() in <lambda>() constant 53 assertEquals(data1, data2) in <lambda>() 54 assertEquals(data1.hashCode(), data2.hashCode()) in <lambda>()
|
/packages/modules/Bluetooth/system/rust/tests/ |
D | gatt_callbacks_test.rs | 97 let data1 = [1, 2]; in test_sequential_reads() localVariable 108 callback_manager.send_response(CONN_ID, trans_id, Ok(data1.to_vec())).unwrap(); in test_sequential_reads() 121 assert_eq!(pending_read_1.await.unwrap(), Ok(data1.to_vec())); in test_sequential_reads() 131 let data1 = [1, 2]; in test_concurrent_reads() localVariable 150 callback_manager.send_response(CONN_ID, trans_id, Ok(data1.to_vec())).unwrap(); in test_concurrent_reads() 157 assert_eq!(pending_read_1.await.unwrap(), Ok(data1.to_vec())); in test_concurrent_reads()
|
/packages/modules/Permission/tests/functional/safetycenter/singleuser/src/android/safetycenter/functional/ |
D | SafetyCenterNotificationTest.kt | 202 val data1 = in setSafetySourceData_withNotificationBehaviorDelay_sendsNotificationAfterDelay() constant 214 safetyCenterTestHelper.setData(uniqueSafetySourceId, data1) in setSafetySourceData_withNotificationBehaviorDelay_sendsNotificationAfterDelay() 466 val data1 = in setSafetySourceData_twiceWithSameIssueId_updatesNotification() constant 476 safetyCenterTestHelper.setData(uniqueSafetySourceId, data1) in setSafetySourceData_twiceWithSameIssueId_updatesNotification() 543 val data1 = safetySourceTestData.recommendationWithAccountIssue in setSafetySourceData_twiceRemovingAnIssue_cancelsNotification() constant 546 safetyCenterTestHelper.setData(uniqueSafetySourceId, data1) in setSafetySourceData_twiceRemovingAnIssue_cancelsNotification() 563 val data1 = safetySourceTestData.recommendationWithAccountIssue in setSafetySourceData_removingAnIssue_afterFlagTurnedOff_noNotificationChanges() constant 566 safetyCenterTestHelper.setData(uniqueSafetySourceId, data1) in setSafetySourceData_removingAnIssue_afterFlagTurnedOff_noNotificationChanges() 609 val data1 = in setSafetySourceData_withDismissedIssueId_doesNotNotify() constant 628 safetyCenterTestHelper.setData(uniqueSafetySourceId, data1) in setSafetySourceData_withDismissedIssueId_doesNotNotify() [all …]
|