/device/google/cuttlefish/host/commands/assemble_cvd/ |
D | boot_image_utils.cc | 85 int success = 0; in RepackVendorRamdisk() local 89 success = Execute({"rm", "-rf", ramdisk_stage_dir + "/lib/modules"}); in RepackVendorRamdisk() 90 CHECK(success == 0) << "Could not rmdir \"lib/modules\" in TMP_RD_DIR. " in RepackVendorRamdisk() 91 << "Exited with status " << success; in RepackVendorRamdisk() 94 success = Execute({"/bin/bash", "-c", in RepackVendorRamdisk() 97 CHECK(success == 0) << "Unable to run cd or cpio. Exited with status " in RepackVendorRamdisk() 98 << success; in RepackVendorRamdisk() 100 success = Execute({"/bin/bash", "-c", in RepackVendorRamdisk() 104 CHECK(success == 0) << "Unable to run lz4. Exited with status " << success; in RepackVendorRamdisk() 127 int success = Execute({"/bin/bash", "-c", in PackRamdisk() local [all …]
|
/device/google/contexthub/util/nanotool/ |
D | contexthub.cpp | 170 bool success = ForEachSensor(sensors, [this](const SensorSpec &spec) -> bool { in CalibrateSensors() local 174 if (success) { in CalibrateSensors() 175 success = SaveCalibration(); in CalibrateSensors() 177 return success; in CalibrateSensors() 181 bool success = ForEachSensor(sensors, [this](const SensorSpec &spec) -> bool { in TestSensors() local 185 return success; in TestSensors() 250 bool success = true; in DisableAllSensors() local 253 success &= DisableSensor(sensor_names_[i].sensor_type); in DisableAllSensors() 256 return success; in DisableAllSensors() 260 bool success = true; in DisableActiveSensors() local [all …]
|
D | androidcontexthub.cpp | 98 bool success = true; in GetCalibrationBytes() local 108 success = CopyInt32Array(key, json, bytes); in GetCalibrationBytes() 112 success = CopyFloatArray(key, json, bytes); in GetCalibrationBytes() 118 success = json->getFloat(key, &value); in GetCalibrationBytes() 119 if (success) { in GetCalibrationBytes() 128 success = CopyInt32Array(key, json, bytes); in GetCalibrationBytes() 129 if (!success) { in GetCalibrationBytes() 131 success = json->getInt32(key, &value); in GetCalibrationBytes() 132 if (success) { in GetCalibrationBytes() 144 success = false; in GetCalibrationBytes() [all …]
|
D | nanotool.cpp | 440 bool success = true; in main() local 443 success = hub->DisableSensors(args->sensors); in main() 446 success = hub->DisableAllSensors(); in main() 457 success = hub->EnableSensors(args->sensors); in main() 458 if (success) { in main() 465 success = hub->CalibrateSensors(args->sensors); in main() 476 success = hub->TestSensors(args->sensors); in main() 480 success = hub->LoadCalibration(); in main() 484 success = hub->Flash(args->filename); in main() 488 success = hub->PrintBridgeVersion(); in main() [all …]
|
/device/google/cuttlefish/common/libs/fs/ |
D | epoll.cpp | 81 int success = epoll_ctl(epoll_fd_->fd_, EPOLL_CTL_ADD, fd->fd_, &event); in Add() local 82 if (success != 0 && errno == EEXIST) { in Add() 85 } else if (success != 0) { in Add() 102 int success = epoll_ctl(epoll_fd_->fd_, operation, fd->fd_, &event); in AddOrModify() local 103 if (success != 0) { in AddOrModify() 123 int success = epoll_ctl(epoll_fd_->fd_, EPOLL_CTL_MOD, fd->fd_, &event); in Modify() local 124 if (success != 0) { in Modify() 139 int success = epoll_ctl(epoll_fd_->fd_, EPOLL_CTL_DEL, fd->fd_, nullptr); in Delete() local 140 if (success != 0) { in Delete() 149 int success; in Wait() local [all …]
|
/device/google/contexthub/firmware/os/core/ |
D | nanohubCommand.c | 582 resp->respLegacy.success = valid; in firmwareWrite() 1234 resp->success = doStartFirmwareUpload(&hwReq, true); in halLegacyStartUpload() 1256 cookie->respLegacy.success = false; in halLegacyContUpload() 1288 resp->success = (reply == NANOHUB_FIRMWARE_UPLOAD_SUCCESS); in halLegacyFinishUpload() 1390 bool success = osEraseShared(); in deferHalSysMgmtErase() local 1392 if (success) in deferHalSysMgmtErase() 1485 bool success = true; in processAppTags() local 1510 for (i=0; i<cnt && success; i++) { in processAppTags() 1513 success = copyTLV64(data, &offset, max_len, tags[i], app->hdr.appId); in processAppTags() 1517 success = copyTLV32(data, &offset, max_len, tags[i], crc); in processAppTags() [all …]
|
/device/google/cuttlefish/host/libs/image_aggregator/ |
D | sparse_image_utils.cc | 92 int success = simg2img_cmd.Start().Wait(); in ConvertToRawImage() local 93 if (success != 0) { in ConvertToRawImage() 96 << " to raw image. " << success; in ConvertToRawImage() 110 success = mv_cmd.Start().Wait(); in ConvertToRawImage() 113 if (success != 0) { in ConvertToRawImage() 114 LOG(FATAL) << "Unable to rename raw image " << success; in ConvertToRawImage()
|
/device/google/cuttlefish/guest/hals/ril/reference-ril/ |
D | reference-ril.c | 703 if (err < 0 || p_response->success == 0) goto error; in requestRadioPower() 707 if (err < 0|| p_response->success == 0) { in requestRadioPower() 841 if (err != 0 || p_response->success == 0) { in requestOrSendDataCallList() 895 if (err != 0 || p_response->success == 0) { in requestOrSendDataCallList() 1025 if (err < 0 || p_response->success == 0) { in requestOrSendDataCallList() 1099 if (err < 0 || p_response->success == 0) { in requestQueryNetworkSelectionMode() 1154 if (err != 0 || p_response->success == 0) { 1304 if (err != 0 || p_response->success == 0) goto error; 1356 if (err < 0 || p_response->success == 0) { 1464 if (err || !p_response->success) { [all …]
|
D | base64util.cpp | 33 bool success = cuttlefish::DecodeBase64(input, &output); in base64_decode() local 34 if (!success) { in base64_decode() 49 bool success = cuttlefish::EncodeBase64( in base64_encode() local 52 if (!success) { in base64_encode()
|
D | atchannel.c | 242 sp_response->success = 1; in processLine() 245 sp_response->success = 0; in processLine() 800 && (*pp_outResponse)->success > 0 in at_send_command_singleline() 822 && (*pp_outResponse)->success > 0 in at_send_command_numeric() 846 && (*pp_outResponse)->success > 0 in at_send_command_sms() 930 if (p_response->success > 0) { in at_get_cme_error()
|
/device/generic/goldfish/dhcp/client/ |
D | interface.cpp | 82 return Result::success(); in init() 106 return Result::success(); in setMtu() 168 return Result::success(); in setAddress() 189 return Result::success(); in populateIndex() 201 return Result::success(); in populateMacAddress() 219 return Result::success(); in setInterfaceUp() 228 return Result::success(); in setInterfaceUp()
|
/device/generic/goldfish/dhcp/common/ |
D | socket.cpp | 83 return Result::success(); in open() 98 return Result::success(); in bind() 163 return Result::success(); in sendOnInterface() 231 return Result::success(); in sendRawUdp() 264 return Result::success(); in receiveFromInterface() 288 return Result::success(); in receiveRawUdp() 296 return Result::success(); in receiveRawUdp() 314 return Result::success(); in enableOption()
|
/device/google/gs201/usb/usb/ |
D | Usb.cpp | 194 bool success = true; in enableUsbDataWhileDocked() local 204 success = WriteStringToFile("1", KPogoMoveDataToUsb); in enableUsbDataWhileDocked() 205 if (!success) { in enableUsbDataWhileDocked() 214 success ? Status::SUCCESS : Status::ERROR, in_transactionId); in enableUsbDataWhileDocked() 645 bool sessionFail = false, success; in limitPowerTransfer() local 663 success = WriteStringToFile("0", currentLimitPath); in limitPowerTransfer() 664 if (!success) { in limitPowerTransfer() 669 success = WriteStringToFile(in_limit ? "1" : "0", sinkLimitEnablePath); in limitPowerTransfer() 670 if (!success) { in limitPowerTransfer() 675 success = WriteStringToFile(in_limit ? "1" : "0", sourceLimitEnablePath); in limitPowerTransfer() [all …]
|
/device/google/gs101/usb/usb/ |
D | Usb.cpp | 176 bool success = true; in enableUsbDataWhileDocked() local 186 success = WriteStringToFile("1", KPogoMoveDataToUsb); in enableUsbDataWhileDocked() 187 if (!success) { in enableUsbDataWhileDocked() 196 success ? Status::SUCCESS : Status::ERROR, in_transactionId); in enableUsbDataWhileDocked() 636 bool sessionFail = false, success; in limitPowerTransfer() local 649 success = WriteStringToFile("0", currentLimitPath); in limitPowerTransfer() 650 if (!success) { in limitPowerTransfer() 655 success = WriteStringToFile(in_limit ? "1" : "0", sinkLimitEnablePath); in limitPowerTransfer() 656 if (!success) { in limitPowerTransfer() 661 success = WriteStringToFile(in_limit ? "1" : "0", sourceLimitEnablePath); in limitPowerTransfer() [all …]
|
/device/google/sunfish/usb/usb/ |
D | Usb.cpp | 168 bool sessionFail = false, success; in limitPowerTransfer() local 174 success = WriteStringToFile("0", SINK_CURRENT_LIMIT_PATH); in limitPowerTransfer() 175 if (!success) { in limitPowerTransfer() 180 success = WriteStringToFile(in_limit ? "1" : "0", SINK_LIMIT_ENABLE_PATH); in limitPowerTransfer() 181 if (!success) { in limitPowerTransfer() 186 success = WriteStringToFile(in_limit ? "1" : "0", SOURCE_LIMIT_ENABLE_PATH); in limitPowerTransfer() 187 if (!success) { in limitPowerTransfer() 689 bool success = true; in enableContaminantPresenceDetection() local 692 success = WriteStringToFile(in_enable ? "1" : "0", kEnabledPath); in enableContaminantPresenceDetection() 697 in_portName, in_enable, success ? Status::SUCCESS : Status::ERROR, in_transactionId); in enableContaminantPresenceDetection()
|
/device/google/barbet/usb/usb/ |
D | Usb.cpp | 168 bool sessionFail = false, success; in limitPowerTransfer() local 174 success = WriteStringToFile("0", SINK_CURRENT_LIMIT_PATH); in limitPowerTransfer() 175 if (!success) { in limitPowerTransfer() 180 success = WriteStringToFile(in_limit ? "1" : "0", SINK_LIMIT_ENABLE_PATH); in limitPowerTransfer() 181 if (!success) { in limitPowerTransfer() 186 success = WriteStringToFile(in_limit ? "1" : "0", SOURCE_LIMIT_ENABLE_PATH); in limitPowerTransfer() 187 if (!success) { in limitPowerTransfer() 689 bool success = true; in enableContaminantPresenceDetection() local 692 success = WriteStringToFile(in_enable ? "1" : "0", kEnabledPath); in enableContaminantPresenceDetection() 697 in_portName, in_enable, success ? Status::SUCCESS : Status::ERROR, in_transactionId); in enableContaminantPresenceDetection()
|
/device/google/redfin/usb/usb/ |
D | Usb.cpp | 168 bool sessionFail = false, success; in limitPowerTransfer() local 174 success = WriteStringToFile("0", SINK_CURRENT_LIMIT_PATH); in limitPowerTransfer() 175 if (!success) { in limitPowerTransfer() 180 success = WriteStringToFile(in_limit ? "1" : "0", SINK_LIMIT_ENABLE_PATH); in limitPowerTransfer() 181 if (!success) { in limitPowerTransfer() 186 success = WriteStringToFile(in_limit ? "1" : "0", SOURCE_LIMIT_ENABLE_PATH); in limitPowerTransfer() 187 if (!success) { in limitPowerTransfer() 689 bool success = true; in enableContaminantPresenceDetection() local 692 success = WriteStringToFile(in_enable ? "1" : "0", kEnabledPath); in enableContaminantPresenceDetection() 697 in_portName, in_enable, success ? Status::SUCCESS : Status::ERROR, in_transactionId); in enableContaminantPresenceDetection()
|
/device/google/coral/usb/usb/ |
D | Usb.cpp | 168 bool sessionFail = false, success; in limitPowerTransfer() local 174 success = WriteStringToFile("0", SINK_CURRENT_LIMIT_PATH); in limitPowerTransfer() 175 if (!success) { in limitPowerTransfer() 180 success = WriteStringToFile(in_limit ? "1" : "0", SINK_LIMIT_ENABLE_PATH); in limitPowerTransfer() 181 if (!success) { in limitPowerTransfer() 186 success = WriteStringToFile(in_limit ? "1" : "0", SOURCE_LIMIT_ENABLE_PATH); in limitPowerTransfer() 187 if (!success) { in limitPowerTransfer() 689 bool success = true; in enableContaminantPresenceDetection() local 692 success = WriteStringToFile(in_enable ? "1" : "0", kEnabledPath); in enableContaminantPresenceDetection() 697 in_portName, in_enable, success ? Status::SUCCESS : Status::ERROR, in_transactionId); in enableContaminantPresenceDetection()
|
/device/google/cuttlefish/tests/snapshot/src/com/android/cuttlefish/tests/ |
D | SnapshotTest.java | 123 boolean success = new DeviceResetHandler(getInvocationContext()).resetDevice(getDevice()); in testSnapshotPowerwash() 124 assertTrue(String.format("Powerwash reset failed during attempt after restore"), success); in testSnapshotPowerwash() 138 boolean success = new DeviceResetHandler(getInvocationContext()).resetDevice(getDevice()); in testPowerwashSnapshot() 139 assertTrue(String.format("Powerwash reset failed during attempt before snapshot"), success); in testPowerwashSnapshot()
|
/device/google/cuttlefish/host/libs/config/ |
D | esp.cpp | 150 const auto success = Execute(command); in MsdosMakeDirectories() local 151 if (success != 0) { in MsdosMakeDirectories() 160 const auto success = in CopyToMsdos() local 162 if (success != 0) { in CopyToMsdos() 177 const auto success = Execute(command); in GrubMakeImage() local 178 return success == 0; in GrubMakeImage()
|
/device/google/cuttlefish/host/commands/secure_env/ |
D | hmac_serializable.cpp | 80 bool success = in Deserialize() local 83 if (!success) { in Deserialize() 89 success = in Deserialize() 92 if (!success) { in Deserialize()
|
/device/google/cuttlefish/host/commands/modem_simulator/ |
D | modem_simulator.cpp | 108 bool success = false; in DispatchCommand() local 110 success = service.second->HandleModemCommand(client, command); in DispatchCommand() 111 if (success) { in DispatchCommand() 116 if (!success && client.Type() != Client::REMOTE) { in DispatchCommand()
|
/device/generic/goldfish/dhcp/common/include/ |
D | result.h | 25 static Result success() { in success() function 47 explicit Result(bool success) : mSuccess(success) { } in Result() argument
|
/device/generic/car/emulator/usbpt/bluetooth/usb_modeswitch/ |
D | usb_modeswitch.c | 963 int success; in resetUSB() local 976 success = libusb_reset_device(devh); in resetUSB() 983 SHOW_PROGRESS(output," Reset USB device failed with error %d", success); in resetUSB() 984 fprintf(stderr,"Reset USB device failed with error %d", success); in resetUSB() 985 success = 1; in resetUSB() 987 } while (success < 0); in resetUSB() 989 if ( success == 0 ) in resetUSB() 1535 int newTargetCount, success=0; in checkSuccess() local 1608 success = 2; in checkSuccess() 1623 success = 1; in checkSuccess() [all …]
|
/device/google/cuttlefish/tests/fastboot/src/com/android/cuttlefish/tests/ |
D | OemlockTest.java | 73 private void verifyErasingSuccess(boolean success) throws DeviceNotAvailableException { in verifyErasingSuccess() argument 77 String.format("Erase command must %s", success ? "succeed" : "failed"), in verifyErasingSuccess() 79 success ? CommandStatus.SUCCESS : CommandStatus.FAILED in verifyErasingSuccess()
|