Home
last modified time | relevance | path

Searched refs:A (Results 1 – 25 of 1808) sorted by relevance

12345678910>>...73

/frameworks/native/libs/vr/libpdx/private/pdx/rpc/
Dtype_operators.h27 template <typename A, typename B>
28 using IsEquivalent = typename std::is_same<Decay<A>, Decay<B>>::type;
33 template <typename A, typename B>
34 struct And<A, B> : std::integral_constant<bool, A::value && B::value> {};
35 template <typename A, typename B, typename... Rest>
36 struct And<A, B, Rest...> : And<A, And<B, Rest...>> {};
52 template <typename A, typename B>
53 struct IsConvertible : IsEquivalent<A, B> {};
57 template <template <typename, typename...> class TT, typename A, typename B,
59 struct IsConvertible<TT<A, AnyA...>, TT<B, AnyB...>>
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/kotlin/
DUtils.kt27 fun <A, B, C> toTriple(a: A, bc: Pair<B, C>) = Triple(a, bc.first, bc.second) in <lambda>()
29 fun <A, B, C> toTriple(ab: Pair<A, B>, c: C) = Triple(ab.first, ab.second, c) in <lambda>()
31 fun <A, B, C, D> toQuad(a: A, b: B, c: C, d: D) = Quad(a, b, c, d) in <lambda>()
33 fun <A, B, C, D> toQuad(a: A, bcd: Triple<B, C, D>) = in <lambda>()
35 fun <A, B, C, D> toQuad(abc: Triple<A, B, C>, d: D) = in <lambda>()
38 fun <A, B, C, D, E> toQuint(a: A, b: B, c: C, d: D, e: E) = Quint(a, b, c, d, e) in <lambda>()
40 fun <A, B, C, D, E> toQuint(a: A, bcde: Quad<B, C, D, E>) = in <lambda>()
43 fun <A, B, C, D, E, F> toSextuple(a: A, bcdef: Quint<B, C, D, E, F>) = in <lambda>()
46 fun <A, B, C, D, E, F, G> toSeptuple(a: A, bcdefg: Sextuple<B, C, D, E, F, G>) = in <lambda>()
61 fun <A, B> Flow<A>.sampleFilter(b: Flow<B>, predicate: (B) -> Boolean): Flow<A> { in <lambda>()
[all …]
DParallel.kt24 suspend fun <A, B> Iterable<A>.flatMapParallel(transform: suspend (A) -> Iterable<B>): List<B> = in flatMapParallel()
28 suspend fun <A, B> Iterable<A>.mapNotNullParallel(transform: suspend (A) -> B?): List<B> = in flatMapParallel()
32 suspend fun <A, B> Iterable<A>.mapParallel(transform: suspend (A) -> B): List<B> = coroutineScope { in flatMapParallel()
37 suspend fun <K, A, B> Map<K, A>.mapValuesParallel( in mapValuesParallel()
38 transform: suspend (Map.Entry<K, A>) -> B in mapValuesParallel()
/frameworks/base/rs/java/android/renderscript/
DScriptIntrinsicBLAS.java279 …static void validateGEMV(Element e, int TransA, Allocation A, Allocation X, int incX, Allocation Y… in validateGEMV() argument
281 int M = A.getType().getY(); in validateGEMV()
282 int N = A.getType().getX(); in validateGEMV()
283 if (!A.getType().getElement().isCompatible(e) || in validateGEMV()
324 …public void SGEMV(@Transpose int TransA, float alpha, Allocation A, Allocation X, int incX, float … in SGEMV() argument
325 validateGEMV(Element.F32(mRS), TransA, A, X, incX, Y, incY); in SGEMV() local
326 int M = A.getType().getY(); in SGEMV()
327 int N = A.getType().getX(); in SGEMV()
328 …icBLAS_Single(getID(mRS), RsBlas_sgemv, TransA, 0, 0, 0, 0, M, N, 0, alpha, A.getID(mRS), X.getID(… in SGEMV()
346 …public void DGEMV(@Transpose int TransA, double alpha, Allocation A, Allocation X, int incX, doubl… in DGEMV() argument
[all …]
/frameworks/compile/slang/tests/P_warnings_rsSetElementAt/
Dsetelementat.rscript4 rs_allocation A;
21 rsSetElementAt(A, &a, 0, 0);
22 rsSetElementAt(A, &d, 0, 0);
23 rsSetElementAt(A, &a2, 0, 0);
24 rsSetElementAt(A, &a3, 0, 0);
25 rsSetElementAt(A, &a4, 0, 0);
26 rsSetElementAt(A, &c, 0, 0);
27 rsSetElementAt(A, &uc, 0, 0);
28 rsSetElementAt(A, &s, 0, 0);
29 rsSetElementAt(A, &us, 0, 0);
[all …]
/frameworks/rs/cpu_ref/
DrsCpuIntrinsicBLAS.cpp65 void** A, in initABC() argument
73 *A = ain[0]->mHal.drvState.lod[0].mallocPtr; in initABC()
150 void *A = nullptr; in walk_tiled_gemm() local
161 initABC(ain, sizeof(T_data) * vecSize, &A, &B, &C, &lda, &ldb, &ldc); in walk_tiled_gemm()
185 (T_data *)A + mStart * mStride * vecSize, lda, in walk_tiled_gemm()
251 void *A = nullptr; in invokeForEach() local
279 initABC(ain, sizeof(float), &A, &X, &Y, &lda, &ldb, &ldc); in invokeForEach()
280 cblas_sgemv(CblasRowMajor, TransA, call->M, call->N, call->alpha.f, (float*)A, in invokeForEach()
284 initABC(ain, sizeof(float), &A, &X, &Y, &lda, &ldb, &ldc); in invokeForEach()
286 call->alpha.f, (float*)A, lda, (float*)X, call->incX, in invokeForEach()
[all …]
DrsCpuBLASDispatch.h26 const float alpha, const float *A, const int lda,
32 const float *A, const int lda, const float *X,
36 const int N, const float *A, const int lda,
40 const int N, const int K, const float *A, const int lda,
47 const int N, const float *A, const int lda, float *X,
51 const int N, const int K, const float *A, const int lda,
59 const double alpha, const double *A, const int lda,
65 const double *A, const int lda, const double *X,
69 const int N, const double *A, const int lda,
73 const int N, const int K, const double *A, const int lda,
[all …]
/frameworks/rs/support/java/src/androidx/renderscript/
DScriptIntrinsicBLAS.java286 …static void validateGEMV(Element e, int TransA, Allocation A, Allocation X, int incX, Allocation Y…
288 int M = A.getType().getY();
289 int N = A.getType().getX();
290 if (!A.getType().getElement().isCompatible(e) ||
331 …public void SGEMV(@Transpose int TransA, float alpha, Allocation A, Allocation X, int incX, float … in SGEMV() argument
332 validateGEMV(Element.F32(mRS), TransA, A, X, incX, Y, incY); in SGEMV() local
333 int M = A.getType().getY(); in SGEMV()
334 int N = A.getType().getX(); in SGEMV()
337 long aID = A.getID(mRS); in SGEMV()
341 aID = getDummyAlloc(A); in SGEMV()
[all …]
/frameworks/rs/cpp/
DScriptIntrinsicBLAS.cpp109 float alpha, RsAllocation A, RsAllocation B, in nScriptIntrinsicBLAS_Single() argument
114 RsAllocation in_allocs[3] = {A, B, C}; in nScriptIntrinsicBLAS_Single()
123 double alpha, RsAllocation A, RsAllocation B, in nScriptIntrinsicBLAS_Double() argument
128 RsAllocation in_allocs[3] = {A, B, C}; in nScriptIntrinsicBLAS_Double()
136 float alphaX, float alphaY, RsAllocation A, RsAllocation B, in nScriptIntrinsicBLAS_Complex() argument
141 RsAllocation in_allocs[3] = {A, B, C}; in nScriptIntrinsicBLAS_Complex()
149 double alphaX, double alphaY, RsAllocation A, RsAllocation B, in nScriptIntrinsicBLAS_Z() argument
154 RsAllocation in_allocs[3] = {A, B, C}; in nScriptIntrinsicBLAS_Z()
162 RsAllocation A, int a_offset, RsAllocation B, int b_offset, in nScriptIntrinsicBLAS_BNNM() argument
175 RsAllocation in_allocs[3] = {A, B, C}; in nScriptIntrinsicBLAS_BNNM()
[all …]
/frameworks/base/core/tests/coretests/src/android/content/pm/
DSignatureTest.java30 …private static final Signature A = new Signature("308201D33082013CA0030201020219373565373461363A31… field in SignatureTest
45 assertTrue(areExactMatch(asArray(A), asArray(A))); in testExactlyEqual()
48 assertFalse(areExactMatch(asArray(A), asArray(B))); in testExactlyEqual()
49 assertFalse(areExactMatch(asArray(A), asArray(M))); in testExactlyEqual()
50 assertFalse(areExactMatch(asArray(M), asArray(A))); in testExactlyEqual()
52 assertTrue(areExactMatch(asArray(A, M), asArray(M, A))); in testExactlyEqual()
64 assertTrue(areEffectiveMatch(asArray(A), asArray(A))); in testEffectiveMatch()
67 assertFalse(areEffectiveMatch(asArray(A), asArray(B))); in testEffectiveMatch()
68 assertTrue(areEffectiveMatch(asArray(A), asArray(M))); in testEffectiveMatch()
69 assertTrue(areEffectiveMatch(asArray(M), asArray(A))); in testEffectiveMatch()
[all …]
/frameworks/base/core/java/com/android/internal/util/function/pooled/
DPooledLambda.java176 static <A> PooledRunnable obtainRunnable( in obtainRunnable()
177 Consumer<? super A> function, in obtainRunnable()
178 A arg1) { in obtainRunnable()
206 static <A> Message obtainMessage( in obtainMessage()
207 Consumer<? super A> function, in obtainMessage()
208 A arg1) { in obtainMessage()
227 static <A, B> PooledRunnable obtainRunnable( in obtainRunnable()
228 BiConsumer<? super A, ? super B> function, in obtainRunnable() argument
229 A arg1, B arg2) { in obtainRunnable()
245 static <A, B> PooledPredicate<A> obtainPredicate( in obtainPredicate()
[all …]
DOmniFunction.java53 abstract class OmniFunction<A, B, C, D, E, F, G, H, I, J, K, R> implements
54 BiFunction<A, B, R>, TriFunction<A, B, C, R>,
55 QuadFunction<A, B, C, D, R>, QuintFunction<A, B, C, D, E, R>,
56 HexFunction<A, B, C, D, E, F, R>, HeptFunction<A, B, C, D, E, F, G, R>,
57 OctFunction<A, B, C, D, E, F, G, H, R>, NonaFunction<A, B, C, D, E, F, G, H, I, R>,
58 DecFunction<A, B, C, D, E, F, G, H, I, J, R>,
59 UndecFunction<A, B, C, D, E, F, G, H, I, J, K, R>,
60 BiConsumer<A, B>, TriConsumer<A, B, C>, QuadConsumer<A, B, C, D>,
61 QuintConsumer<A, B, C, D, E>, HexConsumer<A, B, C, D, E, F>,
62 HeptConsumer<A, B, C, D, E, F, G>, OctConsumer<A, B, C, D, E, F, G, H>,
[all …]
/frameworks/av/media/libeffects/lvm/lib/Common/lib/
DLVM_Macros.h31 #define MUL32x32INTO32(A, B, C, ShiftR) \ argument
38 MUL32x32INTO32_HH = ((LVM_INT32)((LVM_INT16)((A) >> 16)) * ((LVM_INT16)((B) >> 16))); \
39 MUL32x32INTO32_HL = ((LVM_INT32)((B)&MUL32x32INTO32_mask) * ((LVM_INT16)((A) >> 16))); \
40 MUL32x32INTO32_LH = ((LVM_INT32)((A)&MUL32x32INTO32_mask) * ((LVM_INT16)((B) >> 16))); \
42 (LVM_INT32)((A)&MUL32x32INTO32_mask) * (LVM_INT32)((B)&MUL32x32INTO32_mask); \
73 #define MUL32x16INTO32(A, B, C, ShiftR) \ argument
79 MUL32x16INTO32_HH = ((LVM_INT32)(B) * ((LVM_INT16)((A) >> 16))); \
80 MUL32x16INTO32_LL = ((LVM_INT32)((A)&MUL32x16INTO32_mask) * (B)); \
98 #define ADD2_SAT_32x32(A, B, C) \ argument
100 (C) = (A) + (B); \
[all …]
/frameworks/base/tests/RollbackTest/RollbackTest/src/com/android/tests/rollback/
DMultiUserRollbackTest.java83 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(-1); in testMultipleUsersInstallV1()
85 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(1); in testMultipleUsersInstallV1()
86 InstallUtils.processUserData(TestApp.A); in testMultipleUsersInstallV1()
95 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(1); in testMultipleUsersUpgradeToV2()
97 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(2); in testMultipleUsersUpgradeToV2()
98 RollbackInfo rollback = RollbackUtils.waitForAvailableRollback(TestApp.A); in testMultipleUsersUpgradeToV2()
109 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(2); in testMultipleUsersUpdateUserData()
110 InstallUtils.processUserData(TestApp.A); in testMultipleUsersUpdateUserData()
120 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(1); in testMultipleUsersVerifyUserdataRollback()
121 InstallUtils.processUserData(TestApp.A); in testMultipleUsersVerifyUserdataRollback()
[all …]
DRollbackTest.java128 Uninstall.packages(TestApp.A); in testBasic()
129 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(-1); in testBasic()
131 if (hasRollbackInclude(rm.getRecentlyCommittedRollbacks(), TestApp.A)) { in testBasic()
137 assertThat(hasRollbackInclude(rm.getRecentlyCommittedRollbacks(), TestApp.A)).isFalse(); in testBasic()
139 waitForUnavailableRollback(TestApp.A); in testBasic()
143 rm.getRecentlyCommittedRollbacks(), TestApp.A)).isNull(); in testBasic()
147 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(1); in testBasic()
152 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(2); in testBasic()
155 RollbackInfo available = waitForAvailableRollback(TestApp.A); in testBasic()
169 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(1); in testBasic()
[all …]
DStagedRollbackTest.java87 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(1); in testPreviouslyAbandonedRollbacks_Phase1_InstallAndAbandon()
99 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(2); in testPreviouslyAbandonedRollbacks_Phase2_Rollback()
100 InstallUtils.processUserData(TestApp.A); in testPreviouslyAbandonedRollbacks_Phase2_Rollback()
104 rm.getAvailableRollbacks(), TestApp.A); in testPreviouslyAbandonedRollbacks_Phase2_Rollback()
110 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(1); in testPreviouslyAbandonedRollbacks_Phase3_VerifyRollback()
111 InstallUtils.processUserData(TestApp.A); in testPreviouslyAbandonedRollbacks_Phase3_VerifyRollback()
173 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(1); in testRollbackApexWithApkCrashing_Phase1_Install()
184 assertThat(InstallUtils.getInstalledVersion(TestApp.A)).isEqualTo(2); in testRollbackApexWithApkCrashing_Phase2_Crash()
190 Rollback.from(TestApp.A, 0).to(TestApp.A1)); in testRollbackApexWithApkCrashing_Phase2_Crash()
193 RollbackUtils.sendCrashBroadcast(TestApp.A, 4); in testRollbackApexWithApkCrashing_Phase2_Crash()
[all …]
/frameworks/base/cmds/incident_helper/testdata/
Dcpufreq.txt4 748800 N/A N/A 10547 10547
5 768000 22652 22652 N/A N/A
6 825600 N/A N/A 13173 13173
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
DUT_foreach.java26 private Allocation A; field in UT_foreach
39 A = Allocation.createTyped(RS, typeBuilder.create()); in initializeGlobals()
40 s.set_aRaw(A); in initializeGlobals()
49 s.forEach_root(A); in run()
51 s.forEach_foo(A, A); in run()
55 A.getType().destroy(); in run()
56 A.destroy(); in run()
DUT_foreach_bounds.java27 private Allocation A; field in UT_foreach_bounds
44 A = Allocation.createTyped(RS, typeBuilder.create()); in initializeGlobals()
45 s.set_aRaw(A); in initializeGlobals()
47 s.set_ain(A); in initializeGlobals()
48 s.set_aout(A); in initializeGlobals()
53 s.forEach_zero(A); in initializeGlobals()
57 s.forEach_root(A, sc); in initializeGlobals()
69 A.getType().destroy(); in run()
70 A.destroy(); in run()
DUT_noroot.java26 private Allocation A; field in UT_noroot
39 A = Allocation.createTyped(RS, typeBuilder.create()); in initializeGlobals()
40 s.set_aRaw(A); in initializeGlobals()
49 s.forEach_foo(A, A); in run()
53 A.getType().destroy(); in run()
54 A.destroy(); in run()
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
DUT_foreach.java28 private Allocation A; field in UT_foreach
41 A = Allocation.createTyped(RS, typeBuilder.create()); in initializeGlobals()
42 s.set_aRaw(A); in initializeGlobals()
51 s.forEach_root(A); in run()
53 s.forEach_foo(A, A); in run()
57 A.getType().destroy(); in run()
58 A.destroy(); in run()
DUT_foreach_bounds.java29 private Allocation A; field in UT_foreach_bounds
46 A = Allocation.createTyped(RS, typeBuilder.create()); in initializeGlobals()
47 s.set_aRaw(A); in initializeGlobals()
49 s.set_ain(A); in initializeGlobals()
50 s.set_aout(A); in initializeGlobals()
55 s.forEach_zero(A); in initializeGlobals()
59 s.forEach_root(A, sc); in initializeGlobals()
71 A.getType().destroy(); in run()
72 A.destroy(); in run()
DUT_noroot.java28 private Allocation A; field in UT_noroot
41 A = Allocation.createTyped(RS, typeBuilder.create()); in initializeGlobals()
42 s.set_aRaw(A); in initializeGlobals()
51 s.forEach_foo(A, A); in run()
55 A.getType().destroy(); in run()
56 A.destroy(); in run()
/frameworks/compile/slang/
Dlegacy_bitcode.h20 static inline uint64_t encodeLLVMAttributesForBitcode(llvm::AttributeSet A, in encodeLLVMAttributesForBitcode() argument
22 uint64_t EncodedAttrs = A.Raw(i) & 0xffff; in encodeLLVMAttributesForBitcode()
23 if (A.hasAttribute(i, llvm::Attribute::Alignment)) { in encodeLLVMAttributesForBitcode()
26 EncodedAttrs |= (A.getParamAlignment(i) << 16); in encodeLLVMAttributesForBitcode()
29 EncodedAttrs |= (A.Raw(i) & (0xfffull << 21)) << 11; in encodeLLVMAttributesForBitcode()
/frameworks/av/media/libeffects/lvm/tests/
Dsnr.cpp24 template <typename T, typename A = float>
25 std::pair<A, A> getSignalNoise(FILE* finp, FILE* fref) { in getSignalNoise()
29 A signal{}; in getSignalNoise()
30 A noise{}; in getSignalNoise()
43 const A value(ref[i]); in getSignalNoise()
44 const A diff(A(in[i]) - value); in getSignalNoise()

12345678910>>...73