/system/unwinding/libunwindstack/tests/ |
D | RegsIterateTest.cpp | 63 std::vector<Register> result; in ExpectedRegisters() local 64 result.push_back({"r0", ARM_REG_R0}); in ExpectedRegisters() 65 result.push_back({"r1", ARM_REG_R1}); in ExpectedRegisters() 66 result.push_back({"r2", ARM_REG_R2}); in ExpectedRegisters() 67 result.push_back({"r3", ARM_REG_R3}); in ExpectedRegisters() 68 result.push_back({"r4", ARM_REG_R4}); in ExpectedRegisters() 69 result.push_back({"r5", ARM_REG_R5}); in ExpectedRegisters() 70 result.push_back({"r6", ARM_REG_R6}); in ExpectedRegisters() 71 result.push_back({"r7", ARM_REG_R7}); in ExpectedRegisters() 72 result.push_back({"r8", ARM_REG_R8}); in ExpectedRegisters() [all …]
|
/system/chre/chpp/clients/ |
D | loopback.c | 95 struct ChppLoopbackTestResult *result = &state->testResult; in chppDispatchLoopbackServiceResponse() local 97 result->error = CHPP_APP_ERROR_NONE; in chppDispatchLoopbackServiceResponse() 98 result->responseLen = len; in chppDispatchLoopbackServiceResponse() 99 result->firstError = len; in chppDispatchLoopbackServiceResponse() 100 result->byteErrors = 0; in chppDispatchLoopbackServiceResponse() 101 result->rttNs = state->runLoopbackTest.responseTimeNs - in chppDispatchLoopbackServiceResponse() 104 if (result->requestLen != result->responseLen) { in chppDispatchLoopbackServiceResponse() 105 result->error = CHPP_APP_ERROR_INVALID_LENGTH; in chppDispatchLoopbackServiceResponse() 106 result->firstError = MIN(result->requestLen, result->responseLen); in chppDispatchLoopbackServiceResponse() 110 loc < MIN(result->requestLen, result->responseLen); loc++) { in chppDispatchLoopbackServiceResponse() [all …]
|
/system/apex/apexd/ |
D | apex_classpath_test.cpp | 42 auto result = ClassPath::ParseFromFile(output.path); in TEST() local 43 ASSERT_THAT(result, Ok()); in TEST() 45 ASSERT_THAT(result->HasClassPathJars("a"), true); in TEST() 46 ASSERT_THAT(result->HasClassPathJars("b"), true); in TEST() 47 ASSERT_THAT(result->HasClassPathJars("c"), true); in TEST() 48 ASSERT_THAT(result->HasClassPathJars("d"), false); in TEST() 55 auto result = ClassPath::ParseFromFile(output.path); in TEST() local 56 ASSERT_THAT(result, Ok()); in TEST() 58 ASSERT_THAT(result->HasClassPathJars("a"), false); in TEST() 59 ASSERT_THAT(result->HasClassPathJars("b"), false); in TEST() [all …]
|
/system/teeui/test/ |
D | teeui_test.cpp | 35 auto result = intersect(a, b, c, d); in TEST() local 36 ASSERT_TRUE(result); in TEST() 37 ASSERT_EQ(PxPoint(0.0, 0.0), *result); in TEST() 44 result = intersect(a, b, c, d); in TEST() 45 ASSERT_FALSE(result); in TEST() 46 result = intersect(c, d, a, b); in TEST() 47 ASSERT_FALSE(result); in TEST() 53 result = intersect(a, b, c, d); in TEST() 54 ASSERT_FALSE(result); in TEST() 55 result = intersect(c, d, a, b); in TEST() [all …]
|
/system/extras/simpleperf/ |
D | cmd_kmem_test.cpp | 44 ReportResult* result) { in KmemReportRawFile() argument 45 result->success = false; in KmemReportRawFile() 51 ASSERT_TRUE(android::base::ReadFileToString(tmp_file.path, &result->content)); in KmemReportRawFile() 52 ASSERT_TRUE(!result->content.empty()); in KmemReportRawFile() 53 std::vector<std::string> raw_lines = android::base::Split(result->content, "\n"); in KmemReportRawFile() 54 result->lines.clear(); in KmemReportRawFile() 58 result->lines.push_back(s); in KmemReportRawFile() 61 ASSERT_GE(result->lines.size(), 2u); in KmemReportRawFile() 62 result->success = true; in KmemReportRawFile() 66 const std::vector<std::string>& additional_args, ReportResult* result) { in KmemReportFile() argument [all …]
|
/system/chre/apps/nearby/location/lbs/contexthub/nanoapps/nearby/ |
D | presence_filter.cc | 41 nearby_BleFilterResult *result) { in addDataElementToResult() argument 42 size_t de_index = result->data_element_count; in addDataElementToResult() 43 if (de_index >= ARRAY_SIZE(result->data_element)) { in addDataElementToResult() 47 if (de_value.length > ARRAY_SIZE(result->data_element[de_index].value)) { in addDataElementToResult() 52 result->data_element_count++; in addDataElementToResult() 53 result->data_element[de_index].has_key = true; in addDataElementToResult() 54 result->data_element[de_index].key = de_type; in addDataElementToResult() 55 result->data_element[de_index].has_value = true; in addDataElementToResult() 56 result->data_element[de_index].has_value_length = true; in addDataElementToResult() 57 result->data_element[de_index].value_length = in addDataElementToResult() [all …]
|
D | filter.cc | 86 nearby_BleFilterResult result; in MatchBle() local 103 result = nearby_BleFilterResult_init_zero; in MatchBle() 104 result.has_id = true; in MatchBle() 105 result.id = static_cast<uint32_t>(filter_index); in MatchBle() 106 result.has_tx_power = true; in MatchBle() 107 result.tx_power = static_cast<int32_t>(report.txPower); in MatchBle() 108 result.has_rssi = true; in MatchBle() 109 result.rssi = static_cast<int32_t>(report.rssi); in MatchBle() 110 result.has_bluetooth_address = true; in MatchBle() 112 static_assert(std::size(result.bluetooth_address) == CHRE_BLE_ADDRESS_LEN); in MatchBle() [all …]
|
D | fast_pair_filter.cc | 82 nearby_BleFilterResult *result) { in FillResult() argument 83 if (result->data_element_count >= std::size(result->data_element)) { in FillResult() 88 if (!result->has_ble_service_data) { in FillResult() 95 sizeof(result->ble_service_data)); in FillResult() 96 } else if (service_data.length + 3 > sizeof(result->ble_service_data)) { in FillResult() 100 result->has_ble_service_data = true; in FillResult() 102 result->ble_service_data[0] = service_data.length + 2; in FillResult() 104 result->ble_service_data[1] = kFastPairUuidFirstByte; in FillResult() 105 result->ble_service_data[2] = kFastPairUuidSecondByte; in FillResult() 107 memcpy(result->ble_service_data + 3, service_data.data, in FillResult() [all …]
|
/system/libbase/ |
D | result_test.cpp | 42 TEST(result, result_accessors) { in TEST() argument 43 Result<std::string> result = "success"; in TEST() local 44 ASSERT_RESULT_OK(result); in TEST() 45 ASSERT_TRUE(result.has_value()); in TEST() 47 EXPECT_EQ("success", *result); in TEST() 48 EXPECT_EQ("success", result.value()); in TEST() 50 EXPECT_EQ('s', result->data()[0]); in TEST() 53 TEST(result, result_accessors_rvalue) { in TEST() argument 63 TEST(result, result_void) { in TEST() argument 88 TEST(result, result_error) { in TEST() argument [all …]
|
D | stringprintf.cpp | 35 int result = vsnprintf(space, sizeof(space), format, backup_ap); in StringAppendV() local 38 if (result < static_cast<int>(sizeof(space))) { in StringAppendV() 39 if (result >= 0) { in StringAppendV() 41 dst->append(space, result); in StringAppendV() 45 if (result < 0) { in StringAppendV() 53 int length = result + 1; in StringAppendV() 58 result = vsnprintf(buf, length, format, backup_ap); in StringAppendV() 61 if (result >= 0 && result < length) { in StringAppendV() 63 dst->append(buf, result); in StringAppendV() 71 std::string result; in StringPrintf() local [all …]
|
/system/linkerconfig/modules/tests/ |
D | configparser_test.cc | 28 auto result = ParseLinkerConfig(kBaseDir + "linker.config.noexist.pb"); in TEST() local 30 ASSERT_FALSE(result.ok()); in TEST() 40 auto result = ParseLinkerConfig(kBaseDir + "linker.config.apex.pb"); in TEST() local 42 ASSERT_TRUE(result.ok()) << result.error().message(); in TEST() 43 std::vector<std::string> permitted_paths = {result->permittedpaths().begin(), in TEST() 44 result->permittedpaths().end()}; in TEST() 46 ASSERT_TRUE(result->visible()); in TEST() 61 auto result = ParseLinkerConfig(kBaseDir + "linker.config.system.pb"); in TEST() local 63 ASSERT_TRUE(result.ok()); in TEST() 64 std::vector<std::string> provide_libs = {result->providelibs().begin(), in TEST() [all …]
|
/system/chre/util/nanoapp/ |
D | wifi.cc | 32 void logChreWifiResult(const chreWifiScanResult &result, bool logSsidOnly) { in logChreWifiResult() argument 35 if (result.ssidLen == 0) { in logChreWifiResult() 37 } else if (parseSsidToStr(ssidBuffer, sizeof(ssidBuffer), result.ssid, in logChreWifiResult() 38 result.ssidLen)) { in logChreWifiResult() 46 if (parseBssidToStr(result.bssid, bssidBuffer, sizeof(bssidBuffer))) { in logChreWifiResult() 50 LOGI(" age (ms): %" PRIu32, result.ageMs); in logChreWifiResult() 51 LOGI(" capability info: %" PRIx16, result.capabilityInfo); in logChreWifiResult() 53 LOGI(" flags: %" PRIx8, result.flags); in logChreWifiResult() 54 LOGI(" rssi: %" PRId8 "dBm", result.rssi); in logChreWifiResult() 55 LOGI(" band: %s (%" PRIu8 ")", parseChreWifiBand(result.band), in logChreWifiResult() [all …]
|
/system/core/fs_mgr/tests/src/com/android/tests/vendoroverlay/ |
D | VendorOverlayHostTest.java | 56 CommandResult result = getDevice().executeShellV2Command("df"); in setup() local 58 vendorPattern.matcher(result.getStdout()).find()); in setup() 60 productPattern.matcher(result.getStdout()).find()); in setup() 63 private boolean cmdSucceeded(CommandResult result) { in cmdSucceeded() argument 64 return result.getStatus() == CommandStatus.SUCCESS; in cmdSucceeded() 68 CommandResult result = getDevice().executeShellV2Command("mkdir -p " + dir); in assumeMkdirSuccess() local 69 Assume.assumeTrue("Couldn't create " + dir, cmdSucceeded(result)); in assumeMkdirSuccess() 80 CommandResult result = getDevice().executeShellV2Command( in testVendorOverlay() local 83 Assume.assumeTrue("Couldn't modify plat_file_contexts", cmdSucceeded(result)); in testVendorOverlay() 87 result = getDevice().executeShellV2Command( in testVendorOverlay() [all …]
|
/system/core/init/ |
D | subcontext_test.cpp | 57 auto result = subcontext.Execute(std::vector<std::string>{"return_pids_as_error"}); in TEST() local 58 ASSERT_FALSE(result.ok()); in TEST() 60 auto pids = Split(result.error().message(), " "); in TEST() 83 auto result = subcontext.Execute(args); in TEST() local 84 ASSERT_RESULT_OK(result); in TEST() 106 auto result = subcontext.Execute(args); in TEST() local 107 ASSERT_RESULT_OK(result); in TEST() 110 auto result = subcontext.Execute(std::vector<std::string>{"return_words_as_error"}); in TEST() local 111 ASSERT_FALSE(result.ok()); in TEST() 112 EXPECT_EQ(Join(expected_words, " "), result.error().message()); in TEST() [all …]
|
/system/chre/pal/util/tests/ |
D | wifi_pal_convert_test.cc | 32 struct chreWifiRangingResult result; in validateLciConvert() local 33 ASSERT_TRUE(chreWifiLciFromIe(lci, len, &result)); in validateLciConvert() 34 EXPECT_EQ(result.lci.latitude, expectedResult.lci.latitude); in validateLciConvert() 35 EXPECT_EQ(result.lci.longitude, expectedResult.lci.longitude); in validateLciConvert() 36 EXPECT_EQ(result.lci.altitude, expectedResult.lci.altitude); in validateLciConvert() 37 EXPECT_EQ(result.lci.latitudeUncertainty, in validateLciConvert() 39 EXPECT_EQ(result.lci.longitudeUncertainty, in validateLciConvert() 41 EXPECT_EQ(result.lci.altitudeType, expectedResult.lci.altitudeType); in validateLciConvert() 42 EXPECT_EQ(result.lci.altitudeUncertainty, in validateLciConvert() 44 EXPECT_EQ(result.flags, CHRE_WIFI_RTT_RESULT_HAS_LCI); in validateLciConvert() [all …]
|
/system/media/camera/tests/ |
D | camera_metadata_tests.cpp | 221 int result; in TEST() local 228 result = add_camera_metadata_entry(m, in TEST() 231 EXPECT_EQ(OK, result); in TEST() 241 result = add_camera_metadata_entry(m, in TEST() 244 EXPECT_EQ(OK, result); in TEST() 254 result = add_camera_metadata_entry(m, in TEST() 257 EXPECT_EQ(OK, result); in TEST() 267 result = add_camera_metadata_entry(m, in TEST() 270 EXPECT_EQ(OK, result); in TEST() 286 result = add_camera_metadata_entry(m, in TEST() [all …]
|
/system/core/debuggerd/ |
D | debuggerd_test.cpp | 112 #define ASSERT_BACKTRACE_FRAME(result, frame_name) \ argument 113 ASSERT_MATCH(result, \ 193 void FinishIntercept(int* result); 233 void CrasherTest::FinishIntercept(int* result) { in FinishIntercept() argument 240 *result = -1; in FinishIntercept() 245 *result = response.status == InterceptStatus::kStarted ? 1 : 0; in FinishIntercept() 304 std::string result; in ConsumeFd() local 307 size_t offset = result.size(); in ConsumeFd() 308 result.resize(result.size() + PAGE_SIZE); in ConsumeFd() 309 ssize_t rc = TEMP_FAILURE_RETRY(read(fd.get(), &result[offset], read_length)); in ConsumeFd() [all …]
|
/system/nvram/core/ |
D | nvram_manager.cpp | 77 volatile uint8_t result = 0; in ConstantTimeEquals() local 79 result |= data_a[i] ^ data_b[i]; in ConstantTimeEquals() 82 return result == 0; in ConstantTimeEquals() 112 nvram_result_t result = NV_RESULT_INVALID_PARAMETER; in Dispatch() local 118 result = GetInfo(*input.get<COMMAND_GET_INFO>(), in Dispatch() 122 result = CreateSpace(*input.get<COMMAND_CREATE_SPACE>(), in Dispatch() 126 result = GetSpaceInfo(*input.get<COMMAND_GET_SPACE_INFO>(), in Dispatch() 130 result = DeleteSpace(*input.get<COMMAND_DELETE_SPACE>(), in Dispatch() 134 result = DisableCreate(*input.get<COMMAND_DISABLE_CREATE>(), in Dispatch() 138 result = WriteSpace(*input.get<COMMAND_WRITE_SPACE>(), in Dispatch() [all …]
|
/system/security/keystore2/src/km_compat/ |
D | lib.rs | 69 let result = legacy.addRngEntropy(&[42; 16]); in test_add_rng_entropy() localVariable 70 assert!(result.is_ok(), "{:?}", result); in test_add_rng_entropy() 177 let result = legacy.importWrappedKey(&[], &[], &[], &[], 0, 0); in test_import_wrapped_key() localVariable 179 assert!(result.is_ok() || result.is_err()); in test_import_wrapped_key() 186 let result = legacy.upgradeKey(&blob, &[]); in test_upgrade_key() localVariable 188 assert!(result.is_ok() || result.is_err()); in test_upgrade_key() 195 let result = legacy.deleteKey(&blob); in test_delete_key() localVariable 196 assert!(result.is_ok(), "{:?}", result); in test_delete_key() 202 let result = legacy.deleteAllKeys(); in test_delete_all_keys() localVariable 203 assert!(result.is_ok(), "{:?}", result); in test_delete_all_keys() [all …]
|
/system/keymaster/android_keymaster/ |
D | logger.cpp | 35 int result = Log(level, fmt, args); in Log() local 37 return result; in Log() 45 int result = Log(DEBUG_LVL, fmt, args); in Debug() local 47 return result; in Debug() 55 int result = Log(INFO_LVL, fmt, args); in Info() local 57 return result; in Info() 65 int result = Log(WARNING_LVL, fmt, args); in Warning() local 67 return result; in Warning() 75 int result = Log(ERROR_LVL, fmt, args); in Error() local 77 return result; in Error() [all …]
|
/system/nvram/client/ |
D | nvram_client.c | 104 nvram_result_t result = device->get_total_size_in_bytes(device, &total_size); in HandleGetTotalSize() local 105 if (result != NV_RESULT_SUCCESS) { in HandleGetTotalSize() 106 return result; in HandleGetTotalSize() 116 nvram_result_t result = in HandleGetAvailableSize() local 118 if (result != NV_RESULT_SUCCESS) { in HandleGetAvailableSize() 119 return result; in HandleGetAvailableSize() 129 nvram_result_t result = in HandleGetMaxSpaceSize() local 131 if (result != NV_RESULT_SUCCESS) { in HandleGetMaxSpaceSize() 132 return result; in HandleGetMaxSpaceSize() 142 nvram_result_t result = device->get_max_spaces(device, &max_spaces); in HandleGetMaxSpaces() local [all …]
|
/system/chre/apps/test/chqts/src/general_test/ |
D | basic_wifi_test.cc | 214 void validatePrimaryChannel(const chreWifiScanResult &result) { in validatePrimaryChannel() argument 216 if (result.band == CHRE_WIFI_BAND_2_4_GHZ && in validatePrimaryChannel() 217 result.primaryChannel != kWifiBandFreqOfChannel_14) { in validatePrimaryChannel() 218 validatePrimaryChannel(result.primaryChannel, kWifiBandStartFreq_2_4_GHz, in validatePrimaryChannel() 220 } else if (result.band == CHRE_WIFI_BAND_5_GHZ) { in validatePrimaryChannel() 221 validatePrimaryChannel(result.primaryChannel, kWifiBandStartFreq_5_GHz, in validatePrimaryChannel() 230 void validateCenterFreq(const chreWifiScanResult &result) { in validateCenterFreq() argument 231 if (result.channelWidth != CHRE_WIFI_CHANNEL_WIDTH_80_PLUS_80_MHZ && in validateCenterFreq() 232 result.centerFreqSecondary != 0) { in validateCenterFreq() 359 const auto *result = static_cast<const chreWifiScanEvent *>(eventData); in handleEvent() local [all …]
|
D | nanoapp_info.cc | 50 bool result = true; in validate() local 53 result = false; in validate() 56 result = false; in validate() 59 return result; in validate() 63 bool result = chreGetNanoappInfoByAppId(mAppId, info); in queryByAppId() local 65 if (!result) { in queryByAppId() 70 return result; in queryByAppId() 74 bool result = chreGetNanoappInfoByInstanceId(mInstanceId, info); in queryByInstanceId() local 76 if (!result) { in queryByInstanceId() 81 return result; in queryByInstanceId()
|
/system/keymint/ta/src/ |
D | tests.rs | 206 let result = split_rsp(&rsp, 5); in test_split_rsp_invalid_input() localVariable 207 assert!(result.is_err()); in test_split_rsp_invalid_input() 208 assert!(matches!(result, Err(Error::Hal(ErrorCode::InvalidArgument, _)))); in test_split_rsp_invalid_input() 211 let result = split_rsp(&rsp, 1); in test_split_rsp_invalid_input() localVariable 212 assert!(matches!(result, Err(Error::Hal(ErrorCode::InvalidArgument, _)))); in test_split_rsp_invalid_input() 219 let result = split_rsp(&rsp, 20).expect("result should not be error"); in test_split_rsp_smaller_input() localVariable 220 assert_eq!(result.len(), 1); in test_split_rsp_smaller_input() 221 let inner_msg = result.get(0).expect("single message is expected").as_slice(); in test_split_rsp_smaller_input() 233 let result = split_rsp(&rsp, 6).expect("result should not be error"); in test_split_rsp_allowed_size_input() localVariable 234 assert_eq!(result.len(), 1); in test_split_rsp_allowed_size_input() [all …]
|
/system/nfc/src/fuzzers/rw/ |
D | t5t.cc | 172 bool result = false; in Fuzz_Init() local 175 result = Init_Inventory(ctx); in Fuzz_Init() 179 result = Init_StayQuiet(ctx); in Fuzz_Init() 183 result = Init_ReadSingleBlock(ctx); in Fuzz_Init() 187 result = Init_WriteSingleBlock(ctx); in Fuzz_Init() 191 result = Init_LockBlock(ctx); in Fuzz_Init() 195 result = Init_ReadMultipleBlocks(ctx); in Fuzz_Init() 199 result = Init_WriteMultipleBlocks(ctx); in Fuzz_Init() 203 result = Init_Select(ctx); in Fuzz_Init() 207 result = Init_ResetToReady(ctx); in Fuzz_Init() [all …]
|