/system/incremental_delivery/incfs/tests/ |
D | MountRegistry_test.cpp | 40 MountRegistry::Mounts& r() { return mounts_; } in r() function in MountRegistryTest 44 r().addRoot("/root", "/backing"); in TEST_F() 45 ASSERT_STREQ("/root", r().rootFor("/root").data()); in TEST_F() 46 ASSERT_STREQ("/root", r().rootFor("/root/1").data()); in TEST_F() 47 ASSERT_STREQ("/root", r().rootFor("/root/1/2").data()); in TEST_F() 48 ASSERT_STREQ(nullptr, r().rootFor("/root1/1/2").data()); in TEST_F() 49 ASSERT_STREQ(nullptr, r().rootFor("/1/root").data()); in TEST_F() 50 ASSERT_STREQ(nullptr, r().rootFor("root").data()); in TEST_F() 54 r().addRoot("/root", "/backing"); in TEST_F() 55 r().addBind("/root/1", "/bind"); in TEST_F() [all …]
|
/system/tools/hidl/build/ |
D | hidl_package_root.go | 60 func (r *hidlPackageRoot) getFullPackageRoot() string { 61 return "-r" + r.Name() + ":" + *r.properties.Path 64 func (r *hidlPackageRoot) getCurrentPath() android.OptionalPath { 65 return r.currentPath 68 func (r *hidlPackageRoot) requireFrozen() bool { 69 return proptools.BoolDefault(r.properties.Require_frozen, false) 72 func (r *hidlPackageRoot) generateCurrentFile(ctx android.ModuleContext) { 73 if !r.currentPath.Valid() { 77 output := android.PathForModuleGen(ctx, r.Name()+".txt") 78 r.genOutputs = append(r.genOutputs, output) [all …]
|
/system/core/libutils/include/utils/ |
D | FastStrcmp.h | 42 template <int (*cmp)(const char* l, const char* r, const size_t s)> 43 static inline int fastcmp(const char* l, const char* r, const size_t s) { in fastcmp() argument 46 ((*l != *r) || (__predict_true(n > 1) && cmp(l + 1, r + 1, n - 1))); in fastcmp() 49 template <int (*cmp)(const char* l, const char* r, const size_t s)> 50 static inline int fasticmp(const char* l, const char* r, const size_t s) { in fasticmp() argument 53 ((tolower(*l) != tolower(*r)) || (__predict_true(n > 1) && cmp(l + 1, r + 1, n - 1))); in fasticmp() 56 template <int (*cmp)(const void* l, const void* r, const size_t s)> 59 const char* r = static_cast<const char*>(rv); in fastcmp() local 62 ((*l != *r) || (__predict_true(n > 1) && cmp(l + 1, r + 1, n - 1))); in fastcmp() 65 template <int (*cmp)(const char* l, const char* r)> [all …]
|
/system/chre/external/kiss_fft/ |
D | _kiss_fft_guts.h | 70 do{ (m).r = sround( smul((a).r,(b).r) - smul((a).i,(b).i) ); \ 71 (m).i = sround( smul((a).r,(b).i) + smul((a).i,(b).r) ); }while(0) 77 do { DIVSCALAR( (c).r , div); \ 81 do{ (c).r = sround( smul( (c).r , s ) ) ;\ 88 do{ (m).r = (a).r*(b).r - (a).i*(b).i;\ 89 (m).i = (a).r*(b).i + (a).i*(b).r; }while(0) 92 do{ (c).r *= (s);\ 102 CHECK_OVERFLOW_OP((a).r,+,(b).r)\ 104 (res).r=(a).r+(b).r; (res).i=(a).i+(b).i; \ 108 CHECK_OVERFLOW_OP((a).r,-,(b).r)\ [all …]
|
D | kiss_fftr.c | 92 tdc.r = st->tmpbuf[0].r; in kiss_fftr() 95 CHECK_OVERFLOW_OP(tdc.r ,+, tdc.i); in kiss_fftr() 96 CHECK_OVERFLOW_OP(tdc.r ,-, tdc.i); in kiss_fftr() 97 freqdata[0].r = tdc.r + tdc.i; in kiss_fftr() 98 freqdata[ncfft].r = tdc.r - tdc.i; in kiss_fftr() 107 fpnk.r = st->tmpbuf[ncfft-k].r; in kiss_fftr() 116 freqdata[k].r = HALF_OF(f1k.r + tw.r); in kiss_fftr() 118 freqdata[ncfft-k].r = HALF_OF(f1k.r - tw.r); in kiss_fftr() 135 st->tmpbuf[0].r = freqdata[0].r + freqdata[ncfft].r; in kiss_fftri() 136 st->tmpbuf[0].i = freqdata[0].r - freqdata[ncfft].r; in kiss_fftri() [all …]
|
D | kiss_fft.c | 78 Fout[m].r = scratch[5].r - scratch[4].i; in kf_bfly4() 79 Fout[m].i = scratch[5].i + scratch[4].r; in kf_bfly4() 80 Fout[m3].r = scratch[5].r + scratch[4].i; in kf_bfly4() 81 Fout[m3].i = scratch[5].i - scratch[4].r; in kf_bfly4() 83 Fout[m].r = scratch[5].r + scratch[4].i; in kf_bfly4() 84 Fout[m].i = scratch[5].i - scratch[4].r; in kf_bfly4() 85 Fout[m3].r = scratch[5].r - scratch[4].i; in kf_bfly4() 86 Fout[m3].i = scratch[5].i + scratch[4].r; in kf_bfly4() 119 Fout[m].r = Fout->r - HALF_OF(scratch[3].r); in kf_bfly3() 126 Fout[m2].r = Fout[m].r + scratch[0].i; in kf_bfly3() [all …]
|
/system/extras/simpleperf/ |
D | record_test.cpp | 63 SampleRecord r(event_attr, 0, 1, 0, 0, 0, 0, 0, {}, {}, 0); in TEST_F() local 64 ASSERT_TRUE(r.ExcludeKernelCallChain()); in TEST_F() 71 ASSERT_EQ(1u, r.ip_data.ip); in TEST_F() 106 SampleRecord r(event_attr, 0, 1, 2, 3, 4, 5, 6, {1}, std::vector<char>(stack_size), 10); in TEST_F() local 107 r.ReplaceRegAndStackWithCallChain({2, 3, 4, 5}); in TEST_F() 108 CheckRecordMatchBinary(r); in TEST_F() 109 CheckRecordEqual(r, expected); in TEST_F() 115 SampleRecord r(event_attr, 0, 1, 2, 3, 4, 5, 6, {1, PERF_CONTEXT_USER, 2}, {}, 0); in TEST_F() local 116 r.UpdateUserCallChain({3, 4, 5}); in TEST_F() 117 CheckRecordMatchBinary(r); in TEST_F() [all …]
|
D | thread_tree.cpp | 305 const MmapRecord& r = *static_cast<const MmapRecord*>(&record); in Update() local 306 if (r.InKernel()) { in Update() 307 AddKernelMap(r.data->addr, r.data->len, r.data->pgoff, r.filename); in Update() 309 AddThreadMap(r.data->pid, r.data->tid, r.data->addr, r.data->len, r.data->pgoff, r.filename); in Update() 312 const Mmap2Record& r = *static_cast<const Mmap2Record*>(&record); in Update() local 313 if (r.InKernel()) { in Update() 314 AddKernelMap(r.data->addr, r.data->len, r.data->pgoff, r.filename); in Update() 316 std::string filename = (r.filename == DEFAULT_EXECNAME_FOR_THREAD_MMAP) in Update() 318 : r.filename; in Update() 319 AddThreadMap(r.data->pid, r.data->tid, r.data->addr, r.data->len, r.data->pgoff, filename, in Update() [all …]
|
D | sample_tree.h | 86 void ProcessSampleRecord(const SampleRecord& r) { in ProcessSampleRecord() argument 87 if (use_branch_address_ && (r.sample_type & PERF_SAMPLE_BRANCH_STACK)) { in ProcessSampleRecord() 88 for (uint64_t i = 0; i < r.branch_stack_data.stack_nr; ++i) { in ProcessSampleRecord() 89 auto& item = r.branch_stack_data.stack[i]; in ProcessSampleRecord() 91 CreateBranchSample(r, item); in ProcessSampleRecord() 96 bool in_kernel = r.InKernel(); in ProcessSampleRecord() 98 EntryT* sample = CreateSample(r, in_kernel, &acc_info); in ProcessSampleRecord() 104 if (r.sample_type & PERF_SAMPLE_CALLCHAIN) { in ProcessSampleRecord() 105 ips.insert(ips.end(), r.callchain_data.ips, in ProcessSampleRecord() 106 r.callchain_data.ips + r.callchain_data.ip_nr); in ProcessSampleRecord() [all …]
|
D | cmd_debug_unwind.cpp | 108 void CollectHitFileInfo(const SampleRecord& r, const std::vector<uint64_t>& ips); 229 auto& r = *static_cast<SampleRecord*>(record); in ProcessRecord() local 230 if (selected_time_ != 0u && r.Timestamp() != selected_time_) { in ProcessRecord() 234 if ((r.sample_type & need_type) == need_type && r.regs_user_data.reg_mask != 0 && in ProcessRecord() 235 r.GetValidStackSize() > 0) { in ProcessRecord() 236 ThreadEntry* thread = thread_tree_.FindThreadOrNew(r.tid_data.pid, r.tid_data.tid); in ProcessRecord() 237 RegSet regs(r.regs_user_data.abi, r.regs_user_data.reg_mask, r.regs_user_data.regs); in ProcessRecord() 240 if (!offline_unwinder_->UnwindCallChain(*thread, regs, r.stack_user_data.data, in ProcessRecord() 241 r.GetValidStackSize(), &ips, &sps)) { in ProcessRecord() 250 if (!writer_->WriteRecord(UnwindingResultRecord(r.time_data.time, unwinding_result))) { in ProcessRecord() [all …]
|
/system/core/libprocinfo/testdata/ |
D | maps | 3 6fd6e000-6fd82000 r--p 00211000 103:1d 639511 /data/dalvik-cache/arm64/s… 5 6fe47000-6fe52000 r--p 000c5000 103:1d 639514 /data/dalvik-cache/arm64/s… 7 6fe84000-6fe87000 r--p 00032000 103:1d 639517 /data/dalvik-cache/arm64/s… 9 6feb2000-6feb5000 r--p 0002b000 103:1d 639520 /data/dalvik-cache/arm64/s… 11 6fef4000-6fefb000 r--p 0003f000 103:1d 639523 /data/dalvik-cache/arm64/s… 13 6ff3f000-6ff45000 r--p 00044000 103:1d 639526 /data/dalvik-cache/arm64/s… 15 6ff7a000-6ff85000 r--p 00035000 103:1d 639529 /data/dalvik-cache/arm64/s… 17 70594000-705cb000 r--p 0060f000 103:1d 639532 /data/dalvik-cache/arm64/s… 19 7061f000-70629000 r--p 00054000 103:1d 639535 /data/dalvik-cache/arm64/s… 21 70635000-70636000 r--p 0000c000 103:1d 639538 /data/dalvik-cache/arm64/s… [all …]
|
/system/core/libunwindstack/tests/files/offline/jit_debug_arm/ |
D | maps.txt | 1 ab0d3000-ab0d8000 r-xp 0 00:00 0 dalvikvm32 2 dfe4e000-dfe7b000 r-xp 0 00:00 0 libarttestd.so 3 e0445000-e0447000 r--p 0 00:00 0 137-cfi.odex 4 e0447000-e0448000 r-xp 2000 00:00 0 137-cfi.odex 5 e2796000-e4796000 r-xp 0 00:00 0 anonymous:e2796000 6 e648e000-e690f000 r-xp 0 00:00 0 libart.so 8 ed306000-ed801000 r-xp 0 00:00 0 libartd.so 10 eda88000-edb23000 r-xp 0 00:00 0 libc.so 11 ede4e000-ede50000 r-xp 0 00:00 0 anonymous:ede4e000
|
/system/core/libpixelflinger/ |
D | fixed.cpp | 42 uint32_t r = a; in gglRecipQNormalized() local 47 r = (0x2E800 << (30-16)) - (r>>(2-1)); // 2.30, r = 2.90625 - 2*a in gglRecipQNormalized() 50 r = (((2LU<<30) - uint32_t((uint64_t(a)*r) >> 32)) * uint64_t(r)) >> 30; in gglRecipQNormalized() 51 r = (((2LU<<30) - uint32_t((uint64_t(a)*r) >> 32)) * uint64_t(r)) >> 30; in gglRecipQNormalized() 56 r >>= 1; in gglRecipQNormalized() 57 return s ? -r : r; in gglRecipQNormalized() 100 GGLfixed r = 0; in gglSqrtx() local 104 GGLfixed temp = bit + (r<<1); in gglSqrtx() 108 r += bit; in gglSqrtx() 113 return r; in gglSqrtx() [all …]
|
/system/sepolicy/tests/ |
D | searchpolicy.py | 64 for r in TERules: 65 if len(r.perms) > 1: 66 rules.append("allow " + r.sctx + " " + r.tctx + ":" + r.tclass + " { " + 67 " ".join(r.perms) + " };") 69 rules.append("allow " + r.sctx + " " + r.tctx + ":" + r.tclass + " " + 70 " ".join(r.perms) + ";") 72 for r in sorted(rules): 73 print r
|
/system/core/libunwindstack/tests/files/offline/shared_lib_in_apk_arm64/ |
D | maps.txt | 1 7dabc03000-7dabc3f000 r--p 4000 00:00 0 ANGLEPrebuilt.apk 2 7dabc3f000-7dabcf0000 r-xp 40000 00:00 0 ANGLEPrebuilt.apk 3 7e7ee48000-7e7ee88000 r--p 0 00:00 0 libc.so 4 7e7ee88000-7e7ef32000 r-xp 40000 00:00 0 libc.so 5 7e82b01000-7e82b03000 r-xp 0 00:00 0 vdso.so 6 7e82b03000-7e82b3c000 r--p 0 00:00 0 linker64 7 7e82b3c000-7e82c77000 r-xp 39000 00:00 0 linker64
|
/system/core/libunwindstack/tests/files/offline/shared_lib_in_apk_memory_only_arm64/ |
D | maps.txt | 1 7dabc03000-7dabc3f000 r--p 21d5000 00:00 0 ANGLEPrebuilt.apk 2 7dabc3f000-7dabcf0000 r-xp 2211000 00:00 0 ANGLEPrebuilt.apk 3 7e7ee48000-7e7ee88000 r--p 0 00:00 0 libc.so 4 7e7ee88000-7e7ef32000 r-xp 40000 00:00 0 libc.so 5 7e82b01000-7e82b03000 r-xp 0 00:00 0 vdso.so 6 7e82b03000-7e82b3c000 r--p 0 00:00 0 linker64 7 7e82b3c000-7e82c77000 r-xp 39000 00:00 0 linker64
|
/system/core/libunwindstack/tests/files/offline/jit_debug_x86/ |
D | maps.txt | 1 56573000-56577000 r-xp 0 00:00 0 dalvikvm32 2 eb833000-eb8cc000 r-xp 0 00:00 0 libarttestd.so 3 ec604000-ec606000 r--p 0 00:00 0 137-cfi.odex 4 ec606000-ec607000 r-xp 2000 00:00 0 137-cfi.odex 5 ee74c000-f074c000 r-xp 0 00:00 0 anonymous:ee74c000 6 f6be1000-f732b000 r-xp 0 00:00 0 libartd.so 8 f734b000-f74fc000 r-xp 0 00:00 0 libc.so
|
/system/core/libunwindstack/tests/files/offline/load_bias_different_section_bias_arm64/ |
D | maps.txt | 1 5f73997000-5f739dc000 r--p 0 00:00 0 test 2 5f739dc000-5f73a43000 r-xp 44000 00:00 0 test 3 711152c000-711156e000 r--p 0 00:00 0 libc.so 5 7112be2000-7112be4000 r-xp 0 00:00 0 vdso 6 7112be4000-7112c1c000 r--p 0 00:00 0 linker64 7 7112c1c000-7112ce1000 r-xp 38000 00:00 0 linker64
|
/system/extras/tests/timetest/ |
D | timetest.c | 28 struct timespec r; in ts_sub() local 29 r.tv_sec = a.tv_sec - b.tv_sec; in ts_sub() 30 r.tv_nsec = a.tv_nsec - b.tv_nsec; in ts_sub() 31 if(r.tv_nsec < 0) { in ts_sub() 32 r.tv_sec--; in ts_sub() 33 r.tv_nsec += 1000 * 1000 * 1000; in ts_sub() 35 if(r.tv_sec < 0 && r.tv_nsec > 0) { in ts_sub() 36 r.tv_sec++; in ts_sub() 37 r.tv_nsec -= 1000 * 1000 * 1000; in ts_sub() 39 return r; in ts_sub()
|
/system/media/audio_utils/ |
D | fixedfft.cpp | 109 int scale = LOG_FFT_SIZE, i, p, r; in fixed_fft() local 111 for (r = 0, i = 1; i < n; ++i) { in fixed_fft() 112 for (p = n; !(p & r); p >>= 1, r ^= p); in fixed_fft() 113 if (i < r) { in fixed_fft() 115 v[i] = v[r]; in fixed_fft() 116 v[r] = t; in fixed_fft() 130 for (r = 1; r < p; ++r) { in fixed_fft() 131 int32_t w = MAX_FFT_SIZE / 4 - (r << scale); in fixed_fft() 134 for (i = r; i < n; i += p << 1) { in fixed_fft()
|
/system/tools/hidl/test/hash_test/ |
D | Android.bp | 7 " -r android.hidl:system/libhidl/transport" + 8 " -r test.hash:system/tools/hidl/test/hash_test/correct_hash" + 12 " -r android.hidl:system/libhidl/transport" + 13 " -r test.hash:system/tools/hidl/test/hash_test/missing_hash" + 17 " -r android.hidl:system/libhidl/transport" + 18 " -r test.hash:system/tools/hidl/test/hash_test/incorrect_hash" + 22 " -r android.hidl:system/libhidl/transport" + 23 " -r test.hash:system/tools/hidl/test/hash_test/incorrect_hash" +
|
/system/libufdt/sysdeps/ |
D | libufdt_sysdeps_vendor.c | 101 int d, r, swaptype, swap_cnt; in qsort() local 129 while (pb <= pc && (r = cmp(pb, a)) <= 0) { in qsort() 130 if (r == 0) { in qsort() 137 while (pb <= pc && (r = cmp(pc, a)) >= 0) { in qsort() 138 if (r == 0) { in qsort() 158 r = min(pa - (char *)a, pb - pa); in qsort() 159 vecswap(a, pb - r, r); in qsort() 160 r = min(pd - pc, pn - pd - (int)es); in qsort() 161 vecswap(pb, pn - r, r); in qsort() 162 if ((r = pb - pa) > (int)es) qsort(a, r / es, es, cmp); in qsort() [all …]
|
/system/core/libunwindstack/tests/files/offline/signal_load_bias_arm/ |
D | maps.txt | 1 b66b7000-b670c000 r--p 0 00:00 0 libunwindstack_unit_test 2 b670c000-b69a8000 r-xp 54000 00:00 0 libunwindstack_unit_test 3 f23a6000-f23d0000 r--p 0 00:00 0 libc.so 4 f23d0000-f2451000 r-xp 29000 00:00 0 libc.so
|
/system/core/libunwindstack/tests/files/offline/offset_arm/ |
D | maps.txt | 1 2b2a000-2b6c000 r--p 0 00:00 0 libunwindstack_test 2 2b6c000-2e92000 r-xp 42000 00:00 0 libunwindstack_test 3 f4110000-f4135000 r--p 0 00:00 0 libc.so 4 f4135000-f41a9000 r-xp 25000 00:00 0 libc.so
|
/system/core/adb/ |
D | adb_io.cpp | 83 int r = adb_read(fd, p, len); in ReadFdExactly() local 84 if (r > 0) { in ReadFdExactly() 85 len -= r; in ReadFdExactly() 86 p += r; in ReadFdExactly() 87 } else if (r == -1) { in ReadFdExactly() 105 int r; in WriteFdExactly() local 111 r = adb_write(fd, p, len); in WriteFdExactly() 112 if (r == -1) { in WriteFdExactly() 125 len -= r; in WriteFdExactly() 126 p += r; in WriteFdExactly()
|