Home
last modified time | relevance | path

Searched refs:exceptionCode (Results 1 – 25 of 31) sorted by relevance

12

/frameworks/native/libs/binder/
DStatus.cpp26 Status Status::fromExceptionCode(int32_t exceptionCode) { in fromExceptionCode() argument
27 if (exceptionCode == EX_TRANSACTION_FAILED) { in fromExceptionCode()
28 return Status(exceptionCode, FAILED_TRANSACTION); in fromExceptionCode()
30 return Status(exceptionCode, OK); in fromExceptionCode()
33 Status Status::fromExceptionCode(int32_t exceptionCode, in fromExceptionCode() argument
35 if (exceptionCode == EX_TRANSACTION_FAILED) { in fromExceptionCode()
36 return Status(exceptionCode, FAILED_TRANSACTION, message); in fromExceptionCode()
38 return Status(exceptionCode, OK, message); in fromExceptionCode()
41 Status Status::fromExceptionCode(int32_t exceptionCode, in fromExceptionCode() argument
43 return fromExceptionCode(exceptionCode, String8(message)); in fromExceptionCode()
[all …]
DIActivityManager.cpp46 int32_t exceptionCode = reply.readExceptionCode(); in openContentUri() local
47 if (!exceptionCode) { in openContentUri()
56 String8(stringUri).string(), exceptionCode); in openContentUri()
DIServiceManager.cpp320 return status.exceptionCode(); in addService()
/frameworks/av/media/libmedia/
DIMediaHTTPConnection.cpp70 int32_t exceptionCode = reply.readExceptionCode(); in connect() local
72 if (exceptionCode) { in connect()
104 int32_t exceptionCode = reply.readExceptionCode(); in readAt() local
106 if (exceptionCode) { in readAt()
148 int32_t exceptionCode = reply.readExceptionCode(); in getSize() local
150 if (exceptionCode) { in getSize()
166 int32_t exceptionCode = reply.readExceptionCode(); in getMIMEType() local
168 if (exceptionCode) { in getMIMEType()
186 int32_t exceptionCode = reply.readExceptionCode(); in getUri() local
188 if (exceptionCode) { in getUri()
/frameworks/native/libs/binder/include/binder/
DStatus.h88 static Status fromExceptionCode(int32_t exceptionCode);
89 static Status fromExceptionCode(int32_t exceptionCode,
91 static Status fromExceptionCode(int32_t exceptionCode,
105 static std::string exceptionToString(status_t exceptionCode);
134 int32_t exceptionCode() const { return mException; } in exceptionCode() function
149 Status(int32_t exceptionCode, int32_t errorCode);
150 Status(int32_t exceptionCode, int32_t errorCode, const String8& message);
/frameworks/native/include/binder/
DStatus.h88 static Status fromExceptionCode(int32_t exceptionCode);
89 static Status fromExceptionCode(int32_t exceptionCode,
91 static Status fromExceptionCode(int32_t exceptionCode,
105 static std::string exceptionToString(status_t exceptionCode);
134 int32_t exceptionCode() const { return mException; } in exceptionCode() function
149 Status(int32_t exceptionCode, int32_t errorCode);
150 Status(int32_t exceptionCode, int32_t errorCode, const String8& message);
/frameworks/native/libs/binder/tests/unit_fuzzers/
DStatusFuzz.cpp32 int32_t exceptionCode = fdp.ConsumeIntegral<int32_t>(); in LLVMFuzzerTestOneInput() local
40 binder::Status status = binder::Status::fromExceptionCode(exceptionCode, message); in LLVMFuzzerTestOneInput()
/frameworks/base/native/android/
Dthermal.cpp135 if (ret.exceptionCode() == binder::Status::EX_SECURITY) { in addListener()
168 if (ret.exceptionCode() == binder::Status::EX_SECURITY) { in removeListener()
181 if (ret.exceptionCode() == binder::Status::EX_SECURITY) { in getCurrentThermalStatus()
193 if (ret.exceptionCode() == binder::Status::EX_SECURITY) { in getThermalHeadroom()
/frameworks/av/media/libaudioclient/tests/
Daudio_aidl_status_tests.cpp65 for (int exceptionCode : { in TEST()
82 ASSERT_NE(OK, statusTFromBinderStatus(Status::fromExceptionCode(exceptionCode))); in TEST()
/frameworks/native/cmds/installd/binder/android/os/
DCreateAppDataResult.aidl22 int exceptionCode;
/frameworks/native/services/powermanager/benchmarks/
DPowerHalAidlBenchmarks.cpp74 if (ret.exceptionCode() == binder::Status::Exception::EX_UNSUPPORTED_OPERATION) { in runBenchmark()
113 if (ret.exceptionCode() == binder::Status::Exception::EX_UNSUPPORTED_OPERATION) { in runSessionBenchmark()
167 if (ret.exceptionCode() == binder::Status::Exception::EX_UNSUPPORTED_OPERATION) { in BM_PowerHalAidlBenchmarks_createHintSession()
/frameworks/native/cmds/servicemanager/
Dtest_sm.cpp336 EXPECT_EQ(sm->registerForNotifications("foofoo", cb).exceptionCode(), in TEST()
351 EXPECT_EQ(sm->unregisterForNotifications("foofoo", cb).exceptionCode(), in TEST()
360 EXPECT_EQ(sm->registerForNotifications("foo@foo", cb).exceptionCode(), in TEST()
367 EXPECT_EQ(sm->registerForNotifications("foofoo", nullptr).exceptionCode(), in TEST()
377 EXPECT_EQ(sm->unregisterForNotifications("foofoo", cb).exceptionCode(), 0); in TEST()
385 EXPECT_EQ(sm->unregisterForNotifications("foofoo", cb).exceptionCode(), in TEST()
/frameworks/base/media/native/midi/
Damidi.cpp134 ALOGE("%s server exception code: %d", __func__, txResult.exceptionCode()); in AMIDI_getDeviceInfo()
264 ALOGE("%s server exception code: %d", __func__, txResult.exceptionCode()); in AMIDI_openPort()
293 ALOGE("%s server exception code: %d", __func__, txResult.exceptionCode()); in AMIDI_closePort()
/frameworks/base/services/incremental/
DIncrementalServiceValidation.cpp37 return status.exceptionCode() == binder::Status::EX_SERVICE_SPECIFIC in fromBinderStatus()
/frameworks/av/media/libaudioclient/include/media/
DAidlConversionUtil.h307 static inline status_t statusTFromExceptionCode(int32_t exceptionCode) {
309 switch (exceptionCode) {
348 ?: statusTFromExceptionCode(status.exceptionCode()); // a service-side error with a
/frameworks/native/libs/binder/tests/
DbinderParcelUnitTest.cpp76 EXPECT_EQ(p.enforceNoDataAvail().exceptionCode(), Status::Exception::EX_BAD_PARCELABLE); in TEST()
78 EXPECT_EQ(p.enforceNoDataAvail().exceptionCode(), Status::Exception::EX_NONE); in TEST()
DbinderStabilityTest.cpp179 EXPECT_EQ(BAD_TYPE, server->sendAndCallBinder(binder).exceptionCode()); in TEST()
239 EXPECT_EQ(BAD_TYPE, server->sendAndCallBinder(binder).exceptionCode()); in TEST()
/frameworks/native/libs/binder/ndk/
Dstatus.cpp56 return PruneException(status->get().exceptionCode()); in AStatus_getExceptionCode()
/frameworks/av/services/camera/libcameraservice/common/aidl/
DAidlProviderInfo.cpp68 auto exceptionCode = s.getExceptionCode(); in mapToStatusT() local
69 if (exceptionCode != EX_SERVICE_SPECIFIC) { in mapToStatusT()
70 return mapExceptionCodeToStatusT(exceptionCode); in mapToStatusT()
/frameworks/native/include/powermanager/
DPowerHalWrapper.h49 if (status.exceptionCode() == binder::Status::EX_UNSUPPORTED_OPERATION) { in fromStatus()
/frameworks/native/services/powermanager/
DPowerHalWrapper.cpp68 if (status.exceptionCode() == binder::Status::EX_UNSUPPORTED_OPERATION) { in fromStatus()
/frameworks/base/services/core/java/com/android/server/pm/
DInstaller.java250 result.exceptionCode = 0; in buildPlaceholderCreateAppDataResult()
396 if (result.exceptionCode == 0) { in execute()
/frameworks/native/libs/binder/rust/tests/
Dserialization.cpp431 ASSERT_EQ(status.exceptionCode(), binder::Status::EX_NULL_POINTER); in TEST_F()
/frameworks/native/services/surfaceflinger/DisplayHardware/
DPowerAdvisor.cpp738 ret.exceptionToString(ret.exceptionCode()).c_str()); in startPowerHintSession()
/frameworks/native/services/vibratorservice/include/vibratorservice/
DVibratorHalWrapper.h45 if (status.exceptionCode() == binder::Status::EX_UNSUPPORTED_OPERATION || in fromStatus()

12