Home
last modified time | relevance | path

Searched refs:a2 (Results 1 – 25 of 33) sorted by relevance

12

/packages/modules/Bluetooth/system/embdrv/encoder_for_aptxhd/src/
DSubbandFunctions.h57 enum { a1 = 0, a2 = 1 }; in updatePredictorPoleCoefficients() enumerator
106 newCoeffs[a2] = acc; in updatePredictorPoleCoefficients()
108 if (newCoeffs[a2] < minusPointFiveQ21) { in updatePredictorPoleCoefficients()
109 newCoeffs[a2] = minusPointFiveQ21; in updatePredictorPoleCoefficients()
111 if (newCoeffs[a2] > pointFiveQ21) { in updatePredictorPoleCoefficients()
112 newCoeffs[a2] = pointFiveQ21; in updatePredictorPoleCoefficients()
119 Bacc += newCoeffs[a2]; in updatePredictorPoleCoefficients()
128 acc2 = PoleCoeffDataPt->m_poleCoeff[a2] << 8; in updatePredictorPoleCoefficients()
129 acc2 -= PoleCoeffDataPt->m_poleCoeff[a2] << 1; in updatePredictorPoleCoefficients()
142 newCoeffs[a2] = Bacc; in updatePredictorPoleCoefficients()
[all …]
DSubbandFunctionsCommon.h254 enum { a1 = 0, a2 = 1 }; in performPredictionFiltering() enumerator
266 accL = ((int64_t)poleCoeff[a2] * in performPredictionFiltering()
267 (int64_t)SubbandDataPt->m_predData.m_poleDelayLine[a2]); in performPredictionFiltering()
270 SubbandDataPt->m_predData.m_poleDelayLine[a2] = poleDelayLine; in performPredictionFiltering()
359 enum { a1 = 0, a2 = 1 }; in performPredictionFilteringLL() enumerator
371 accL = ((int64_t)poleCoeff[a2] * in performPredictionFilteringLL()
372 (int64_t)SubbandDataPt->m_predData.m_poleDelayLine[a2]); in performPredictionFilteringLL()
375 SubbandDataPt->m_predData.m_poleDelayLine[a2] = poleDelayLine; in performPredictionFilteringLL()
465 enum { a1 = 0, a2 = 1 }; in performPredictionFilteringHL() enumerator
477 accL = ((int64_t)poleCoeff[a2] * in performPredictionFilteringHL()
[all …]
/packages/modules/Bluetooth/system/embdrv/encoder_for_aptx/src/
DSubbandFunctions.h57 enum { a1 = 0, a2 = 1 }; in updatePredictorPoleCoefficients() enumerator
104 newCoeffs[a2] = acc; in updatePredictorPoleCoefficients()
106 if (newCoeffs[a2] < minusPointFiveQ21) { in updatePredictorPoleCoefficients()
107 newCoeffs[a2] = minusPointFiveQ21; in updatePredictorPoleCoefficients()
109 if (newCoeffs[a2] > pointFiveQ21) { in updatePredictorPoleCoefficients()
110 newCoeffs[a2] = pointFiveQ21; in updatePredictorPoleCoefficients()
118 Bacc += newCoeffs[a2]; in updatePredictorPoleCoefficients()
128 acc2 = PoleCoeffDataPt->m_poleCoeff[a2] << 8; in updatePredictorPoleCoefficients()
129 acc2 -= PoleCoeffDataPt->m_poleCoeff[a2] << 1; in updatePredictorPoleCoefficients()
142 newCoeffs[a2] = Bacc; in updatePredictorPoleCoefficients()
[all …]
DSubbandFunctionsCommon.h257 enum { a1 = 0, a2 = 1 }; in performPredictionFiltering() enumerator
269 accL = ((int64_t)poleCoeff[a2] * in performPredictionFiltering()
270 (int64_t)SubbandDataPt->m_predData.m_poleDelayLine[a2]); in performPredictionFiltering()
273 SubbandDataPt->m_predData.m_poleDelayLine[a2] = poleDelayLine; in performPredictionFiltering()
359 enum { a1 = 0, a2 = 1 }; in performPredictionFilteringLL() enumerator
371 accL = ((int64_t)poleCoeff[a2] * in performPredictionFilteringLL()
372 (int64_t)SubbandDataPt->m_predData.m_poleDelayLine[a2]); in performPredictionFilteringLL()
375 SubbandDataPt->m_predData.m_poleDelayLine[a2] = poleDelayLine; in performPredictionFilteringLL()
466 enum { a1 = 0, a2 = 1 }; in performPredictionFilteringHL() enumerator
478 accL = ((int64_t)poleCoeff[a2] * in performPredictionFilteringHL()
[all …]
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/util/
DPerNameExecutorTest.java45 MockTask a2 = addTask("a", 2); in testExecute() local
49 assertRanNever("step 0", a1, a2, a3, b1); in testExecute()
52 assertRanNever("step 1", a2, a3); in testExecute()
54 assertRanOnce("step 2", a1, b1, a2); in testExecute()
57 assertRanOnce("step 3", a1, b1, a2, a3); in testExecute()
59 assertRanOnce("step 4", a1, b1, a2, a3); in testExecute()
64 MockTask a2 = addTask("a", 2); in testCancelPendingTasks() local
69 assertRanNever("step 1", a2); in testCancelPendingTasks()
72 assertRanNever("step 1, after cancel", a2); in testCancelPendingTasks()
75 assertRanNever("step 2", a2); in testCancelPendingTasks()
[all …]
DSingleThreadNamedTaskExecutorTest.java42 MockTask a2 = addTask("a", 2); in testExecute() local
46 a2.waitForCompletion(); in testExecute()
/packages/apps/Contacts/tests/src/com/android/contacts/model/
DAccountWithDataSetTest.java41 AccountWithDataSet a2 = new AccountWithDataSet("name2", "typeB", null); in testStringifyAndUnstringify() local
46 AccountWithDataSet a2r = AccountWithDataSet.unstringify(a2.stringify()); in testStringifyAndUnstringify()
50 assertEquals(a2, a2r); in testStringifyAndUnstringify()
56 MoreAsserts.assertNotEqual(a2, a1r); in testStringifyAndUnstringify()
57 MoreAsserts.assertNotEqual(a2, a3r); in testStringifyAndUnstringify()
73 AccountWithDataSet a2 = new AccountWithDataSet("name2", "typeB", null); in testStringifyListAndUnstringify() local
85 final List<AccountWithDataSet> listB = stringifyListAndUnstringify(a2, a1); in testStringifyListAndUnstringify()
87 assertEquals(a2, listB.get(0)); in testStringifyListAndUnstringify()
91 final List<AccountWithDataSet> listC = stringifyListAndUnstringify(a3, a2, a1); in testStringifyListAndUnstringify()
94 assertEquals(a2, listC.get(1)); in testStringifyListAndUnstringify()
[all …]
/packages/modules/Telephony/services/QualifiedNetworksService/tests/src/com/android/telephony/qns/atoms/
DAtomsQnsHandoverPingPongInfoTest.java151 AtomsQnsHandoverPingPongInfo a1, a2; in testHashCode() local
154 a2 = new AtomsQnsHandoverPingPongInfo(3, 1, 0); in testHashCode()
155 assertNotEquals(a1.hashCode(), a2.hashCode()); in testHashCode()
158 a2 = new AtomsQnsHandoverPingPongInfo(mCountHandoverPingPong, mCarrierId, mSlotIndex); in testHashCode()
159 assertEquals(a1.hashCode(), a2.hashCode()); in testHashCode()
164 AtomsQnsHandoverPingPongInfo a1, a2; in testDimension() local
167 a2 = new AtomsQnsHandoverPingPongInfo(mCountHandoverPingPong, 1, mSlotIndex); in testDimension()
168 assertNotEquals(a1.getDimension(), a2.getDimension()); in testDimension()
171 a2 = new AtomsQnsHandoverPingPongInfo(mCountHandoverPingPong, mCarrierId, 1); in testDimension()
172 assertNotEquals(a1.getDimension(), a2.getDimension()); in testDimension()
[all …]
DAtomsQnsRatPreferenceMismatchInfoTest.java197 AtomsQnsRatPreferenceMismatchInfo a1, a2; in testHashCode() local
202 a2 = in testHashCode()
205 assertNotEquals(a1.hashCode(), a2.hashCode()); in testHashCode()
214 a2 = in testHashCode()
221 assertEquals(a1.hashCode(), a2.hashCode()); in testHashCode()
226 AtomsQnsRatPreferenceMismatchInfo a1, a2; in testDimension() local
231 a2 = in testDimension()
234 assertNotEquals(a1.getDimension(), a2.getDimension()); in testDimension()
239 a2 = in testDimension()
242 assertNotEquals(a1.getDimension(), a2.getDimension()); in testDimension()
[all …]
DAtomsQnsHandoverTimeMillisInfoTest.java130 AtomsQnsHandoverTimeMillisInfo a1, a2; in testHashCode() local
133 a2 = new AtomsQnsHandoverTimeMillisInfo(3000, 0); in testHashCode()
134 assertNotEquals(a1.hashCode(), a2.hashCode()); in testHashCode()
137 a2 = new AtomsQnsHandoverTimeMillisInfo(mTimeForHoSuccess, mSlotIndex); in testHashCode()
138 assertEquals(a1.hashCode(), a2.hashCode()); in testHashCode()
143 AtomsQnsHandoverTimeMillisInfo a1, a2; in testDimension() local
145 a2 = new AtomsQnsHandoverTimeMillisInfo(2000, 1); in testDimension()
146 assertNotEquals(a1.getDimension(), a2.getDimension()); in testDimension()
DAtomsQnsFallbackRestrictionChangedInfoTest.java219 AtomsQnsFallbackRestrictionChangedInfo a1, a2; in testHashCode() local
224 a2 = in testHashCode()
227 assertNotEquals(a1.hashCode(), a2.hashCode()); in testHashCode()
237 a2 = in testHashCode()
245 assertEquals(a1.hashCode(), a2.hashCode()); in testHashCode()
DAtomsQnsImsCallDropStatsTest.java288 AtomsQnsImsCallDropStats a1, a2; in testHashCode() local
301 a2 = in testHashCode()
312 assertNotEquals(a1.hashCode(), a2.hashCode()); in testHashCode()
325 a2 = in testHashCode()
336 assertEquals(a1.hashCode(), a2.hashCode()); in testHashCode()
DAtomsQualifiedRatListChangedInfoTest.java455 AtomsQualifiedRatListChangedInfo a1, a2; in testHashCode() local
477 a2 = in testHashCode()
497 assertNotEquals(a1.hashCode(), a2.hashCode()); in testHashCode()
498 a2 = in testHashCode()
518 assertEquals(a1.hashCode(), a2.hashCode()); in testHashCode()
/packages/modules/Bluetooth/system/gd/crypto_toolbox/
Dcrypto_toolbox.cc65 uint8_t* a2, in calculate_mac_key_or_ltk() argument
74 it = std::copy(a2, a2 + 7, it); in calculate_mac_key_or_ltk()
89 uint8_t* a2, in f5() argument
95 HexEncode(a1, 7), HexEncode(a2, 7)); in f5()
108 *mac_key = calculate_mac_key_or_ltk(t, 0, key_id, n1, n2, a1, a2, length); in f5()
110 *ltk = calculate_mac_key_or_ltk(t, 1, key_id, n1, n2, a1, a2, length); in f5()
119 …const Octet16& n1, const Octet16& n2, const Octet16& r, uint8_t* iocap, uint8_t* a1, uint8_t* a2) { in f6() argument
127 HexEncode(iocap, 3), HexEncode(a1, 7), HexEncode(a2, 7)); in f6()
132 it = std::copy(a2, a2 + 7, it); in f6()
Dcrypto_toolbox_test.cc169 std::array<uint8_t, 7> a2{0x00, 0xa7, 0x13, 0x70, 0x2d, 0xcf, 0xc1}; in TEST() local
180 std::reverse(std::begin(a2), std::end(a2)); in TEST()
185 f5(dhkey_w.data(), n1, n2, a1.data(), a2.data(), &mac_key, &ltk); in TEST()
198 std::vector<uint8_t> a2{0x00, 0xa7, 0x13, 0x70, 0x2d, 0xcf, 0xc1}; in TEST() local
211 std::reverse(std::begin(a2), std::end(a2)); in TEST()
215 Octet16 aes_cmac = f6(MacKey, n1, n2, r, IOcap.data(), a1.data(), a2.data()); in TEST()
Dcrypto_toolbox.h52 uint8_t* a2,
62 uint8_t* a2);
/packages/modules/Connectivity/framework/src/android/net/
DIpPrefix.java273 final byte[] a2 = prefix2.address; in lengthComparator() field in IpPrefix
274 final int len = a1.length < a2.length ? a1.length : a2.length; in lengthComparator()
276 if (a1[i] < a2[i]) return -1; in lengthComparator()
277 if (a1[i] > a2[i]) return 1; in lengthComparator()
279 if (a2.length < len) return 1; in lengthComparator()
/packages/modules/Connectivity/clatd/
Dconfig.h44 static inline int ipv6_prefix_equal(struct in6_addr *a1, struct in6_addr *a2) { in ipv6_prefix_equal() argument
45 return !memcmp(a1, a2, 8); in ipv6_prefix_equal()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/
Dgeometry_utils.h40 static AK_FORCE_INLINE float getAngleDiff(const float a1, const float a2) { in getAngleDiff() argument
42 float delta = fabsf(a1 - a2); in getAngleDiff()
/packages/modules/Connectivity/staticlibs/netd/libnetdutils/
DSliceTest.cpp124 A a1{}, a2{}; in TEST_F() local
126 size_t len = extract(buffer, a1, b, a2); in TEST_F()
130 EXPECT_EQ(origA2, a2); in TEST_F()
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/imap/
DDigestMd5Utils.java166 StringBuilder a2 = new StringBuilder(); in getResponse() local
168 a2.append("AUTHENTICATE"); in getResponse()
170 a2.append(":").append(data.digestUri); in getResponse()
183 + toHex(getMd5(a2.toString())))); in getResponse()
/packages/modules/DnsResolver/
Dgetaddrinfo.cpp1137 static int _common_prefix_len(const struct in6_addr* a1, const struct in6_addr* a2) { in _common_prefix_len() argument
1139 const char* p2 = (const char*) a2; in _common_prefix_len()
1166 const struct addrinfo_sort_elem* a2 = (const struct addrinfo_sort_elem*) ptr2; in _rfc6724_compare() local
1175 if (a1->has_src_addr != a2->has_src_addr) { in _rfc6724_compare()
1176 return a2->has_src_addr - a1->has_src_addr; in _rfc6724_compare()
1184 scope_src2 = _get_scope(&a2->src_addr.sa); in _rfc6724_compare()
1185 scope_dst2 = _get_scope(a2->ai->ai_addr); in _rfc6724_compare()
1207 label_src2 = _get_label(&a2->src_addr.sa); in _rfc6724_compare()
1208 label_dst2 = _get_label(a2->ai->ai_addr); in _rfc6724_compare()
1217 precedence2 = _get_precedence(a2->ai->ai_addr); in _rfc6724_compare()
[all …]
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsDatabaseHelperTest.java63 final AccountWithDataSet a2 = new AccountWithDataSet("a", null, null); in testGetOrCreateAccountId() local
70 assertNull(mDbHelper.getAccountIdOrNull(a2)); in testGetOrCreateAccountId()
77 final long a2id = mDbHelper.getOrCreateAccountIdInTransaction(a2); in testGetOrCreateAccountId()
99 assertEquals(a2id, mDbHelper.getOrCreateAccountIdInTransaction(a2)); in testGetOrCreateAccountId()
106 assertEquals((Long) a2id, mDbHelper.getAccountIdOrNull(a2)); in testGetOrCreateAccountId()
120 assertNull(mDbHelper.getAccountIdOrNull(a2)); in testGetOrCreateAccountId()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DRoundedLine.java85 final float a2 = 180.0f + ar2degree; in makePath() local
96 mPath.arcTo(mArc2, angle, a2); in makePath()
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/contentpreview/payloadtoggle/domain/update/
DSelectionChangeCallbackImplTest.kt156 val a2 = in <lambda>() constant
170 Bundle().apply { putParcelableArray(EXTRA_CHOOSER_CUSTOM_ACTIONS, arrayOf(a1, a2)) } in <lambda>()
181 .containsExactly(a1.icon to a1.label, a2.icon to a2.label) in <lambda>()

12