/system/tools/xsdc/src/com/android/xsdc/ |
D | CodeWriter.java | 52 public void println(String code) { in println() argument 53 print(code + "\n"); in println() 56 public void print(String code) { in print() argument 57 String[] lines = code.split("\n", -1); in print() 77 public void printf(String code, Object... arguments) { in printf() argument 78 print(String.format(code, arguments)); in printf() 88 private void printImpl(String code) { in printImpl() argument 90 out.print(code); in printImpl()
|
/system/update_engine/common/ |
D | action_processor.cc | 109 ErrorCode code) { in ActionComplete() argument 112 delegate_->ActionCompleted(this, actionptr, code); in ActionComplete() 114 current_action_->ActionCompleted(code); in ActionComplete() 119 << utils::ErrorCodeToString(code); in ActionComplete() 120 if (!actions_.empty() && code != ErrorCode::kSuccess) { in ActionComplete() 128 suspended_error_code_ = code; in ActionComplete() 131 StartNextActionOrFinish(code); in ActionComplete() 134 void ActionProcessor::StartNextActionOrFinish(ErrorCode code) { in StartNextActionOrFinish() argument 137 delegate_->ProcessingDone(this, code); in StartNextActionOrFinish()
|
D | error_code_utils.cc | 26 string ErrorCodeToString(ErrorCode code) { in ErrorCodeToString() argument 31 if ((static_cast<int>(code) & static_cast<int>(ErrorCode::kSpecialFlags)) && in ErrorCodeToString() 32 (static_cast<int>(code) & ~static_cast<int>(ErrorCode::kSpecialFlags))) in ErrorCodeToString() 33 code = static_cast<ErrorCode>(static_cast<int>(code) & in ErrorCodeToString() 35 switch (code) { in ErrorCodeToString() 182 return "Unknown error: " + base::NumberToString(static_cast<unsigned>(code)); in ErrorCodeToString()
|
D | http_common.cc | 28 const char* GetHttpResponseDescription(HttpResponseCode code) { in GetHttpResponseDescription() argument 30 HttpResponseCode code; in GetHttpResponseDescription() member 61 if ((is_found = (http_response_table[i].code == code))) in GetHttpResponseDescription()
|
D | action_processor.h | 92 virtual void ActionComplete(AbstractAction* actionptr, ErrorCode code); 100 void StartNextActionOrFinish(ErrorCode code); 134 [[maybe_unused]] ErrorCode code) {} in ProcessingDone() argument 145 [[maybe_unused]] ErrorCode code) {} in ActionCompleted() argument
|
/system/unwinding/libunwindstack/ |
D | DwarfSection.cpp | 45 last_error_.code = DWARF_ERROR_NONE; in Step() 48 last_error_.code = DWARF_ERROR_ILLEGAL_STATE; in Step() 91 last_error_.code = DWARF_ERROR_MEMORY_INVALID; in FillInCieHeader() 99 last_error_.code = DWARF_ERROR_MEMORY_INVALID; in FillInCieHeader() 110 last_error_.code = DWARF_ERROR_MEMORY_INVALID; in FillInCieHeader() 116 last_error_.code = DWARF_ERROR_ILLEGAL_VALUE; in FillInCieHeader() 127 last_error_.code = DWARF_ERROR_MEMORY_INVALID; in FillInCieHeader() 133 last_error_.code = DWARF_ERROR_ILLEGAL_VALUE; in FillInCieHeader() 143 last_error_.code = DWARF_ERROR_MEMORY_INVALID; in FillInCie() 150 last_error_.code = DWARF_ERROR_UNSUPPORTED_VERSION; in FillInCie() [all …]
|
D | ElfInterfaceArm.cpp | 39 last_error_.code = ERROR_UNWIND_INFO; in FindEntry() 68 last_error_.code = ERROR_UNWIND_INFO; in FindEntry() 75 last_error_.code = ERROR_MEMORY_INVALID; in GetPrel31Addr() 116 last_error_.code = ERROR_UNWIND_INFO; in StepExidx() 152 last_error_.code = ERROR_NONE; in StepExidx() 161 last_error_.code = ERROR_UNWIND_INFO; in StepExidx() 165 last_error_.code = ERROR_MEMORY_INVALID; in StepExidx()
|
D | DwarfEhFrameWithHdr.cpp | 52 last_error_.code = DWARF_ERROR_MEMORY_INVALID; in Init() 60 last_error_.code = DWARF_ERROR_UNSUPPORTED_VERSION; in Init() 73 last_error_.code = DWARF_ERROR_ILLEGAL_VALUE; in Init() 80 last_error_.code = DWARF_ERROR_MEMORY_INVALID; in Init() 87 last_error_.code = DWARF_ERROR_MEMORY_INVALID; in Init() 93 last_error_.code = DWARF_ERROR_NO_FDES; in Init() 128 last_error_.code = DWARF_ERROR_ILLEGAL_STATE; in GetFdeFromPc() 147 last_error_.code = DWARF_ERROR_MEMORY_INVALID; in GetFdeInfoFromIndex()
|
/system/core/libsysutils/src/ |
D | SocketClient.cpp | 73 int SocketClient::sendMsg(int code, const char *msg, bool addErrno) { in sendMsg() argument 74 return sendMsg(code, msg, addErrno, mUseCmdNum); in sendMsg() 77 int SocketClient::sendMsg(int code, const char *msg, bool addErrno, bool useCmdNum) { in sendMsg() argument 83 ret = asprintf(&buf, "%d %d %s (%s)", code, getCmdNum(), msg, strerror(errno)); in sendMsg() 85 ret = asprintf(&buf, "%d %s (%s)", code, msg, strerror(errno)); in sendMsg() 89 ret = asprintf(&buf, "%d %d %s", code, getCmdNum(), msg); in sendMsg() 91 ret = asprintf(&buf, "%d %s", code, msg); in sendMsg() 103 int SocketClient::sendBinaryMsg(int code, const void *data, int len) { in sendBinaryMsg() argument 108 snprintf(buf, 4, "%.3d", code); in sendBinaryMsg() 127 int SocketClient::sendCode(int code) { in sendCode() argument [all …]
|
/system/libziparchive/incfs_support/include/incfs_support/ |
D | signal_handling.h | 110 #define SCOPED_SIGBUS_HANDLER(code) argument 111 #define SCOPED_SIGBUS_HANDLER_CONDITIONAL(condition, code) argument 162 #define SCOPED_SIGBUS_HANDLER_CONDITIONAL(condition, code) \ argument 171 code; \ 178 #define SCOPED_SIGBUS_HANDLER(code) \ argument 179 SCOPED_SIGBUS_HANDLER_CONDITIONAL(true, code)
|
/system/tools/aidl/ |
D | aidl_to_cpp_common.cpp | 130 string code; in GenLogBeforeExecute() local 131 CodeWriterPtr writer = CodeWriter::ForString(&code); in GenLogBeforeExecute() 146 return code; in GenLogBeforeExecute() 152 string code; in GenLogAfterExecute() local 153 CodeWriterPtr writer = CodeWriter::ForString(&code); in GenLogAfterExecute() 201 return code; in GenLogAfterExecute() 250 std::ostringstream code; in GenerateEnumValues() local 251 code << "#pragma clang diagnostic push\n"; in GenerateEnumValues() 252 code << "#pragma clang diagnostic ignored \"-Wc++17-extensions\"\n"; in GenerateEnumValues() 254 code << "#pragma clang diagnostic ignored \"-Wdeprecated-declarations\"\n"; in GenerateEnumValues() [all …]
|
D | generate_java_binder.cpp | 161 auto code = std::make_shared<Variable>("int", "transactionCode"); in StubClass() local 162 getDefaultTransactionName->parameters.push_back(code); in StubClass() 164 this->code_to_method_name_switch = std::make_shared<SwitchStatement>(code); in StubClass() 358 std::ostringstream code; in ProxyClass() local 359 code << "private int mCachedVersion = -1;\n"; in ProxyClass() 360 this->elements.emplace_back(std::make_shared<LiteralClassElement>(code.str())); in ProxyClass() 363 std::ostringstream code; in ProxyClass() local 364 code << "private String mCachedHash = \"-1\";\n"; in ProxyClass() 365 this->elements.emplace_back(std::make_shared<LiteralClassElement>(code.str())); in ProxyClass() 386 string code; in GenerateWriteToParcel() local [all …]
|
/system/libbase/include/android-base/ |
D | result.h | 131 ResultError(T&& message, P&& code) in ResultError() 132 : message_(std::forward<T>(message)), code_(E(std::forward<P>(code))) {} in ResultError() 141 const E& code() const { return code_; } in code() function 151 ResultError(P&& code) : code_(E(std::forward<P>(code))) {} 158 const E& code() const { return code_; } 166 return lhs.message() == rhs.message() && lhs.code() == rhs.code(); 201 Error(P&& code) : code_(std::forward<P>(code)), has_code_(true) {} 221 code_ = t.code(); 255 Error(bool has_code, E code, const std::string& message) : code_(code), has_code_(has_code) { 269 inline E ErrorCode(E code) { [all …]
|
/system/core/libsysutils/include/sysutils/ |
D | SocketClient.h | 46 int sendMsg(int code, const char *msg, bool addErrno); 47 int sendMsg(int code, const char *msg, bool addErrno, bool useCmdNum); 52 int sendCode(int code); 57 int sendBinaryMsg(int code, const void *data, int len);
|
/system/extras/tests/workloads/ |
D | capture.sh | 63 code=$4 65 case $code in 72 (--) echo unknown code=$code;;
|
/system/chre/doc/ |
D | framework_overview.md | 16 approach that separates common code from platform-specific code. CHRE is an 18 code as well as CHRE system callbacks. Per the CHRE API, nanoapps can’t execute 25 To get a better understanding of code structure and how it weaves between common 28 everything that happens in each case (for that, refer to the code itself), but 43 link the code. 45 2. Once the nanoapp code is loaded, the platform code calls 55 transition from platform-specific to common code. 64 code can vary by platform, transferring control from the framework to a 87 framework code is only safe to execute from within the main CHRE thread), and 93 nanoapp’s request - we transition to common code here. [all …]
|
/system/tools/aidl/tests/golden_output/aidl-test-interface-java-source/gen/android/aidl/tests/ |
D | INewName.java | 46 …@Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int… in onTransact() argument 49 …if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRAN… in onTransact() 52 switch (code) in onTransact() 60 switch (code) in onTransact() 71 return super.onTransact(code, data, reply, flags); in onTransact()
|
D | IOldName.java | 46 …@Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int… in onTransact() argument 49 …if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRAN… in onTransact() 52 switch (code) in onTransact() 60 switch (code) in onTransact() 71 return super.onTransact(code, data, reply, flags); in onTransact()
|
D | INamedCallback.java | 46 …@Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int… in onTransact() argument 49 …if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRAN… in onTransact() 52 switch (code) in onTransact() 60 switch (code) in onTransact() 71 return super.onTransact(code, data, reply, flags); in onTransact()
|
/system/extras/power_profile/gps_on/Application/ |
D | build.gradle | 22 // keep boilerplate and common code separate from 23 // the main sample code. 25 'main', // main sample code; look here for the interesting stuff. 27 'template'] // boilerplate code that is generated by the sample template process
|
/system/core/healthd/ |
D | healthd_mode_charger.cpp | 452 int Charger::SetKeyCallback(int code, int value) { in SetKeyCallback() argument 456 if (code > KEY_MAX) return -1; in SetKeyCallback() 459 if (keys_[code].down == down) return 0; in SetKeyCallback() 463 if (down) keys_[code].timestamp = now; in SetKeyCallback() 464 keys_[code].down = down; in SetKeyCallback() 465 keys_[code].pending = true; in SetKeyCallback() 467 LOGV("[%" PRId64 "] key[%d] down\n", now, code); in SetKeyCallback() 469 int64_t duration = now - keys_[code].timestamp; in SetKeyCallback() 472 LOGV("[%" PRId64 "] key[%d] up (was down for %" PRId64 ".%" PRId64 "sec)\n", now, code, in SetKeyCallback() 479 int Charger::SetSwCallback(int code, int value) { in SetSwCallback() argument [all …]
|
/system/media/audio_utils/include/audio_utils/ |
D | ErrorLog.h | 71 void log(const T &code, int64_t nowNs) in log() argument 78 if (code == mEntries[mIdx].mCode in log() 89 mEntries[mIdx].setFirstError(code, nowNs); in log() 173 void setFirstError(T code, int64_t time) { in setFirstError() 174 mCode = code; in setFirstError() 226 void error_log_log(error_log_t *error_log, int32_t code, int64_t now_ns);
|
/system/libbase/ |
D | result_test.cpp | 71 EXPECT_EQ(0, fail.error().code()); in TEST() 92 EXPECT_EQ(0, result.error().code()); in TEST() 101 EXPECT_EQ(0, result.error().code()); in TEST() 116 EXPECT_EQ(0, MakeRvalueErrorResult().error().code()); in TEST() 128 EXPECT_EQ(test_errno, result.error().code()); in TEST() 140 EXPECT_EQ(test_errno, result.error().code()); in TEST() 156 EXPECT_EQ(0, result2.error().code()); in TEST() 172 EXPECT_EQ(0, result2.error().code()); in TEST() 192 EXPECT_EQ(test_errno, result2.error().code()); in TEST() 228 EXPECT_EQ(CustomError::A, err.error().code()); in TEST() [all …]
|
/system/chre/ |
D | README.md | 10 platforms, enabling them to be code-compatible across different devices. 43 ## Navigating the code 45 This repository (system/chre) contains an assortment of code, structured as 48 - ``apps/``: Public nanoapp source code, including sample nanoapps intended to 54 - ``chpp/``: Context Hub Peripheral Protocol (CHPP) source code - see the nested 58 - ``core/``: Common CHRE framework code, which is applicable to every platform 63 - ``host/``: Reference code which supports the CHRE implementation, but runs on 65 - ``java/``: Java test code used in conjunction with test nanoapps 70 - ``platform/include``: The interface between common code in ``core/`` and 71 platform-specific code implemented elsewhere in ``platform/`` [all …]
|
/system/chre/host/msm/daemon/idl/ |
D | README.md | 2 generated code using the QAIC tool included in the Hexagon SDK. This generated 3 code is checked in to allow compilation of the daemon code without a dependency
|