/system/chre/chpp/clients/ |
D | timesync.c | 60 struct ChppTimesyncClientState *state = appState->timesyncClientContext; in chppTimesyncClientInit() local 62 memset(state, 0, sizeof(struct ChppTimesyncClientState)); in chppTimesyncClientInit() 63 state->client.appContext = appState; in chppTimesyncClientInit() 64 state->timesyncResult.error = CHPP_APP_ERROR_NONE; in chppTimesyncClientInit() 66 chppClientInit(&state->client, CHPP_HANDLE_TIMESYNC); in chppTimesyncClientInit() 67 state->timesyncResult.error = CHPP_APP_ERROR_UNSPECIFIED; in chppTimesyncClientInit() 68 state->client.openState = CHPP_OPEN_STATE_OPENED; in chppTimesyncClientInit() 82 struct ChppTimesyncClientState *state = appState->timesyncClientContext; in chppTimesyncClientReset() local 83 CHPP_NOT_NULL(state); in chppTimesyncClientReset() 85 state->timesyncResult.error = CHPP_APP_ERROR_NONE; in chppTimesyncClientReset() [all …]
|
D | loopback.c | 63 struct ChppLoopbackClientState *state = appState->loopbackClientContext; in chppLoopbackClientInit() local 64 memset(state, 0, sizeof(struct ChppLoopbackClientState)); in chppLoopbackClientInit() 66 state->client.appContext = appState; in chppLoopbackClientInit() 67 chppClientInit(&state->client, CHPP_HANDLE_LOOPBACK); in chppLoopbackClientInit() 68 state->testResult.error = CHPP_APP_ERROR_NONE; in chppLoopbackClientInit() 69 state->client.openState = CHPP_OPEN_STATE_OPENED; in chppLoopbackClientInit() 87 struct ChppLoopbackClientState *state = appState->loopbackClientContext; in chppDispatchLoopbackServiceResponse() local 88 CHPP_NOT_NULL(state); in chppDispatchLoopbackServiceResponse() 89 CHPP_NOT_NULL(state->loopbackData); in chppDispatchLoopbackServiceResponse() 92 state->client.appContext, &state->runLoopbackTest, in chppDispatchLoopbackServiceResponse() [all …]
|
/system/media/audio_utils/benchmarks/ |
D | audio_mutex_benchmark.cpp | 128 static void BM_atomic_add_equals(benchmark::State &state) { in BM_atomic_add_equals() argument 131 while (state.KeepRunning()) { in BM_atomic_add_equals() 140 static void BM_atomic_add_to(benchmark::State &state, std::memory_order order) { in BM_atomic_add_to() argument 143 while (state.KeepRunning()) { in BM_atomic_add_to() 151 static void BM_atomic_add_to_seq_cst(benchmark::State &state) { in BM_atomic_add_to_seq_cst() argument 152 BM_atomic_add_to<T>(state, std::memory_order_seq_cst); in BM_atomic_add_to_seq_cst() 166 static void BM_atomic_add_to_relaxed(benchmark::State &state) { in BM_atomic_add_to_relaxed() argument 167 BM_atomic_add_to<T>(state, std::memory_order_relaxed); in BM_atomic_add_to_relaxed() 181 static void BM_atomic_add_to_unordered(benchmark::State &state) { in BM_atomic_add_to_unordered() argument 184 while (state.KeepRunning()) { in BM_atomic_add_to_unordered() [all …]
|
D | primitives_benchmark.cpp | 25 static void BM_MemcpyToFloatFromFloatWithClamping(benchmark::State& state) { in BM_MemcpyToFloatFromFloatWithClamping() argument 26 const size_t count = state.range(0); in BM_MemcpyToFloatFromFloatWithClamping() 27 const float srcMax = state.range(1); in BM_MemcpyToFloatFromFloatWithClamping() 43 while (state.KeepRunning()) { in BM_MemcpyToFloatFromFloatWithClamping() 51 state.SkipWithError("Incorrect clamping!"); in BM_MemcpyToFloatFromFloatWithClamping() 53 state.SetComplexityN(state.range(0)); in BM_MemcpyToFloatFromFloatWithClamping() 58 static void BM_MemcpyFloat(benchmark::State& state) { in BM_MemcpyFloat() argument 59 const size_t count = state.range(0); in BM_MemcpyFloat() 72 while (state.KeepRunning()) { in BM_MemcpyFloat() 80 state.SkipWithError("Incorrect memcpy!"); in BM_MemcpyFloat() [all …]
|
D | statistics_benchmark.cpp | 36 static void BM_MeanVariance(benchmark::State& state, int iterlimit, int alphalimit) { in BM_MeanVariance() argument 47 while (state.KeepRunning()) { in BM_MeanVariance() 59 state.SetComplexityN(count); in BM_MeanVariance() 72 static void BM_MeanVariance_float_float_float(benchmark::State &state) { in BM_MeanVariance_float_float_float() argument 73 BM_MeanVariance<android::audio_utils::Statistics<float, float, float>>(state, in BM_MeanVariance_float_float_float() 80 static void BM_RefMeanVariance_float_float(benchmark::State &state) { in BM_RefMeanVariance_float_float() argument 81 BM_MeanVariance<android::audio_utils::ReferenceStatistics<float, float>>(state, in BM_RefMeanVariance_float_float() 88 static auto BM_MeanVariance_float_double_double(benchmark::State &state) { in BM_MeanVariance_float_double_double() argument 89 BM_MeanVariance<android::audio_utils::Statistics<float, double, double>>(state, in BM_MeanVariance_float_double_double() 96 static auto BM_RefMeanVariance_float_double(benchmark::State &state) { in BM_RefMeanVariance_float_double() argument [all …]
|
D | channelmix_benchmark.cpp | 178 static void BenchmarkChannelMix(benchmark::State& state) { in BenchmarkChannelMix() argument 179 const audio_channel_mask_t channelMask = kChannelPositionMasks[state.range(0)]; in BenchmarkChannelMix() 197 for (auto _ : state) { in BenchmarkChannelMix() 204 state.SetComplexityN(inChannels); in BenchmarkChannelMix() 205 state.SetLabel(audio_channel_out_mask_to_string(channelMask)); in BenchmarkChannelMix() 208 static void BM_ChannelMix_Stereo(benchmark::State& state) { in BM_ChannelMix_Stereo() argument 209 BenchmarkChannelMix<AUDIO_CHANNEL_OUT_STEREO>(state); in BM_ChannelMix_Stereo() 212 static void BM_ChannelMix_5Point1(benchmark::State& state) { in BM_ChannelMix_5Point1() argument 213 BenchmarkChannelMix<AUDIO_CHANNEL_OUT_5POINT1>(state); in BM_ChannelMix_5Point1() 216 static void BM_ChannelMix_7Point1(benchmark::State& state) { in BM_ChannelMix_7Point1() argument [all …]
|
/system/unwinding/libunwindstack/benchmarks/ |
D | SymbolBenchmark.cpp | 34 void RunBenchmark(benchmark::State& state, const std::vector<uint64_t>& offsets, in RunBenchmark() argument 37 for (const auto& _ : state) { in RunBenchmark() 38 state.PauseTiming(); in RunBenchmark() 40 state.ResumeTiming(); in RunBenchmark() 61 state.PauseTiming(); in RunBenchmark() 63 state.ResumeTiming(); in RunBenchmark() 65 mem_tracker.SetBenchmarkCounters(state); in RunBenchmark() 68 void RunBenchmark(benchmark::State& state, uint64_t pc, const std::string& elf_file, in RunBenchmark() argument 70 RunBenchmark(state, std::vector<uint64_t>{pc}, elf_file, expect_found, runs); in RunBenchmark() 74 BENCHMARK_F(SymbolLookupBenchmark, BM_symbol_lookup_not_present)(benchmark::State& state) { in BENCHMARK_F() [all …]
|
D | ElfBenchmark.cpp | 34 void RunBenchmark(benchmark::State& state, const std::string& elf_file) { in RunBenchmark() argument 36 for (const auto& _ : state) { in RunBenchmark() 37 state.PauseTiming(); in RunBenchmark() 41 state.ResumeTiming(); in RunBenchmark() 48 state.PauseTiming(); in RunBenchmark() 50 state.ResumeTiming(); in RunBenchmark() 52 mem_tracker.SetBenchmarkCounters(state); in RunBenchmark() 56 BENCHMARK_F(ElfCreateBenchmark, BM_elf_create)(benchmark::State& state) { in BENCHMARK_F() 57 RunBenchmark(state, GetElfFile()); in BENCHMARK_F() 60 BENCHMARK_F(ElfCreateBenchmark, BM_elf_create_large_compressed)(benchmark::State& state) { in BENCHMARK_F() [all …]
|
D | local_unwind_benchmarks.cpp | 61 static void Run(benchmark::State& state, size_t (*func)(void*), void* data) { in Run() argument 62 for (const auto& _ : state) { in Run() 64 state.SkipWithError("Failed to unwind."); in Run() 79 static void BM_local_unwind_uncached_process_memory(benchmark::State& state) { in BM_local_unwind_uncached_process_memory() argument 83 state.SkipWithError("Failed to parse local maps."); in BM_local_unwind_uncached_process_memory() 87 Run(state, Unwind, &data); in BM_local_unwind_uncached_process_memory() 91 static void BM_local_unwind_cached_process_memory(benchmark::State& state) { in BM_local_unwind_cached_process_memory() argument 95 state.SkipWithError("Failed to parse local maps."); in BM_local_unwind_cached_process_memory() 99 Run(state, Unwind, &data); in BM_local_unwind_cached_process_memory() 103 static void BM_local_android_unwind_uncached_process_memory(benchmark::State& state) { in BM_local_android_unwind_uncached_process_memory() argument [all …]
|
D | OfflineUnwindBenchmarks.cpp | 45 void SetUp(benchmark::State& state) override { in SetUp() argument 47 unwind_case_ = state.range(0) ? kSteadyState : kStartup; in SetUp() 48 resolve_names_ = state.range(1); in SetUp() 56 void SingleUnwindBenchmark(benchmark::State& state, const UnwindSampleInfo& sample_info) { in SingleUnwindBenchmark() argument 59 state.SkipWithError(error_msg.c_str()); in SingleUnwindBenchmark() 62 BenchmarkOfflineUnwindMultipleSamples(state, std::vector<UnwindSampleInfo>{sample_info}); in SingleUnwindBenchmark() 65 void ConsecutiveUnwindBenchmark(benchmark::State& state, in ConsecutiveUnwindBenchmark() argument 69 state.SkipWithError(error_msg.c_str()); in ConsecutiveUnwindBenchmark() 72 BenchmarkOfflineUnwindMultipleSamples(state, sample_infos); in ConsecutiveUnwindBenchmark() 76 void BenchmarkOfflineUnwindMultipleSamples(benchmark::State& state, in BenchmarkOfflineUnwindMultipleSamples() argument [all …]
|
D | EvalBenchmark.cpp | 63 void RunBenchmark(benchmark::State& state, DwarfLocations& loc_regs) { in RunBenchmark() argument 71 for (const auto& _ : state) { in RunBenchmark() 72 state.PauseTiming(); in RunBenchmark() 74 state.ResumeTiming(); in RunBenchmark() 79 state.SkipWithError(err_stream.str().c_str()); in RunBenchmark() 88 state.SkipWithError(err_stream.str().c_str()); in RunBenchmark() 91 state.PauseTiming(); in RunBenchmark() 93 state.ResumeTiming(); in RunBenchmark() 95 mem_tracker.SetBenchmarkCounters(state); in RunBenchmark() 104 BENCHMARK_TEMPLATE_F(EvalBenchmark, BM_eval_register_few_regs, uint64_t)(benchmark::State& state) { in BENCHMARK_TEMPLATE_F() [all …]
|
D | remote_unwind_benchmarks.cpp | 96 static void RemoteUnwind(benchmark::State& state, bool cached) { in RemoteUnwind() argument 99 state.SkipWithError("Failed to start remote process."); in RemoteUnwind() 111 state.SkipWithError("Failed to parse maps."); in RemoteUnwind() 114 for (const auto& _ : state) { in RemoteUnwind() 119 state.SkipWithError("Failed to unwind properly."); in RemoteUnwind() 126 static void BM_remote_unwind_uncached(benchmark::State& state) { in BM_remote_unwind_uncached() argument 127 RemoteUnwind(state, false); in BM_remote_unwind_uncached() 131 static void BM_remote_unwind_cached(benchmark::State& state) { in BM_remote_unwind_cached() argument 132 RemoteUnwind(state, true); in BM_remote_unwind_cached() 136 static void RemoteAndroidUnwind(benchmark::State& state, bool cached) { in RemoteAndroidUnwind() argument [all …]
|
/system/tools/xsdc/src/main/java/com/android/xsdc/ |
D | XsdHandler.java | 136 State state = stateStack.pop(); in endElement() local 137 switch (state.name) { in endElement() 139 schema = makeSchema(state); in endElement() 142 stateStack.peek().tags.add(makeElement(state)); in endElement() 145 stateStack.peek().tags.add(makeAttribute(state)); in endElement() 148 stateStack.peek().tags.add(makeAttributeGroup(state)); in endElement() 151 stateStack.peek().tags.add(makeComplexType(state)); in endElement() 154 stateStack.peek().tags.add(makeComplexContent(state)); in endElement() 157 stateStack.peek().tags.add(makeSimpleContent(state)); in endElement() 161 stateStack.peek().tags.add(makeEnumRestriction(state)); in endElement() [all …]
|
/system/logging/liblog/tests/ |
D | liblog_benchmark.cpp | 63 static void BM_log_maximum_retry(benchmark::State& state) { in BM_log_maximum_retry() argument 64 while (state.KeepRunning()) { in BM_log_maximum_retry() 66 state.iterations())); in BM_log_maximum_retry() 76 static void BM_log_maximum(benchmark::State& state) { in BM_log_maximum() argument 77 while (state.KeepRunning()) { in BM_log_maximum() 78 __android_log_print(ANDROID_LOG_INFO, "BM_log_maximum", "%" PRIu64, state.iterations()); in BM_log_maximum() 94 static void BM_clock_overhead(benchmark::State& state) { in BM_clock_overhead() argument 95 while (state.KeepRunning()) { in BM_clock_overhead() 96 state.PauseTiming(); in BM_clock_overhead() 97 state.ResumeTiming(); in BM_clock_overhead() [all …]
|
/system/libbase/ |
D | function_ref_benchmark.cpp | 39 static void BenchmarkFuncRaw(benchmark::State& state) { in BenchmarkFuncRaw() argument 40 for (auto _ : state) { in BenchmarkFuncRaw() 46 static void BenchmarkFuncPtr(benchmark::State& state) { in BenchmarkFuncPtr() argument 48 for (auto _ : state) { in BenchmarkFuncPtr() 54 static void BenchmarkStdFunction(benchmark::State& state) { in BenchmarkStdFunction() argument 56 for (auto _ : state) { in BenchmarkStdFunction() 62 static void BenchmarkFunctionRef(benchmark::State& state) { in BenchmarkFunctionRef() argument 64 for (auto _ : state) { in BenchmarkFunctionRef() 79 static void BenchmarkBigRaw(benchmark::State& state) { in BenchmarkBigRaw() argument 80 for (auto _ : state) { in BenchmarkBigRaw() [all …]
|
D | format_benchmark.cpp | 27 static void BenchmarkFormatInt(benchmark::State& state) { in BenchmarkFormatInt() argument 28 for (auto _ : state) { in BenchmarkFormatInt() 36 static void BenchmarkStringPrintfInt(benchmark::State& state) { in BenchmarkStringPrintfInt() argument 37 for (auto _ : state) { in BenchmarkStringPrintfInt() 45 static void BenchmarkFormatFloat(benchmark::State& state) { in BenchmarkFormatFloat() argument 46 for (auto _ : state) { in BenchmarkFormatFloat() 54 static void BenchmarkStringPrintfFloat(benchmark::State& state) { in BenchmarkStringPrintfFloat() argument 55 for (auto _ : state) { in BenchmarkStringPrintfFloat() 63 static void BenchmarkFormatStrings(benchmark::State& state) { in BenchmarkFormatStrings() argument 64 for (auto _ : state) { in BenchmarkFormatStrings() [all …]
|
/system/netd/tests/benchmarks/ |
D | connect_benchmark.cpp | 99 static void ipv4_loopback(benchmark::State& state, const bool waitBetweenRuns) { in ipv4_loopback() argument 103 state.SkipWithError("Unable to bind server socket"); in ipv4_loopback() 108 std::vector<uint64_t> latencies(state.max_iterations); in ipv4_loopback() 111 while (state.KeepRunning()) { in ipv4_loopback() 114 state.SkipWithError(StringPrintf("socket() failed with errno=%d", errno).c_str()); in ipv4_loopback() 122 state.SkipWithError(StringPrintf("connect() failed with errno=%d", errno).c_str()); in ipv4_loopback() 129 state.SetIterationTime(static_cast<double>(latencies[iterations]) / 1.0e6L); in ipv4_loopback() 138 state.SkipWithError(StringPrintf("accept() failed with errno=%d", errno).c_str()); in ipv4_loopback() 152 state.SetLabel(StringPrintf("%lld", (long long) latencies[iterations * 9 / 10])); in ipv4_loopback() 156 static void ipv6_loopback(benchmark::State& state, const bool waitBetweenRuns) { in ipv6_loopback() argument [all …]
|
D | bpf_benchmark.cpp | 39 BENCHMARK_DEFINE_F(BpfBenchMark, MapWriteNewEntry)(benchmark::State& state) { in BENCHMARK_DEFINE_F() 40 for (auto _ : state) { // NOLINT(clang-analyzer-deadcode.DeadStores) in BENCHMARK_DEFINE_F() 42 mBpfTestMap.writeValue(state.range(0), state.range(0), BPF_NOEXIST); in BENCHMARK_DEFINE_F() 46 BENCHMARK_DEFINE_F(BpfBenchMark, MapUpdateEntry)(benchmark::State& state) { in BENCHMARK_DEFINE_F() 51 for (auto _ : state) { // NOLINT(clang-analyzer-deadcode.DeadStores) in BENCHMARK_DEFINE_F() 53 mBpfTestMap.writeValue(state.range(0), state.range(0) + 1, BPF_EXIST); in BENCHMARK_DEFINE_F() 57 BENCHMARK_DEFINE_F(BpfBenchMark, MapDeleteAddEntry)(benchmark::State& state) { in BENCHMARK_DEFINE_F() 62 for (auto _ : state) { // NOLINT(clang-analyzer-deadcode.DeadStores) in BENCHMARK_DEFINE_F() 64 mBpfTestMap.deleteValue(state.range(0)); in BENCHMARK_DEFINE_F() 66 mBpfTestMap.writeValue(state.range(0), state.range(0) + 1, BPF_NOEXIST); in BENCHMARK_DEFINE_F() [all …]
|
/system/extras/memory_replay/ |
D | TraceBenchmark.cpp | 152 static void RunTrace(benchmark::State& state, TraceDataType* trace_data) { in RunTrace() argument 244 state.SetIterationTime(total_ns / double(1000000000.0)); in RunTrace() 252 static void BenchmarkTrace(benchmark::State& state, const char* filename, bool enable_decay_time) { in BenchmarkTrace() argument 265 for (auto _ : state) { in BenchmarkTrace() 266 RunTrace(state, &trace_data); in BenchmarkTrace() 280 static void BM_angry_birds2_default(benchmark::State& state) { in BM_angry_birds2_default() argument 281 BenchmarkTrace(state, "angry_birds2.zip", true); in BM_angry_birds2_default() 286 static void BM_angry_birds2_no_decay(benchmark::State& state) { in BM_angry_birds2_no_decay() argument 287 BenchmarkTrace(state, "angry_birds2.zip", false); in BM_angry_birds2_no_decay() 292 static void BM_camera_default(benchmark::State& state) { in BM_camera_default() argument [all …]
|
/system/core/init/ |
D | tokenizer.cpp | 8 int next_token(struct parse_state *state) in next_token() argument 10 char *x = state->ptr; in next_token() 13 if (state->nexttoken) { in next_token() 14 int t = state->nexttoken; in next_token() 15 state->nexttoken = 0; in next_token() 22 state->ptr = x; in next_token() 26 state->ptr = x; in next_token() 36 state->ptr = x+1; in next_token() 39 state->ptr = x; in next_token() 48 state->ptr = x; in next_token() [all …]
|
/system/libziparchive/ |
D | zip_archive_benchmark.cpp | 57 static void OpenClose(benchmark::State& state) { in OpenClose() argument 58 std::unique_ptr<TemporaryFile> temp_file(CreateZip(4, int(state.range(0)))); in OpenClose() 60 for (auto _ : state) { in OpenClose() 67 static void FindEntry_no_match(benchmark::State& state) { in FindEntry_no_match() argument 69 std::unique_ptr<TemporaryFile> temp_file(CreateZip(4, int(state.range(0)))); in FindEntry_no_match() 79 for (auto _ : state) { in FindEntry_no_match() 86 static void Iterate_all_files(benchmark::State& state) { in Iterate_all_files() argument 87 std::unique_ptr<TemporaryFile> temp_file(CreateZip(4, int(state.range(0)))); in Iterate_all_files() 94 for (auto _ : state) { in Iterate_all_files() 104 static void StartAlignedEntry(benchmark::State& state) { in StartAlignedEntry() argument [all …]
|
/system/security/keystore2/watchdog/src/ |
D | lib.rs | 65 state: State, field 194 state: Arc<(Condvar, Mutex<WatchdogState>)>, field 207 state: Arc::new(( in new() 210 state: State::NotRunning, in new() 264 let (ref condvar, ref state) = *self.state; in arm() 266 let mut state = state.lock().unwrap(); in arm() localVariable 267 state.arm(index, record); in arm() 269 if state.state != State::Running { in arm() 270 self.spawn_thread(&mut state); in arm() 272 drop(state); in arm() [all …]
|
/system/update_engine/payload_consumer/ |
D | delta_performer_integration_test.cc | 391 DeltaState* state, in GenerateDeltaFile() argument 393 state->a_img.reset(new ScopedTempFile("a_img.XXXXXX")); in GenerateDeltaFile() 394 state->b_img.reset(new ScopedTempFile("b_img.XXXXXX")); in GenerateDeltaFile() 398 state->result_img.reset(new ScopedTempFile("result_img.XXXXXX")); in GenerateDeltaFile() 402 base::FilePath(state->a_img->path()))); in GenerateDeltaFile() 404 state->image_size = utils::FileSize(state->a_img->path()); in GenerateDeltaFile() 409 ScopedLoopMounter b_mounter(state->a_img->path(), &a_mnt, 0); in GenerateDeltaFile() 445 brillo::Blob ones(state->image_size, 0xff); in GenerateDeltaFile() 447 state->result_img->path().c_str(), ones.data(), ones.size())); in GenerateDeltaFile() 448 ASSERT_EQ(utils::FileSize(state->a_img->path()), in GenerateDeltaFile() [all …]
|
/system/extras/libatrace_rust/benchmark/src/ |
D | atrace_benchmark.cc | 23 static void BM_TracingOffAtraceBegin(benchmark::State& state) { in BM_TracingOffAtraceBegin() argument 25 std::string name(state.range(0), '0'); in BM_TracingOffAtraceBegin() 26 for (auto _ : state) { in BM_TracingOffAtraceBegin() 31 static void BM_TracingOffAtraceEnd(benchmark::State& state) { in BM_TracingOffAtraceEnd() argument 33 for (auto _ : state) { in BM_TracingOffAtraceEnd() 38 static void BM_TracingOnAtraceBegin(benchmark::State& state) { in BM_TracingOnAtraceBegin() argument 40 std::string name(state.range(0), '0'); in BM_TracingOnAtraceBegin() 41 for (auto _ : state) { in BM_TracingOnAtraceBegin() 47 static void BM_TracingOnAtraceEnd(benchmark::State& state) { in BM_TracingOnAtraceEnd() argument 49 for (auto _ : state) { in BM_TracingOnAtraceEnd()
|
/system/incremental_delivery/incfs/tests/ |
D | hardening_benchmark.cpp | 42 static void TestEmpty(benchmark::State& state) { in TestEmpty() argument 44 for (auto _ : state) { in TestEmpty() 50 static void TestSignal(benchmark::State& state) { in TestSignal() argument 55 for (auto _ : state) { in TestSignal() 62 static void TestRead(benchmark::State& state) { in TestRead() argument 65 for (auto _ : state) { in TestRead() 73 static void TestMapPtrRaw(benchmark::State& state) { in TestMapPtrRaw() argument 79 for (auto _ : state) { in TestMapPtrRaw() 87 static void TestMapPtr(benchmark::State& state) { in TestMapPtr() argument 92 for (auto _ : state) { in TestMapPtr() [all …]
|