/system/core/libunwindstack/tests/ |
D | RegsIterateTest.cpp | 61 std::vector<Register> result; in ExpectedRegisters() local 62 result.push_back({"r0", ARM_REG_R0}); in ExpectedRegisters() 63 result.push_back({"r1", ARM_REG_R1}); in ExpectedRegisters() 64 result.push_back({"r2", ARM_REG_R2}); in ExpectedRegisters() 65 result.push_back({"r3", ARM_REG_R3}); in ExpectedRegisters() 66 result.push_back({"r4", ARM_REG_R4}); in ExpectedRegisters() 67 result.push_back({"r5", ARM_REG_R5}); in ExpectedRegisters() 68 result.push_back({"r6", ARM_REG_R6}); in ExpectedRegisters() 69 result.push_back({"r7", ARM_REG_R7}); in ExpectedRegisters() 70 result.push_back({"r8", ARM_REG_R8}); in ExpectedRegisters() [all …]
|
/system/update_engine/update_manager/ |
D | chromeos_policy_unittest.cc | 146 UpdateCheckParams result; in TestRollbackAllowed() local 148 EvalStatus::kSucceeded, &Policy::UpdateCheckAllowed, &result); in TestRollbackAllowed() 149 return result.rollback_allowed; in TestRollbackAllowed() 167 ErrorCode result; in TestDisallowedTimeIntervals() local 171 &result, in TestDisallowedTimeIntervals() 173 EXPECT_EQ(result, expected_error_code); in TestDisallowedTimeIntervals() 191 UpdateCheckParams result; in TEST_F() local 200 EvalStatus::kAskMeAgainLater, &Policy::UpdateCheckAllowed, &result); in TEST_F() 208 EvalStatus::kSucceeded, &Policy::UpdateCheckAllowed, &result); in TEST_F() 209 EXPECT_TRUE(result.updates_enabled); in TEST_F() [all …]
|
D | default_policy.cc | 40 UpdateCheckParams* result) const { in UpdateCheckAllowed() 41 result->updates_enabled = true; in UpdateCheckAllowed() 42 result->target_channel.clear(); in UpdateCheckAllowed() 43 result->target_version_prefix.clear(); in UpdateCheckAllowed() 44 result->rollback_allowed = false; in UpdateCheckAllowed() 45 result->rollback_allowed_milestones = -1; // No version rolls should happen. in UpdateCheckAllowed() 46 result->interactive = false; in UpdateCheckAllowed() 65 ErrorCode* result, in UpdateCanBeApplied() argument 67 *result = ErrorCode::kSuccess; in UpdateCanBeApplied() 74 UpdateDownloadParams* result, in UpdateCanStart() argument [all …]
|
D | android_things_policy.cc | 51 UpdateCheckParams* result) const { in UpdateCheckAllowed() 53 result->updates_enabled = true; in UpdateCheckAllowed() 54 result->target_channel.clear(); in UpdateCheckAllowed() 55 result->target_version_prefix.clear(); in UpdateCheckAllowed() 56 result->rollback_allowed = false; in UpdateCheckAllowed() 57 result->rollback_allowed_milestones = -1; in UpdateCheckAllowed() 58 result->interactive = false; in UpdateCheckAllowed() 92 result); in UpdateCheckAllowed() 108 ErrorCode* result, in UpdateCanBeApplied() argument 128 result, in UpdateCanBeApplied() [all …]
|
D | android_things_policy_unittest.cc | 88 UpdateCheckParams result; in TEST_F() local 90 EvalStatus::kAskMeAgainLater, &Policy::UpdateCheckAllowed, &result); in TEST_F() 98 EvalStatus::kSucceeded, &Policy::UpdateCheckAllowed, &result); in TEST_F() 99 EXPECT_TRUE(result.updates_enabled); in TEST_F() 100 EXPECT_FALSE(result.interactive); in TEST_F() 111 UpdateCheckParams result; in TEST_F() local 113 EvalStatus::kAskMeAgainLater, &Policy::UpdateCheckAllowed, &result); in TEST_F() 124 UpdateCheckParams result; in TEST_F() local 126 EvalStatus::kSucceeded, &Policy::UpdateCheckAllowed, &result); in TEST_F() 127 EXPECT_FALSE(result.updates_enabled); in TEST_F() [all …]
|
D | chromeos_policy.cc | 209 UpdateCheckParams* result) const { in UpdateCheckAllowed() 211 result->updates_enabled = true; in UpdateCheckAllowed() 212 result->target_channel.clear(); in UpdateCheckAllowed() 213 result->target_version_prefix.clear(); in UpdateCheckAllowed() 214 result->rollback_allowed = false; in UpdateCheckAllowed() 215 result->rollback_allowed_milestones = -1; in UpdateCheckAllowed() 216 result->interactive = false; in UpdateCheckAllowed() 257 result); in UpdateCheckAllowed() 270 ErrorCode* result, in UpdateCanBeApplied() argument 289 result, in UpdateCanBeApplied() [all …]
|
/system/core/base/ |
D | result_test.cpp | 31 TEST(result, result_accessors) { in TEST() argument 32 Result<std::string> result = "success"; in TEST() local 33 ASSERT_RESULT_OK(result); in TEST() 34 ASSERT_TRUE(result.has_value()); in TEST() 36 EXPECT_EQ("success", *result); in TEST() 37 EXPECT_EQ("success", result.value()); in TEST() 39 EXPECT_EQ('s', result->data()[0]); in TEST() 42 TEST(result, result_accessors_rvalue) { in TEST() argument 52 TEST(result, result_void) { in TEST() argument 77 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/extras/simpleperf/ |
D | cmd_kmem_test.cpp | 42 ReportResult* result) { in KmemReportRawFile() argument 43 result->success = false; in KmemReportRawFile() 49 ASSERT_TRUE(android::base::ReadFileToString(tmp_file.path, &result->content)); in KmemReportRawFile() 50 ASSERT_TRUE(!result->content.empty()); in KmemReportRawFile() 52 android::base::Split(result->content, "\n"); in KmemReportRawFile() 53 result->lines.clear(); in KmemReportRawFile() 57 result->lines.push_back(s); in KmemReportRawFile() 60 ASSERT_GE(result->lines.size(), 2u); in KmemReportRawFile() 61 result->success = true; in KmemReportRawFile() 66 ReportResult* result) { in KmemReportFile() argument [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/bt/stack/avrc/ |
D | avrc_utils.cc | 35 bool result = false; in AVRC_IsValidAvcType() local 48 if (avc_type == AVRC_CMD_STATUS) result = true; in AVRC_IsValidAvcType() 56 if (avc_type == AVRC_CMD_CTRL) result = true; in AVRC_IsValidAvcType() 60 result = true; in AVRC_IsValidAvcType() 67 if (avc_type == AVRC_CMD_CTRL) result = true; in AVRC_IsValidAvcType() 71 if (avc_type == AVRC_CMD_NOTIF) result = true; in AVRC_IsValidAvcType() 77 result = true; in AVRC_IsValidAvcType() 80 return result; in AVRC_IsValidAvcType() 93 bool result = false; in avrc_is_valid_player_attrib_value() local 97 if ((value > 0) && (value <= AVRC_PLAYER_VAL_ON)) result = true; in avrc_is_valid_player_attrib_value() [all …]
|
/system/bt/stack/avdt/ |
D | avdt_api.cc | 171 uint16_t result = AVDT_SUCCESS; in AVDT_CreateStream() local 179 result = AVDT_BAD_PARAMS; in AVDT_CreateStream() 185 result = AVDT_NO_RESOURCES; in AVDT_CreateStream() 191 if (result != AVDT_SUCCESS) { in AVDT_CreateStream() 192 AVDT_TRACE_ERROR("%s: result=%d peer_id=%d scb_index=%d", __func__, result, in AVDT_CreateStream() 196 return result; in AVDT_CreateStream() 214 uint16_t result = AVDT_SUCCESS; in AVDT_RemoveStream() local 222 result = AVDT_BAD_HANDLE; in AVDT_RemoveStream() 228 if (result != AVDT_SUCCESS) { in AVDT_RemoveStream() 229 AVDT_TRACE_ERROR("%s: result=%d avdt_handle=%d", __func__, result, handle); in AVDT_RemoveStream() [all …]
|
/system/chre/apps/wifi_world/ |
D | wifi_world.cc | 100 void logChreWifiResult(const chreWifiScanResult &result) { in logChreWifiResult() argument 103 if (result.ssidLen == 0) { in logChreWifiResult() 105 } else if (chre::parseSsidToStr(ssidBuffer, sizeof(ssidBuffer), result.ssid, in logChreWifiResult() 106 result.ssidLen)) { in logChreWifiResult() 114 if (chre::parseBssidToStr(result.bssid, bssidBuffer, sizeof(bssidBuffer))) { in logChreWifiResult() 118 LOGI(" age (ms): %" PRIu32, result.ageMs); in logChreWifiResult() 119 LOGI(" capability info: %" PRIx16, result.capabilityInfo); in logChreWifiResult() 121 LOGI(" flags: %" PRIx8, result.flags); in logChreWifiResult() 122 LOGI(" rssi: %" PRId8 "dBm", result.rssi); in logChreWifiResult() 123 LOGI(" band: %s (%" PRIu8 ")", chre::parseChreWifiBand(result.band), in logChreWifiResult() [all …]
|
/system/bt/embdrv/sbc/decoder/srce/ |
D | dequant.c | 134 float result = (1 << (scale_factor + 1)) * in dequant_float() local 137 result /= SBC_DEQUANT_SCALING_FACTOR; in dequant_float() 144 OI_ASSERT(fabs(result) < 32768 * 1.6); in dequant_float() 146 return result; in dequant_float() 154 int32_t result; in OI_SBC_Dequant() local 165 result = d - SBC_DEQUANT_LONG_SCALED_OFFSET; in OI_SBC_Dequant() 176 OI_ASSERT(((result >= 0) && (integerized_float_result >= 0)) || in OI_SBC_Dequant() 177 ((result <= 0) && (integerized_float_result <= 0))); in OI_SBC_Dequant() 180 return result >> (15 - scale_factor); in OI_SBC_Dequant() 193 int32_t result; in OI_SBC_Dequant_Unscaled() local [all …]
|
D | bitstream-decode.c | 48 uint32_t result; in OI_BITSTREAM_ReadUINT() local 50 OI_BITSTREAM_READUINT(result, bits, bs->ptr.r, bs->value, bs->bitPtr); in OI_BITSTREAM_ReadUINT() 52 return result; in OI_BITSTREAM_ReadUINT() 56 uint32_t result; in OI_BITSTREAM_ReadUINT4Aligned() local 62 result = bs->value << 8; in OI_BITSTREAM_ReadUINT4Aligned() 65 result = bs->value << 12; in OI_BITSTREAM_ReadUINT4Aligned() 69 result >>= 28; in OI_BITSTREAM_ReadUINT4Aligned() 70 OI_ASSERT(result < (1u << 4)); in OI_BITSTREAM_ReadUINT4Aligned() 71 return (uint8_t)result; in OI_BITSTREAM_ReadUINT4Aligned() 75 uint32_t result; in OI_BITSTREAM_ReadUINT8Aligned() local [all …]
|
/system/bt/service/test/ |
D | parcelable_unittest.cc | 61 bool result = in TEST() local 63 EXPECT_TRUE(result); in TEST() 68 bool result = in TEST() local 71 EXPECT_TRUE(result); in TEST() 79 bool result = in TEST() local 82 EXPECT_TRUE(result); in TEST() 101 bool result = in TEST() local 103 EXPECT_TRUE(result); in TEST() 105 result = TestData<ScanSettings, android::bluetooth::ScanSettings>(settings0); in TEST() 106 EXPECT_TRUE(result); in TEST() [all …]
|
/system/update_engine/ |
D | image_properties_android.cc | 71 string result; in GetStringWithDefault() local 72 if (osrelease.GetString(key, &result)) in GetStringWithDefault() 73 return result; in GetStringWithDefault() 172 ImageProperties result; in LoadImageProperties() local 179 result.product_id = in LoadImageProperties() 181 result.system_id = GetStringWithDefault( in LoadImageProperties() 186 result.product_id, ":", &prefix, ¬_used, false) && in LoadImageProperties() 188 result.system_id, ":", ¬_used, &system_id, false)) { in LoadImageProperties() 189 result.system_id = prefix + ":" + system_id; in LoadImageProperties() 191 result.canary_product_id = result.product_id; in LoadImageProperties() [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/bt/bta/ag/ |
D | bta_ag_cmd.cc | 211 const tBTA_AG_RESULT* result = bta_ag_result_by_code(code); in bta_ag_send_result() local 212 if (result == nullptr) { in bta_ag_send_result() 226 strlcpy(p, result->result_string, sizeof(buf) - 2); in bta_ag_send_result() 240 p += strlen(result->result_string); in bta_ag_send_result() 243 if (result->arg_type == BTA_AG_RES_FMT_INT) { in bta_ag_send_result() 245 } else if (result->arg_type == BTA_AG_RES_FMT_STR) { in bta_ag_send_result() 555 void bta_ag_send_call_inds(tBTA_AG_SCB* p_scb, tBTA_AG_RES result) { in bta_ag_send_call_inds() argument 559 size_t callsetup = bta_ag_indicator_by_result_code(result); in bta_ag_send_call_inds() 561 if (result == BTA_AG_END_CALL_RES) { in bta_ag_send_call_inds() 563 } else if (result == BTA_AG_IN_CALL_CONN_RES || in bta_ag_send_call_inds() [all …]
|
/system/apex/apexd/ |
D | apexd_utils_test.cpp | 45 auto result = FindFirstExistingDirectory(first_dir.path, second_dir.path); in TEST() local 46 ASSERT_TRUE(IsOk(result)); in TEST() 47 ASSERT_EQ(*result, first_dir.path); in TEST() 53 auto result = FindFirstExistingDirectory(first_dir.path, second_dir); in TEST() local 54 ASSERT_TRUE(IsOk(result)); in TEST() 55 ASSERT_EQ(*result, first_dir.path); in TEST() 61 auto result = FindFirstExistingDirectory(first_dir, second_dir.path); in TEST() local 62 ASSERT_TRUE(IsOk(result)); in TEST() 63 ASSERT_EQ(*result, second_dir.path); in TEST() 69 auto result = FindFirstExistingDirectory(first_dir, second_dir); in TEST() local [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/bt/stack/test/rfcomm/ |
D | stack_rfcomm_test_utils.cc | 67 std::vector<uint8_t> result; in CreateMccPnFrame() local 68 result.push_back(static_cast<uint8_t>(dlci & 0b00111111)); in CreateMccPnFrame() 69 result.push_back(static_cast<uint8_t>((cl_bits << 4) | (i_bits & 0x0F))); in CreateMccPnFrame() 70 result.push_back(static_cast<uint8_t>(priority & 0b00111111)); in CreateMccPnFrame() 71 result.push_back(timer_value); in CreateMccPnFrame() 72 result.push_back(static_cast<uint8_t>(rfcomm_mtu)); in CreateMccPnFrame() 73 result.push_back(static_cast<uint8_t>(rfcomm_mtu >> 8)); in CreateMccPnFrame() 74 result.push_back(max_num_retransmission); in CreateMccPnFrame() 75 result.push_back(static_cast<uint8_t>(err_recovery_window_k & 0b111)); in CreateMccPnFrame() 76 return result; in CreateMccPnFrame() [all …]
|
/system/bt/stack/test/common/ |
D | stack_test_packet_utils.cc | 30 std::vector<uint8_t> result; in CreateL2capDataPacket() local 32 result.push_back(static_cast<uint8_t>(data_size)); in CreateL2capDataPacket() 33 result.push_back(static_cast<uint8_t>(data_size >> 8)); in CreateL2capDataPacket() 34 result.push_back(static_cast<uint8_t>(lcid)); in CreateL2capDataPacket() 35 result.push_back(static_cast<uint8_t>(lcid >> 8)); in CreateL2capDataPacket() 36 result.insert(result.end(), data.begin(), data.end()); in CreateL2capDataPacket() 37 return result; in CreateL2capDataPacket() 43 std::vector<uint8_t> result; in CreateAclPacket() local 44 result.push_back(static_cast<uint8_t>(handle & 0x0F)); in CreateAclPacket() 49 result.push_back(second_byte); in CreateAclPacket() [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 …]
|