/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/core/init/ |
D | result_test.cpp | 30 TEST(result, result_accessors) { in TEST() argument 31 Result<std::string> result = "success"; in TEST() local 32 ASSERT_TRUE(result); in TEST() 33 ASSERT_TRUE(result.has_value()); in TEST() 35 EXPECT_EQ("success", *result); in TEST() 36 EXPECT_EQ("success", result.value()); in TEST() 38 EXPECT_EQ('s', result->data()[0]); in TEST() 41 TEST(result, result_accessors_rvalue) { in TEST() argument 51 TEST(result, result_success) { in TEST() argument 52 Result<Success> result = Success(); in TEST() local [all …]
|
D | subcontext_test.cpp | 69 auto result = subcontext.Execute(std::vector<std::string>{"return_pids_as_error"}); in TEST() local 70 ASSERT_FALSE(result); in TEST() 72 auto pids = Split(result.error_string(), " "); in TEST() 90 auto result = subcontext.Execute(args); in TEST() local 91 ASSERT_TRUE(result) << result.error(); in TEST() 113 auto result = subcontext.Execute(args); in TEST() local 114 ASSERT_TRUE(result) << result.error(); in TEST() 117 auto result = subcontext.Execute(std::vector<std::string>{"return_words_as_error"}); in TEST() local 118 ASSERT_FALSE(result); in TEST() 119 EXPECT_EQ(Join(expected_words, " "), result.error_string()); in TEST() [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 | 204 UpdateCheckParams* result) const { in UpdateCheckAllowed() 206 result->updates_enabled = true; in UpdateCheckAllowed() 207 result->target_channel.clear(); in UpdateCheckAllowed() 208 result->target_version_prefix.clear(); in UpdateCheckAllowed() 209 result->rollback_allowed = false; in UpdateCheckAllowed() 210 result->rollback_allowed_milestones = -1; in UpdateCheckAllowed() 211 result->interactive = false; in UpdateCheckAllowed() 252 result); in UpdateCheckAllowed() 265 ErrorCode* result, in UpdateCanBeApplied() argument 284 result, in UpdateCanBeApplied() [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/chre/apps/wifi_world/ |
D | wifi_world.cc | 83 void logChreWifiResult(const chreWifiScanResult& result) { in logChreWifiResult() argument 86 if (result.ssidLen == 0) { in logChreWifiResult() 89 result.ssid, result.ssidLen)) { in logChreWifiResult() 97 if (chre::parseBssidToStr(result.bssid, bssidBuffer, sizeof(bssidBuffer))) { in logChreWifiResult() 101 LOGI(" age (ms): %" PRIu32, result.ageMs); in logChreWifiResult() 102 LOGI(" capability info: %" PRIx16, result.capabilityInfo); in logChreWifiResult() 104 LOGI(" flags: %" PRIx8, result.flags); in logChreWifiResult() 105 LOGI(" rssi: %" PRId8 "dBm", result.rssi); in logChreWifiResult() 107 chre::parseChreWifiBand(result.band), result.band); in logChreWifiResult() 108 LOGI(" primary channel: %" PRIu32, result.primaryChannel); in logChreWifiResult() [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/core/base/ |
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/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 | 49 uint32_t result; in OI_BITSTREAM_ReadUINT() local 51 OI_BITSTREAM_READUINT(result, bits, bs->ptr.r, bs->value, bs->bitPtr); in OI_BITSTREAM_ReadUINT() 53 return result; in OI_BITSTREAM_ReadUINT() 57 uint32_t result; in OI_BITSTREAM_ReadUINT4Aligned() local 63 result = bs->value << 8; in OI_BITSTREAM_ReadUINT4Aligned() 66 result = bs->value << 12; in OI_BITSTREAM_ReadUINT4Aligned() 70 result >>= 28; in OI_BITSTREAM_ReadUINT4Aligned() 71 OI_ASSERT(result < (1u << 4)); in OI_BITSTREAM_ReadUINT4Aligned() 72 return (uint8_t)result; in OI_BITSTREAM_ReadUINT4Aligned() 76 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/bt/stack/avdt/ |
D | avdt_api.cc | 170 uint16_t result = AVDT_SUCCESS; in AVDT_CreateStream() local 178 result = AVDT_BAD_PARAMS; in AVDT_CreateStream() 184 result = AVDT_NO_RESOURCES; in AVDT_CreateStream() 190 AVDT_TRACE_DEBUG("%s: result=%d handle=%d scb_index=%d", __func__, result, in AVDT_CreateStream() 193 return result; in AVDT_CreateStream() 211 uint16_t result = AVDT_SUCCESS; in AVDT_RemoveStream() local 219 result = AVDT_BAD_HANDLE; in AVDT_RemoveStream() 225 AVDT_TRACE_DEBUG("%s: result=%d", __func__, result); in AVDT_RemoveStream() 227 return result; in AVDT_RemoveStream() 260 uint16_t result = AVDT_SUCCESS; in AVDT_DiscoverReq() local [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/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/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/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/keymaster/android_keymaster/ |
D | logger.cpp | 34 int result = Log(level, fmt, args); in Log() local 36 return result; in Log() 43 int result = Log(DEBUG_LVL, fmt, args); in Debug() local 45 return result; in Debug() 52 int result = Log(INFO_LVL, fmt, args); in Info() local 54 return result; in Info() 60 int result = Log(WARNING_LVL, fmt, args); in Warning() local 62 return result; in Warning() 68 int result = Log(ERROR_LVL, fmt, args); in Error() local 70 return result; in Error() [all …]
|
/system/chre/apps/chqts/src/general_test/ |
D | nanoapp_info.cc | 50 bool result = true; in validate() local 54 result = false; in validate() 58 result = false; in validate() 61 return result; in validate() 65 bool result = chreGetNanoappInfoByAppId(mAppId, info); in queryByAppId() local 67 if (!result) { in queryByAppId() 72 return result; in queryByAppId() 76 bool result = chreGetNanoappInfoByInstanceId(mInstanceId, info); in queryByInstanceId() local 78 if (!result) { in queryByInstanceId() 83 return result; in queryByInstanceId()
|