/system/tools/xsdc/src/main/java/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/tools/aidl/ |
D | generate_java_binder.cpp | 145 auto code = std::make_shared<Variable>("int", "transactionCode"); in StubClass() local 146 getDefaultTransactionName->parameters.push_back(code); in StubClass() 148 this->code_to_method_name_switch = std::make_shared<SwitchStatement>(code); in StubClass() 266 CodeWriter& code = *writer; in MakeConstructors() local 269 code << "private final android.os.PermissionEnforcer mEnforcer;\n"; in MakeConstructors() 270 code << "/** Construct the stub using the Enforcer provided. */\n"; in MakeConstructors() 271 code << "public Stub(android.os.PermissionEnforcer enforcer)\n"; in MakeConstructors() 273 code << "/** Construct the stub at attach it to the interface. */\n"; in MakeConstructors() 274 code << "public Stub()\n"; in MakeConstructors() 276 code << "{\n"; in MakeConstructors() [all …]
|
D | aidl_to_cpp_common.cpp | 160 string code; in GenLogBeforeExecute() local 161 CodeWriterPtr writer = CodeWriter::ForString(&code); in GenLogBeforeExecute() 176 return code; in GenLogBeforeExecute() 182 string code; in GenLogAfterExecute() local 183 CodeWriterPtr writer = CodeWriter::ForString(&code); in GenLogAfterExecute() 231 return code; in GenLogAfterExecute() 280 std::ostringstream code; in GenerateEnumValues() local 281 code << "#pragma clang diagnostic push\n"; in GenerateEnumValues() 282 code << "#pragma clang diagnostic ignored \"-Wc++17-extensions\"\n"; in GenerateEnumValues() 284 code << "#pragma clang diagnostic ignored \"-Wdeprecated-declarations\"\n"; in GenerateEnumValues() [all …]
|
/system/unwinding/libunwindstack/ |
D | DwarfSection.cpp | 51 last_error_.code = DWARF_ERROR_NONE; in Step() 54 last_error_.code = DWARF_ERROR_ILLEGAL_STATE; in Step() 97 last_error_.code = DWARF_ERROR_MEMORY_INVALID; in FillInCieHeader() 105 last_error_.code = DWARF_ERROR_MEMORY_INVALID; in FillInCieHeader() 116 last_error_.code = DWARF_ERROR_MEMORY_INVALID; in FillInCieHeader() 122 last_error_.code = DWARF_ERROR_ILLEGAL_VALUE; in FillInCieHeader() 133 last_error_.code = DWARF_ERROR_MEMORY_INVALID; in FillInCieHeader() 139 last_error_.code = DWARF_ERROR_ILLEGAL_VALUE; in FillInCieHeader() 149 last_error_.code = DWARF_ERROR_MEMORY_INVALID; in FillInCie() 156 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/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/tools/aidl/tests/golden_output/aidl-test-interface-permission-java-source/gen/android/aidl/tests/permission/ |
D | INoPermission.java | 65 …@Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int… in onTransact() argument 68 …if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRAN… in onTransact() 71 switch (code) in onTransact() 79 switch (code) in onTransact() 89 return super.onTransact(code, data, reply, flags); in onTransact()
|
/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/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 | 429 int Charger::SetKeyCallback(int code, int value) { in SetKeyCallback() argument 433 if (code > KEY_MAX) return -1; in SetKeyCallback() 436 if (keys_[code].down == down) return 0; in SetKeyCallback() 440 if (down) keys_[code].timestamp = now; in SetKeyCallback() 441 keys_[code].down = down; in SetKeyCallback() 442 keys_[code].pending = true; in SetKeyCallback() 444 LOGV("[%" PRId64 "] key[%d] down\n", now, code); in SetKeyCallback() 446 int64_t duration = now - keys_[code].timestamp; in SetKeyCallback() 449 LOGV("[%" PRId64 "] key[%d] up (was down for %" PRId64 ".%" PRId64 "sec)\n", now, code, in SetKeyCallback() 456 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/tools/aidl/tests/golden_output/aidl-test-interface-java-source/gen/android/aidl/tests/ |
D | IOldName.java | 66 …@Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int… in onTransact() argument 69 …if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRAN… in onTransact() 72 switch (code) in onTransact() 80 switch (code) in onTransact() 91 return super.onTransact(code, data, reply, flags); in onTransact()
|
D | INewName.java | 66 …@Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int… in onTransact() argument 69 …if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRAN… in onTransact() 72 switch (code) in onTransact() 80 switch (code) in onTransact() 91 return super.onTransact(code, data, reply, flags); in onTransact()
|
D | INamedCallback.java | 66 …@Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int… in onTransact() argument 69 …if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRAN… in onTransact() 72 switch (code) in onTransact() 80 switch (code) in onTransact() 91 return super.onTransact(code, data, reply, flags); in onTransact()
|
/system/libbase/ |
D | result_test.cpp | 72 EXPECT_EQ(0, fail.error().code()); in TEST() 93 EXPECT_EQ(0, result.error().code()); in TEST() 102 EXPECT_EQ(0, result.error().code()); in TEST() 117 EXPECT_EQ(0, MakeRvalueErrorResult().error().code()); in TEST() 129 EXPECT_EQ(test_errno, result.error().code()); in TEST() 141 EXPECT_EQ(test_errno, result.error().code()); in TEST() 157 EXPECT_EQ(0, result2.error().code()); in TEST() 173 EXPECT_EQ(0, result2.error().code()); in TEST() 193 EXPECT_EQ(test_errno, result2.error().code()); in TEST() 229 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 …]
|