Home
last modified time | relevance | path

Searched refs:M (Results 1 – 25 of 332) sorted by relevance

12345678910>>...14

/frameworks/base/services/permission/java/com/android/server/permission/access/immutable/
DIntReferenceMapExtensions.kt19 inline fun <I : Immutable<M>, M : I> IntReferenceMap<I, M>.allIndexed( in <lambda>()
30 inline fun <I : Immutable<M>, M : I> IntReferenceMap<I, M>.anyIndexed( in anyIndexed()
41 inline fun <I : Immutable<M>, M : I> IntReferenceMap<I, M>.forEachIndexed( in forEachIndexed()
49 inline fun <I : Immutable<M>, M : I> IntReferenceMap<I, M>.forEachReversedIndexed( in forEachReversedIndexed()
57 inline val <I : Immutable<M>, M : I> IntReferenceMap<I, M>.lastIndex: Int
60 inline fun <I : Immutable<M>, M : I> IntReferenceMap<I, M>.noneIndexed( in noneIndexed()
71 inline fun <I : Immutable<M>, M : I> MutableIntReferenceMap<I, M>.mutateOrPut( in mutateOrPut()
73 defaultValue: () -> M in mutateOrPut()
74 ): M { in mutateOrPut()
81 operator fun <I : Immutable<M>, M : I> MutableIntReferenceMap<I, M>.minusAssign(key: Int) { in minusAssign()
[all …]
DIndexedReferenceMapExtensions.kt19 inline fun <K, I : Immutable<M>, M : I> IndexedReferenceMap<K, I, M>.allIndexed( in <lambda>()
30 inline fun <K, I : Immutable<M>, M : I> IndexedReferenceMap<K, I, M>.anyIndexed( in anyIndexed()
41 inline fun <K, I : Immutable<M>, M : I> IndexedReferenceMap<K, I, M>.forEachIndexed( in forEachIndexed()
49 inline fun <K, I : Immutable<M>, M : I> IndexedReferenceMap<K, I, M>.forEachReversedIndexed( in forEachReversedIndexed()
57 inline val <K, I : Immutable<M>, M : I> IndexedReferenceMap<K, I, M>.lastIndex: Int
60 inline fun <K, I : Immutable<M>, M : I> IndexedReferenceMap<K, I, M>.noneIndexed( in noneIndexed()
71 inline fun <K, I : Immutable<M>, M : I> MutableIndexedReferenceMap<K, I, M>.mutateOrPut( in mutateOrPut()
73 defaultValue: () -> M in mutateOrPut()
74 ): M { in mutateOrPut()
82 inline operator fun <K, I : Immutable<M>, M : I> MutableIndexedReferenceMap<K, I, M>.minusAssign( in minusAssign()
[all …]
DIntReferenceMap.kt26 sealed class IntReferenceMap<I : Immutable<M>, M : I>(
27 internal val array: SparseArray<MutableReference<I, M>>
28 ) : Immutable<MutableIntReferenceMap<I, M>> {
44 override fun toMutable(): MutableIntReferenceMap<I, M> = MutableIntReferenceMap(this) in isEmpty()
54 class MutableIntReferenceMap<I : Immutable<M>, M : I>( in isEmpty()
55 array: SparseArray<MutableReference<I, M>> = SparseArray() in isEmpty()
56 ) : IntReferenceMap<I, M>(array) { in isEmpty()
58 intReferenceMap: IntReferenceMap<I, M> in isEmpty()
67 @Suppress("ReplaceGetOrSet") fun mutate(key: Int): M? = array.get(key)?.mutate() in isEmpty()
69 fun put(key: Int, value: M): I? = array.putReturnOld(key, MutableReference(value))?.get() in isEmpty()
[all …]
DIndexedReferenceMap.kt26 sealed class IndexedReferenceMap<K, I : Immutable<M>, M : I>(
27 internal val map: ArrayMap<K, MutableReference<I, M>>
28 ) : Immutable<MutableIndexedReferenceMap<K, I, M>> {
44 override fun toMutable(): MutableIndexedReferenceMap<K, I, M> = MutableIndexedReferenceMap(this) in isEmpty()
54 class MutableIndexedReferenceMap<K, I : Immutable<M>, M : I>( in isEmpty()
55 map: ArrayMap<K, MutableReference<I, M>> = ArrayMap() in isEmpty()
56 ) : IndexedReferenceMap<K, I, M>(map) { in isEmpty()
58 indexedReferenceMap: IndexedReferenceMap<K, I, M> in isEmpty()
67 @Suppress("ReplaceGetOrSet") fun mutate(key: K): M? = map.get(key)?.mutate() in isEmpty()
69 fun put(key: K, value: M): I? = map.put(key, MutableReference(value))?.get() in isEmpty()
[all …]
DMutableReference.kt36 class MutableReference<I : Immutable<M>, M : I>
37 private constructor(private var immutable: I, private var mutable: M?) {
38 constructor(mutable: M) : this(mutable, mutable)
48 fun mutate(): M { in get()
62 fun toImmutable(): MutableReference<I, M> = MutableReference(immutable, null) in toImmutable()
/frameworks/av/media/module/codecs/amrwb/dec/src/
Disf_extrapolation.cpp119 int16 IsfDiff[M - 2]; in isf_extrapolation()
126 HfIsf[M16k - 1] = HfIsf[M - 1]; in isf_extrapolation()
129 for (i = 1; i < (M - 1); i++) in isf_extrapolation()
136 for (i = 3; i < (M - 1); i++) in isf_extrapolation()
146 for (i = 0; i < (M - 2); i++) in isf_extrapolation()
154 for (i = 0; i < (M - 2); i++) in isf_extrapolation()
159 for (i = 7; i < (M - 2); i++) in isf_extrapolation()
169 for (i = 7; i < (M - 2); i++) in isf_extrapolation()
179 for (i = 7; i < (M - 2); i++) in isf_extrapolation()
206 for (i = M - 1; i < (M16k - 1); i++) in isf_extrapolation()
[all …]
De_pv_amrwbdec.h89 int16 ispold[M]; /* old isp (immittance spectral pairs)*/
90 int16 isfold[M]; /* old isf (frequency domain) */
91 int16 isf_buf[L_MEANBUF * M]; /* isf buffer(frequency domain) */
92 int16 past_isfq[M]; /* past isf quantizer */
97 int16 mem_syn_hi[M]; /* modified synthesis memory (MSB) */
98 int16 mem_syn_lo[M]; /* modified synthesis memory (LSB) */
127 int16 ScratchMem[L_SUBFR + L_SUBFR16k + ((L_SUBFR + M + M16k +1)<<1) + \
128 (2*L_FRAME + 1) + PIT_MAX + L_INTERPOL + NB_SUBFR*(M+1) \
129 + 3*(M+L_SUBFR) + M16k];
Ddtx_decoder_amr_wb.cpp139 pv_memcpy((void *)st->isf, (void *)isf_init, M*sizeof(*isf_init)); in dtx_dec_amr_wb_reset()
141 pv_memcpy((void *)st->isf_old, (void *)isf_init, M*sizeof(*isf_init)); in dtx_dec_amr_wb_reset()
145 pv_memcpy((void *)&st->isf_hist[i * M], (void *)isf_init, M*sizeof(*isf_init)); in dtx_dec_amr_wb_reset()
210 int32 L_isf[M], L_log_en_int, level32, ener32; in dtx_dec_amr_wb()
230 …pv_memcpy((void *)&st->isf_hist[ptr * M], (void *)&st->isf_hist[st->hist_ptr * M], M*sizeof(*st->i… in dtx_dec_amr_wb()
236 for (i = 0; i < M; i++) in dtx_dec_amr_wb()
247 for (j = 0; j < M; j++) in dtx_dec_amr_wb()
249 L_isf[j] = add_int32(L_isf[j], (int32)(st->isf_hist[i * M + j])); in dtx_dec_amr_wb()
263 for (j = 0; j < M; j++) in dtx_dec_amr_wb()
275 pv_memcpy((void *)st->isf_old, (void *)st->isf, M*sizeof(*st->isf)); in dtx_dec_amr_wb()
[all …]
/frameworks/native/libs/ui/
DTransform.cpp92 const mat33& M(mMatrix); in operator *() local
96 R[i][j] = M[i][j] * value; in operator *()
171 mat33& M(mMatrix); in set() local
172 M[0][0] = a; M[1][0] = b; in set()
173 M[0][1] = c; M[1][1] = d; in set()
174 M[0][2] = 0; M[1][2] = 0; in set()
194 mat33& M(H.mMatrix); in set() local
195 M[0][0] = -1; in set()
196 M[2][0] = w; in set()
202 mat33& M(V.mMatrix); in set() local
[all …]
/frameworks/av/media/module/codecs/amrnb/dec/src/
Ddtx_dec.cpp98 static const Word16 lsf_hist_mean_scale[M] =
308 Copy(&st->lsf_hist[0], &st->lsf_hist[M*i], M); in dtx_dec_reset()
310 memset(st->lsf_hist_mean, 0, sizeof(Word16)*M*DTX_HIST_SIZE); in dtx_dec_reset()
859 Word16 lsp_int[M]; in dtx_dec()
863 Word16 acoeff[M + 1]; in dtx_dec()
864 Word16 refl[M]; in dtx_dec()
876 Word16 lsf_int[M]; in dtx_dec()
877 Word16 lsf_int_variab[M]; in dtx_dec()
878 Word16 lsp_int_variab[M]; in dtx_dec()
879 Word16 acoeff_variab[M + 1]; in dtx_dec()
[all …]
Dpstfilt.cpp127 static const Word16 gamma3_MR122[M] =
133 static const Word16 gamma3[M] =
138 static const Word16 gamma4_MR122[M] =
144 static const Word16 gamma4[M] =
246 memset(state->mem_syn_pst, 0, sizeof(Word16)*M); in Post_Filter_reset()
248 memset(state->synth_buf, 0, sizeof(Word16)*(L_FRAME + M)); in Post_Filter_reset()
459 Word16 *syn_work = &st->synth_buf[M]; in Post_Filter()
493 Copy(Ap3, h, M + 1); in Post_Filter()
494 memset(&h[M + 1], 0, sizeof(Word16)*(L_H - M - 1)); in Post_Filter()
495 Syn_filt(Ap4, h, h, L_H, &h[M + 1], 0); in Post_Filter()
[all …]
Dd_plsf_3.cpp176 Word16 lsf1_r[M]; in D_plsf_3()
177 Word16 lsf1_q[M]; in D_plsf_3()
183 for (i = 0; i < M; i++) in D_plsf_3()
208 for (i = 0; i < M; i++) in D_plsf_3()
234 for (i = 0; i < M; i++) in D_plsf_3()
357 for (i = 0; i < M; i++) in D_plsf_3()
382 for (i = 0; i < M; i++) in D_plsf_3()
407 M, in D_plsf_3()
413 M); in D_plsf_3()
420 M, in D_plsf_3()
[all …]
Dd_plsf_5.cpp317 Word16 lsf1_r[M]; in D_plsf_5()
318 Word16 lsf2_r[M]; in D_plsf_5()
319 Word16 lsf1_q[M]; in D_plsf_5()
320 Word16 lsf2_q[M]; in D_plsf_5()
326 for (i = 0; i < M; i++) in D_plsf_5()
475 for (i = 0; i < M; i++) in D_plsf_5()
510 M, in D_plsf_5()
516 M, in D_plsf_5()
522 M); in D_plsf_5()
529 M, in D_plsf_5()
[all …]
/frameworks/base/core/tests/coretests/src/android/content/pm/
DSignatureTest.java32 …private static final Signature M = new Signature("308201D43082013CA0030201020219373565373461363A31… field in SignatureTest
46 assertTrue(areExactMatch(asArray(M), asArray(M))); 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()
65 assertTrue(areEffectiveMatch(asArray(M), asArray(M))); in testEffectiveMatch()
68 assertTrue(areEffectiveMatch(asArray(A), asArray(M))); in testEffectiveMatch()
69 assertTrue(areEffectiveMatch(asArray(M), asArray(A))); in testEffectiveMatch()
71 assertTrue(areEffectiveMatch(asArray(A, M), asArray(M, A))); in testEffectiveMatch()
72 assertTrue(areEffectiveMatch(asArray(A, B), asArray(M, B))); in testEffectiveMatch()
[all …]
/frameworks/av/media/module/codecs/amrwb/enc/inc/
Dcod_main.h41 Word16 mem_levinson[M + 2]; /* levinson routine memory */
42 Word16 ispold[M]; /* old isp (immittance spectral pairs) */
43 Word16 ispold_q[M]; /* quantized old isp */
44 Word16 past_isfq[M]; /* past isf quantizer */
48 Word16 mem_syn[M]; /* synthesis memory */
67 Word16 isfold[M]; /* old isf (frequency domain) */
69 Word16 mem_syn_hi[M]; /* modified synthesis memory (MSB) */
70 Word16 mem_syn_lo[M]; /* modified synthesis memory (LSB) */
75 Word16 mem_syn_hf[M]; /* HF synthesis memory */
/frameworks/av/media/module/codecs/amrnb/enc/src/
Ddtx_enc.cpp379 memcpy(&st->lsp_hist[i * M], lsp_init_data, M*sizeof(Word16)); in dtx_enc_reset()
383 memset(st->log_en_hist, 0, sizeof(Word16)*M); in dtx_enc_reset()
677 Word16 lsf[M]; in dtx_enc()
678 Word16 lsp[M]; in dtx_enc()
679 Word16 lsp_q[M]; in dtx_enc()
680 Word32 L_lsp[M]; in dtx_enc()
690 for (i = M - 1; i >= 0; i--) in dtx_enc()
708 for (j = M - 1; j >= 0; j--) in dtx_enc()
711 (Word32)(st->lsp_hist[i * M + j]), in dtx_enc()
725 for (j = M - 1; j >= 0; j--) in dtx_enc()
[all …]
/frameworks/av/media/module/codecs/amrnb/common/src/
Dint_lpc.cpp186 Word16 lsp[M]; in Int_lpc_1and3()
194 for (i = M >> 1; i != 0; i--) in Int_lpc_1and3()
217 for (i = M >> 1; i != 0; i--) in Int_lpc_1and3()
323 Word16 lsp[M]; in Int_lpc_1and3_2()
331 for (i = M >> 1; i != 0; i--) in Int_lpc_1and3_2()
342 for (i = M >> 1; i != 0; i--) in Int_lpc_1and3_2()
446 Word16 lsp[M]; in Int_lpc_1to3()
448 for (i = 0; i < M; i++) in Int_lpc_1to3()
465 for (i = 0; i < M; i++) in Int_lpc_1to3()
479 for (i = 0; i < M; i++) in Int_lpc_1to3()
[all …]
Dq_plsf_3.cpp1017 Word16 lsf1[M]; in Q_plsf_3()
1018 Word16 wf1[M]; in Q_plsf_3()
1019 Word16 lsf_p[M]; in Q_plsf_3()
1020 Word16 lsf_r1[M]; in Q_plsf_3()
1021 Word16 lsf1_q[M]; in Q_plsf_3()
1026 Word16 temp_r1[M]; in Q_plsf_3()
1027 Word16 temp_p[M]; in Q_plsf_3()
1035 M, in Q_plsf_3()
1048 for (i = 0; i < M; i++) in Q_plsf_3()
1068 for (i = 0; i < M; i++) in Q_plsf_3()
[all …]
Dq_plsf_5.cpp605 Word16 lsf1[M]; in Q_plsf_5()
606 Word16 lsf2[M]; in Q_plsf_5()
607 Word16 wf1[M]; in Q_plsf_5()
608 Word16 wf2[M]; in Q_plsf_5()
609 Word16 lsf_p[M]; in Q_plsf_5()
610 Word16 lsf_r1[M]; in Q_plsf_5()
611 Word16 lsf_r2[M]; in Q_plsf_5()
612 Word16 lsf1_q[M]; in Q_plsf_5()
613 Word16 lsf2_q[M]; in Q_plsf_5()
623 Lsp_lsf(lsp1, lsf1, M, pOverflow); in Q_plsf_5()
[all …]
/frameworks/compile/slang/
Dllvm-rs-as.cpp65 static void stripUnknownAttributes(llvm::Module *M) { in stripUnknownAttributes() argument
66 for (llvm::Function &F : *M) in stripUnknownAttributes()
70 static void WriteOutputFile(const Module *M, uint32_t ModuleTargetAPI) { in WriteOutputFile() argument
98 slang::writeBitcode(Out->os(), *M, in WriteOutputFile()
132 std::unique_ptr<Module> M(parseAssemblyFile(InputFilename, Err, Context)); in main() local
133 if (M.get() == 0) { in main()
141 if (verifyModule(*M.get(), &stream)) { in main()
149 stripUnknownAttributes(M.get()); in main()
151 if (DumpAsm) errs() << "Here's the assembly:\n" << *M.get(); in main()
154 WriteOutputFile(M.get(), ActualTargetAPI); in main()
/frameworks/compile/libbcc/lib/
DRSGlobalInfoPass.cpp110 bool runOnModule(llvm::Module &M) override { in runOnModule() argument
118 const llvm::DataLayout &DL = M.getDataLayout(); in runOnModule()
126 llvm::Type *VoidPtrTy = llvm::Type::getInt8PtrTy(M.getContext()); in runOnModule()
129 llvm::Type *Int32Ty = llvm::Type::getInt32Ty(M.getContext()); in runOnModule()
132 llvm::Type *SizeTy = llvm::Type::getIntNTy(M.getContext(), in runOnModule()
135 for (auto &GV : M.globals()) { in runOnModule()
170 llvm::ConstantDataArray::getString(M.getContext(), GVN); in runOnModule()
173 llvm::Value *V = M.getOrInsertGlobal(VarName.str(), C->getType()); in runOnModule()
206 llvm::Value *V = M.getOrInsertGlobal(kRsGlobalEntries, Int32Ty); in runOnModule()
219 V = M.getOrInsertGlobal(kRsGlobalNames, VoidPtrArrayTy); in runOnModule()
[all …]
/frameworks/native/include/ftl/details/
Dconcat.h66 template <std::size_t M>
67 struct StaticString<const char (&)[M], void> {
68 static constexpr std::size_t N = M - 1;
70 explicit constexpr StaticString(const char (&str)[M]) : view(str, N) {}
81 template <std::size_t M>
82 struct StaticString<Truncated<M>, void> {
83 static constexpr std::size_t N = M;
85 explicit constexpr StaticString(Truncated<M> str) : view(str.view.substr(0, N)) {}
/frameworks/av/media/module/codecs/amrwb/enc/src/
Ddtx.c114 Copy(isf_init, &st->isf_hist[i * M], M); in dtx_enc_reset()
160 …Word16 isf[M], /* o : CN ISF vector … in dtx_enc() argument
169 Word32 L_isf[M], ener32, level32; in dtx_enc()
175 for (i = 0; i < M; i++) in dtx_enc()
189 for (j = 0; j < M; j++) in dtx_enc()
310 Copy(isf_new, &st->isf_hist[st->hist_ptr * M], M); in dtx_buffer()
386 Word16 isf_tmp[2 * M]; in aver_isf_history()
395 for (i = 0; i < M; i++) in aver_isf_history()
397 isf_tmp[k * M + i] = isf_old[indices[k] * M + i]; in aver_isf_history()
398 isf_old[indices[k] * M + i] = isf_old[indices[2] * M + i]; in aver_isf_history()
[all …]
DvoAMRWBEnc.c52 static Word16 isp_init[M] =
58 static Word16 isf_init[M] =
87 Set_zero(cod_state->mem_syn, M); in Reset_encoder()
88 Set_zero(cod_state->past_isfq, M); in Reset_encoder()
107 Copy(isp_init, cod_state->ispold, M); in Reset_encoder()
108 Copy(isp_init, cod_state->ispold_q, M); in Reset_encoder()
127 Set_zero(cod_state->mem_syn_hf, M); in Reset_encoder()
128 Set_zero(cod_state->mem_syn_hi, M); in Reset_encoder()
129 Set_zero(cod_state->mem_syn_lo, M); in Reset_encoder()
133 Copy(isf_init, cod_state->isfold, M); in Reset_encoder()
[all …]
/frameworks/compile/libbcc/tools/bcc_strip_attr/
Dbcc_strip_attr.cpp76 virtual bool runOnModule(Module &M) { in runOnModule() argument
78 for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I) { in runOnModule()
121 std::unique_ptr<Module> M(LoadFile(argv[0], InputFilenames[0], Context)); in main() local
122 if (M.get() == 0) { in main()
131 PM.run(*M.get()); in main()
141 if (verifyModule(*M)) { in main()
147 Out.os() << *M; in main()
149 WriteBitcodeToFile(M.get(), Out.os()); in main()

12345678910>>...14