Home
last modified time | relevance | path

Searched refs:data2 (Results 1 – 25 of 42) sorted by relevance

12

/packages/modules/Bluetooth/system/embdrv/encoder_for_aptx/src/
DQmfConv.c40 int16_t data2; in AsmQmfConvO() local
50 data2 = (*(p1dl_buffPtr - 1)); in AsmQmfConvO()
55 local_acc0 += ((int64_t)(coeffVal1) * (int64_t)data2); in AsmQmfConvO()
62 data2 = (*(p1dl_buffPtr - 3)); in AsmQmfConvO()
67 local_acc0 += ((int64_t)(coeffVal1) * (int64_t)data2); in AsmQmfConvO()
74 data2 = (*(p1dl_buffPtr - 5)); in AsmQmfConvO()
79 local_acc0 += ((int64_t)(coeffVal1) * (int64_t)data2); in AsmQmfConvO()
86 data2 = (*(p1dl_buffPtr - 7)); in AsmQmfConvO()
91 local_acc0 += ((int64_t)(coeffVal1) * (int64_t)data2); in AsmQmfConvO()
98 data2 = (*(p1dl_buffPtr - 9)); in AsmQmfConvO()
[all …]
/packages/modules/Bluetooth/system/embdrv/encoder_for_aptxhd/src/
DQmfConv.c42 int32_t data2; in AsmQmfConvO_HD() local
52 data2 = (*(p1dl_buffPtr - 1)); in AsmQmfConvO_HD()
57 local_acc0 += ((int64_t)(coeffVal1) * (int64_t)data2); in AsmQmfConvO_HD()
64 data2 = (*(p1dl_buffPtr - 3)); in AsmQmfConvO_HD()
69 local_acc0 += ((int64_t)(coeffVal1) * (int64_t)data2); in AsmQmfConvO_HD()
76 data2 = (*(p1dl_buffPtr - 5)); in AsmQmfConvO_HD()
81 local_acc0 += ((int64_t)(coeffVal1) * (int64_t)data2); in AsmQmfConvO_HD()
88 data2 = (*(p1dl_buffPtr - 7)); in AsmQmfConvO_HD()
93 local_acc0 += ((int64_t)(coeffVal1) * (int64_t)data2); in AsmQmfConvO_HD()
100 data2 = (*(p1dl_buffPtr - 9)); in AsmQmfConvO_HD()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DByteArrayRingBufferTest.java56 final byte[] data2 = {1}; in canAddAndRetrieveMultipleElements()
58 assertTrue(rb.appendBuffer(data2)); in canAddAndRetrieveMultipleElements()
61 assertSame(data2, rb.getBuffer(1)); in canAddAndRetrieveMultipleElements()
68 final byte[] data2 = {6, 7, 8, 9, 10}; in canFillToCapacityWithMultipleElements()
69 assertEquals(MAX_BYTES, data1.length + data2.length); in canFillToCapacityWithMultipleElements()
71 assertTrue(rb.appendBuffer(data2)); in canFillToCapacityWithMultipleElements()
98 final byte[] data2 = {11}; in appendPrunesBufferIfNecessary()
99 assertTrue(rb.appendBuffer(data2)); in appendPrunesBufferIfNecessary()
101 assertSame(data2, rb.getBuffer(0)); in appendPrunesBufferIfNecessary()
108 final byte[] data2 = {6, 7, 8, 9, 10}; in appendPrunesMultipleBuffersIfNecessary()
[all …]
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/async/
DBufferedFileTest.java106 final byte[] data2 = new byte[102]; in enqueueOutboundData()
108 data2[0] = (byte) 2; in enqueueOutboundData()
112 final int totalLen = data1.length + data2.length; in enqueueOutboundData()
128 assertTrue(file.enqueueOutboundData(data2, 0, data2.length, null, 0, 0)); in enqueueOutboundData()
136 assertEquals(data2[0], arrayCaptor.getValue()[data1.length]); in enqueueOutboundData()
147 final byte[] data2 = new byte[102]; in enqueueOutboundData_combined()
149 data2[0] = (byte) 2; in enqueueOutboundData_combined()
153 final int totalLen = data1.length + data2.length; in enqueueOutboundData_combined()
161 assertTrue(file.enqueueOutboundData(data1, 0, data1.length, data2, 0, data2.length)); in enqueueOutboundData_combined()
169 assertEquals(data2[0], arrayCaptor.getValue()[data1.length]); in enqueueOutboundData_combined()
[all …]
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/storage/datatypehelpers/aggregation/
DPriorityAggregationDataComparisonTest.java48 AggregationRecordData data2 = createStepsData(12, 20, 20, 1, 10); 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()
61 assertThat(data2.getStartTimestamp().compareTo(border)).isLessThan(0); in testCompareTimestamps_orderByTime()
62 assertThat(data2.getEndTimestamp().compareTo(border)).isGreaterThan(0); in testCompareTimestamps_orderByTime()
69 AggregationRecordData data2 = createStepsData(10, 20, 15, 1, 10); in testCompareTimestamps_timestampsWithDifferentParentDataAreNotEqual() local
71 assertThat(data1.getStartTimestamp().compareTo(data2.getStartTimestamp())).isNotEqualTo(0); in testCompareTimestamps_timestampsWithDifferentParentDataAreNotEqual()
[all …]
/packages/providers/ContactsProvider/tests/assets/test1/
Dexpected_data.txt6 6 data2=Test
33 33 data2=Jane
60 60 data2=John
87 87 data2=null
114 114 data2=Added
141 141 data2=1
168 168 data2=1
195 195 data2=3
222 222 data2=2
249 249 data2=5
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/aggregation/
DAggregateAttributionDataTest.java58 final AggregateAttributionData data2 = createExample(); in testHashCode_equals() local
60 final Set<AggregateAttributionData> dataSet2 = Set.of(data2); in testHashCode_equals()
61 assertEquals(data1.hashCode(), data2.hashCode()); in testHashCode_equals()
62 assertEquals(data1, data2); in testHashCode_equals()
69 final AggregateAttributionData data2 = in testHashCode_notEquals() local
75 final Set<AggregateAttributionData> dataSet2 = Set.of(data2); in testHashCode_notEquals()
76 assertNotEquals(data1.hashCode(), data2.hashCode()); in testHashCode_notEquals()
77 assertNotEquals(data1, data2); in testHashCode_notEquals()
DAggregateTriggerDataTest.java76 final AggregateTriggerData data2 = createExampleBuilder().build(); in testHashCode_equals() local
78 final Set<AggregateTriggerData> dataSet2 = Set.of(data2); in testHashCode_equals()
79 assertEquals(data1.hashCode(), data2.hashCode()); in testHashCode_equals()
80 assertEquals(data1, data2); in testHashCode_equals()
/packages/providers/ContactsProvider/tests/assets/testSynced/
Dexpected_data.txt6 6 data2=Lemmy
33 33 data2=Mail
60 60 data2=Number
87 87 data2=Number
114 114 data2=Not
141 141 data2=Not
168 168 data2=Not
195 195 data2=Not
222 222 data2=2
249 249 data2=2
[all …]
/packages/providers/ContactsProvider/tests/assets/testUnsynced/
Dexpected_data.txt6 6 data2=Number
33 33 data2=Number
60 60 data2=Mail
87 87 data2=2
114 114 data2=2
141 141 data2=2
168 168 data2=1
195 195 data2=1
222 222 data2=1
249 249 data2=null
[all …]
/packages/apps/Dialer/java/com/android/dialer/simulator/
DSimulator.java134 @Nullable public final String data2; field in Simulator.Event
140 public Event(@Type int type, String data1, String data2) { in Event() argument
143 this.data2 = data2; in Event()
157 && Objects.equals(data2, event.data2); in equals()
162 return Objects.hash(Integer.valueOf(type), data1, data2); in hashCode()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/
DFilterMapTest.java73 final FilterMap data2 = createExample(); in testHashCode_equals() local
75 final Set<FilterMap> dataSet2 = Set.of(data2); in testHashCode_equals()
76 assertEquals(data1.hashCode(), data2.hashCode()); in testHashCode_equals()
77 assertEquals(data1, data2); in testHashCode_equals()
89 final FilterMap data2 = in testHashCode_notEquals() local
94 final Set<FilterMap> dataSet2 = Set.of(data2); in testHashCode_notEquals()
95 assertNotEquals(data1.hashCode(), data2.hashCode()); in testHashCode_notEquals()
96 assertNotEquals(data1, data2); in testHashCode_notEquals()
/packages/modules/OnDevicePersonalization/tests/frameworktests/src/android/adservices/ondevicepersonalization/
DOnDevicePersonalizationFrameworkClassesTest.java61 ExecuteInputParcel data2 = ExecuteInputParcel.CREATOR.createFromParcel(parcel); in testExecuteInput() local
62 ExecuteInput result = new ExecuteInput(data2); in testExecuteInput()
108 RenderInputParcel data2 = RenderInputParcel.CREATOR.createFromParcel(parcel); in testRenderInput() local
109 RenderInput result = new RenderInput(data2); in testRenderInput()
173 EventInputParcel data2 = EventInputParcel.CREATOR.createFromParcel(parcel); in testEventInput() local
174 EventInput result = new EventInput(data2); in testEventInput()
318 MeasurementWebTriggerEventParams data2 = in testMeasurementWebTriggerEventParams() local
327 assertEquals("app2", data2.getAppPackageName()); in testMeasurementWebTriggerEventParams()
328 assertEquals("http://example.com/2", data2.getDestinationUrl().toString()); in testMeasurementWebTriggerEventParams()
329 assertEquals("x", data2.getIsolatedService().getPackageName()); in testMeasurementWebTriggerEventParams()
[all …]
/packages/modules/Wifi/framework/tests/src/android/net/wifi/
DOuiKeyedDataTest.java106 OuiKeyedData data2 = new OuiKeyedData.Builder(mTestOui, mTestData).build(); in testSameObjectComparison() local
107 assertTrue(data1.equals(data2)); in testSameObjectComparison()
108 assertEquals(data1.hashCode(), data2.hashCode()); in testSameObjectComparison()
116 OuiKeyedData data2 = new OuiKeyedData.Builder(mTestOui, otherBundle).build(); in testDifferentObjectComparison() local
117 assertFalse(data1.equals(data2)); in testDifferentObjectComparison()
118 assertNotEquals(data1.hashCode(), data2.hashCode()); in testDifferentObjectComparison()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/noising/
DImpressionNoiseUtilTest.java382 final ImpressionNoiseParams data2 = createExample(); in testHashCode_equals() local
384 final Set<ImpressionNoiseParams> dataSet2 = Set.of(data2); in testHashCode_equals()
385 assertEquals(data1.hashCode(), data2.hashCode()); in testHashCode_equals()
386 assertEquals(data1, data2); in testHashCode_equals()
393 final ImpressionNoiseParams data2 = new ImpressionNoiseParams(1, 1, 1, 1); in testHashCode_notEquals() local
395 final Set<ImpressionNoiseParams> dataSet2 = Set.of(data2); in testHashCode_notEquals()
396 assertNotEquals(data1.hashCode(), data2.hashCode()); in testHashCode_notEquals()
397 assertNotEquals(data1, data2); in testHashCode_notEquals()
404 final ImpressionNoiseParams data2 = createExample(); in testToString() local
405 assertEquals(data1.toString(), data2.toString()); in testToString()
/packages/apps/Launcher3/quickstep/tests/multivalentTests/src/com/android/quickstep/util/
DTaskKeyByLastActiveTimeCacheTest.java44 ThumbnailData data2 = new ThumbnailData(); in add() local
45 cache.put(key2, data2); in add()
49 assertEquals(data2, cache.getAndInvalidateIfModified(key2)); in add()
67 ThumbnailData data2 = new ThumbnailData(); in addSameTasksWithSameLastActiveTimeTwice() local
68 cache.put(key2, data2); in addSameTasksWithSameLastActiveTimeTwice()
71 assertEquals(data2, cache.getAndInvalidateIfModified(key2)); in addSameTasksWithSameLastActiveTimeTwice()
89 ThumbnailData data2 = new ThumbnailData(); in addSameTasksWithDifferentLastActiveTime() local
90 cache.put(key2, data2); in addSameTasksWithDifferentLastActiveTime()
93 assertEquals(data2, cache.getAndInvalidateIfModified(key2)); in addSameTasksWithDifferentLastActiveTime()
/packages/apps/Dialer/java/com/android/contacts/common/
DMoreContactUtils.java41 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/tests/src/com/android/contacts/
DMoreContactUtilsTest.java152 CharSequence data1, CharSequence mimetype2, CharSequence data2) { in assertCollapses() argument
154 data2)); in assertCollapses()
155 assertEquals(message, expected, MoreContactUtils.shouldCollapse(mimetype2, data2, mimetype1, in assertCollapses()
160 if (data1 == data2 && data1 != null) { in assertCollapses()
162 final CharSequence data2_newref = new StringBuilder(data2).append("").toString(); in assertCollapses()
/packages/modules/Bluetooth/system/stack/test/
Dad_parser_unittest.cc41 const std::vector<uint8_t> data2{0x02, 0x02, 0x00, 0x02, 0x00}; in TEST() local
42 EXPECT_FALSE(AdvertiseDataParser::IsValid(data2)); in TEST()
69 const std::vector<uint8_t> data2{0x03, 0x02, 0x01, 0x02, in TEST() local
71 EXPECT_TRUE(AdvertiseDataParser::IsValid(data2)); in TEST()
/packages/apps/Contacts/src/com/android/contacts/
DMoreContactUtils.java48 CharSequence mimetype2, CharSequence data2) { 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/
DDataRowHandler.java200 final String data2 = values.getAsString(Data.DATA2); in handleHashIdForInsert() local
206 } else if (!TextUtils.isEmpty(data1) || !TextUtils.isEmpty(data2)) { in handleHashIdForInsert()
207 hashId = mDbHelper.generateHashId(data1, data2); in handleHashIdForInsert()
228 String data2 = values.getAsString(Data.DATA2); in handleHashIdForUpdate() local
235 data2 = values.containsKey(Data.DATA2) ? data2 : c.getString(1); in handleHashIdForUpdate()
241 String hashId = mDbHelper.generateHashId(data1, data2); in handleHashIdForUpdate()
/packages/modules/Connectivity/tests/common/java/android/net/
DTcpKeepalivePacketDataTest.kt52 val data2 = makeData() in <lambda>() constant
53 assertEquals(data1, data2) in <lambda>()
54 assertEquals(data1.hashCode(), data2.hashCode()) in <lambda>()
/packages/modules/Bluetooth/system/rust/tests/
Dgatt_callbacks_test.rs98 let data2 = [3, 4]; in test_sequential_reads() localVariable
118 callback_manager.send_response(CONN_ID, trans_id, Ok(data2.to_vec())).unwrap(); in test_sequential_reads()
122 assert_eq!(pending_read_2.await.unwrap(), Ok(data2.to_vec())); in test_sequential_reads()
132 let data2 = [3, 4]; in test_concurrent_reads() localVariable
154 callback_manager.send_response(CONN_ID, trans_id, Ok(data2.to_vec())).unwrap(); in test_concurrent_reads()
158 assert_eq!(pending_read_2.await.unwrap(), Ok(data2.to_vec())); in test_concurrent_reads()
/packages/modules/Permission/tests/functional/safetycenter/singleuser/src/android/safetycenter/functional/
DSafetyCenterNotificationTest.kt207 val data2 = in setSafetySourceData_withNotificationBehaviorDelay_sendsNotificationAfterDelay() constant
222 safetyCenterTestHelper.setData(uniqueSafetySourceId, data2) in setSafetySourceData_withNotificationBehaviorDelay_sendsNotificationAfterDelay()
488 val data2 = in setSafetySourceData_twiceWithSameIssueId_updatesNotification() constant
508 safetyCenterTestHelper.setData(uniqueSafetySourceId, data2) in setSafetySourceData_twiceWithSameIssueId_updatesNotification()
544 val data2 = safetySourceTestData.information in setSafetySourceData_twiceRemovingAnIssue_cancelsNotification() constant
555 safetyCenterTestHelper.setData(uniqueSafetySourceId, data2) in setSafetySourceData_twiceRemovingAnIssue_cancelsNotification()
564 val data2 = safetySourceTestData.information in setSafetySourceData_removingAnIssue_afterFlagTurnedOff_noNotificationChanges() constant
576 safetyCenterTestHelper.setData(uniqueSafetySourceId, data2) in setSafetySourceData_removingAnIssue_afterFlagTurnedOff_noNotificationChanges()
618 val data2 = in setSafetySourceData_withDismissedIssueId_doesNotNotify() constant
642 safetyCenterTestHelper.setData(uniqueSafetySourceId, data2) in setSafetySourceData_withDismissedIssueId_doesNotNotify()
[all …]
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/training/jni/
DJavaExampleStoreTest.java62 ByteString data2 = ByteString.copyFromUtf8("data2"); in testCreateExampleIterator_success() local
63 List<ByteString> data = ImmutableList.of(data1, data2); in testCreateExampleIterator_success()
71 assertThat(nativeIterator.next()).isEqualTo(data2.toByteArray()); in testCreateExampleIterator_success()

12