/packages/modules/Bluetooth/system/embdrv/encoder_for_aptxhd/src/ |
D | SubbandFunctions.h | 57 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 …]
|
D | SubbandFunctionsCommon.h | 254 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/ |
D | SubbandFunctions.h | 57 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 …]
|
D | SubbandFunctionsCommon.h | 257 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/ |
D | PerNameExecutorTest.java | 45 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 …]
|
D | SingleThreadNamedTaskExecutorTest.java | 42 MockTask a2 = addTask("a", 2); in testExecute() local 46 a2.waitForCompletion(); in testExecute()
|
/packages/apps/Contacts/tests/src/com/android/contacts/model/ |
D | AccountWithDataSetTest.java | 40 AccountWithDataSet a2 = new AccountWithDataSet("name2", "typeB", null); in testStringifyAndUnstringify() local 45 AccountWithDataSet a2r = AccountWithDataSet.unstringify(a2.stringify()); in testStringifyAndUnstringify() 49 assertEquals(a2, a2r); in testStringifyAndUnstringify() 55 MoreAsserts.assertNotEqual(a2, a1r); in testStringifyAndUnstringify() 56 MoreAsserts.assertNotEqual(a2, a3r); in testStringifyAndUnstringify() 72 AccountWithDataSet a2 = new AccountWithDataSet("name2", "typeB", null); in testStringifyListAndUnstringify() local 84 final List<AccountWithDataSet> listB = stringifyListAndUnstringify(a2, a1); in testStringifyListAndUnstringify() 86 assertEquals(a2, listB.get(0)); in testStringifyListAndUnstringify() 90 final List<AccountWithDataSet> listC = stringifyListAndUnstringify(a3, a2, a1); in testStringifyListAndUnstringify() 93 assertEquals(a2, listC.get(1)); in testStringifyListAndUnstringify() [all …]
|
/packages/modules/Telephony/services/QualifiedNetworksService/tests/src/com/android/telephony/qns/atoms/ |
D | AtomsQnsHandoverPingPongInfoTest.java | 151 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 …]
|
D | AtomsQnsRatPreferenceMismatchInfoTest.java | 197 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 …]
|
D | AtomsQnsHandoverTimeMillisInfoTest.java | 130 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()
|
D | AtomsQnsFallbackRestrictionChangedInfoTest.java | 219 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()
|
D | AtomsQnsImsCallDropStatsTest.java | 288 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()
|
D | AtomsQualifiedRatListChangedInfoTest.java | 455 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/stack/crypto_toolbox/ |
D | crypto_toolbox.cc | 60 uint8_t* a2, uint8_t* length) { in calculate_mac_key_or_ltk() argument 68 it = std::copy(a2, a2 + 7, it); in calculate_mac_key_or_ltk() 79 uint8_t* a2, Octet16* mac_key, Octet16* ltk) { in f5() argument 83 << ", A1=" << HexEncode(a1, 7) << ", A2=" << HexEncode(a2, 7); in f5() 94 *mac_key = calculate_mac_key_or_ltk(t, 0, key_id, n1, n2, a1, a2, length); in f5() 96 *ltk = calculate_mac_key_or_ltk(t, 1, key_id, n1, n2, a1, a2, length); in f5() 103 const Octet16& r, uint8_t* iocap, uint8_t* a1, uint8_t* a2) { in f6() argument 114 << ", A2=" << HexEncode(a2, 7); in f6() 118 it = std::copy(a2, a2 + 7, it); in f6()
|
/packages/modules/Bluetooth/system/test/mock/ |
D | mock_stack_crypto_toolbox.h | 100 uint8_t* a1, uint8_t* a2, Octet16* mac_key, Octet16* ltk)> 102 uint8_t* a1, uint8_t* a2, Octet16* mac_key, Octet16* ltk) {}}; 104 uint8_t* a1, uint8_t* a2, Octet16* mac_key, Octet16* ltk) { in operator() 105 body(w, n1, n2, a1, a2, mac_key, ltk); in operator() 116 uint8_t* a2)> 119 uint8_t* a2) { return octet16; }}; 122 uint8_t* a2) { in operator() 123 return body(w, n1, n2, r, iocap, a1, a2); in operator()
|
D | mock_stack_crypto_toolbox.cc | 71 uint8_t* a2, Octet16* mac_key, Octet16* ltk) { in f5() argument 73 test::mock::stack_crypto_toolbox::f5(w, n1, n2, a1, a2, mac_key, ltk); in f5() 76 const Octet16& r, uint8_t* iocap, uint8_t* a1, uint8_t* a2) { in f6() argument 78 return test::mock::stack_crypto_toolbox::f6(w, n1, n2, r, iocap, a1, a2); in f6()
|
/packages/modules/Bluetooth/system/gd/crypto_toolbox/ |
D | crypto_toolbox.cc | 60 uint8_t* a2, in calculate_mac_key_or_ltk() argument 68 it = std::copy(a2, a2 + 7, it); in calculate_mac_key_or_ltk() 78 void f5(uint8_t* w, const Octet16& n1, const Octet16& n2, uint8_t* a1, uint8_t* a2, Octet16* mac_ke… in f5() argument 91 *mac_key = calculate_mac_key_or_ltk(t, 0, key_id, n1, n2, a1, a2, length); in f5() 93 *ltk = calculate_mac_key_or_ltk(t, 1, key_id, n1, n2, a1, a2, length); in f5() 100 …const Octet16& n1, const Octet16& n2, const Octet16& r, uint8_t* iocap, uint8_t* a1, uint8_t* a2) { in f6() argument 110 it = std::copy(a2, a2 + 7, it); in f6()
|
D | crypto_toolbox_test.cc | 168 std::array<uint8_t, 7> a2{0x00, 0xa7, 0x13, 0x70, 0x2d, 0xcf, 0xc1}; in TEST() local 179 std::reverse(std::begin(a2), std::end(a2)); in TEST() 184 f5(dhkey_w.data(), n1, n2, a1.data(), a2.data(), &mac_key, <k); in TEST() 197 std::vector<uint8_t> a2{0x00, 0xa7, 0x13, 0x70, 0x2d, 0xcf, 0xc1}; in TEST() local 210 std::reverse(std::begin(a2), std::end(a2)); in TEST() 214 Octet16 aes_cmac = f6(MacKey, n1, n2, r, IOcap.data(), a1.data(), a2.data()); in TEST()
|
/packages/modules/Connectivity/framework/src/android/net/ |
D | IpPrefix.java | 273 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/Bluetooth/system/stack/test/ |
D | crypto_toolbox_test.cc | 195 std::array<uint8_t, 7> a2{0x00, 0xa7, 0x13, 0x70, 0x2d, 0xcf, 0xc1}; in TEST() local 207 std::reverse(std::begin(a2), std::end(a2)); in TEST() 212 f5(dhkey_w.data(), n1, n2, a1.data(), a2.data(), &mac_key, <k); in TEST() 228 std::vector<uint8_t> a2{0x00, 0xa7, 0x13, 0x70, 0x2d, 0xcf, 0xc1}; in TEST() local 242 std::reverse(std::begin(a2), std::end(a2)); in TEST() 246 Octet16 aes_cmac = f6(MacKey, n1, n2, r, IOcap.data(), a1.data(), a2.data()); in TEST()
|
/packages/modules/DnsResolver/ |
D | getaddrinfo.cpp | 1139 static int _common_prefix_len(const struct in6_addr* a1, const struct in6_addr* a2) { in _common_prefix_len() argument 1141 const char* p2 = (const char*) a2; in _common_prefix_len() 1168 const struct addrinfo_sort_elem* a2 = (const struct addrinfo_sort_elem*) ptr2; in _rfc6724_compare() local 1177 if (a1->has_src_addr != a2->has_src_addr) { in _rfc6724_compare() 1178 return a2->has_src_addr - a1->has_src_addr; in _rfc6724_compare() 1186 scope_src2 = _get_scope(&a2->src_addr.sa); in _rfc6724_compare() 1187 scope_dst2 = _get_scope(a2->ai->ai_addr); in _rfc6724_compare() 1209 label_src2 = _get_label(&a2->src_addr.sa); in _rfc6724_compare() 1210 label_dst2 = _get_label(a2->ai->ai_addr); in _rfc6724_compare() 1219 precedence2 = _get_precedence(a2->ai->ai_addr); in _rfc6724_compare() [all …]
|
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/imap/ |
D | DigestMd5Utils.java | 166 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/Bluetooth/system/stack/smp/ |
D | crypto_toolbox.h | 29 uint8_t* a1, uint8_t* a2, Octet16* mac_key, Octet16* ltk); 32 uint8_t* a2);
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/ |
D | geometry_utils.h | 40 static AK_FORCE_INLINE float getAngleDiff(const float a1, const float a2) { in getAngleDiff() argument 42 float delta = fabsf(a1 - a2); in getAngleDiff()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactsDatabaseHelperTest.java | 62 final AccountWithDataSet a2 = new AccountWithDataSet("a", null, null); in testGetOrCreateAccountId() local 69 assertNull(mDbHelper.getAccountIdOrNull(a2)); in testGetOrCreateAccountId() 76 final long a2id = mDbHelper.getOrCreateAccountIdInTransaction(a2); in testGetOrCreateAccountId() 98 assertEquals(a2id, mDbHelper.getOrCreateAccountIdInTransaction(a2)); in testGetOrCreateAccountId() 105 assertEquals((Long) a2id, mDbHelper.getAccountIdOrNull(a2)); in testGetOrCreateAccountId() 119 assertNull(mDbHelper.getAccountIdOrNull(a2)); in testGetOrCreateAccountId()
|