Home
last modified time | relevance | path

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

123

/aosp12/system/libhidl/base/
H A DStatus.cpp54 Status Status::fromExceptionCode(int32_t exceptionCode) { in fromExceptionCode() argument
55 if (exceptionCode == EX_TRANSACTION_FAILED) { in fromExceptionCode()
56 return Status(exceptionCode, FAILED_TRANSACTION); in fromExceptionCode()
58 return Status(exceptionCode, OK); in fromExceptionCode()
61 Status Status::fromExceptionCode(int32_t exceptionCode, in fromExceptionCode() argument
63 if (exceptionCode == EX_TRANSACTION_FAILED) { in fromExceptionCode()
66 return Status(exceptionCode, OK, message); in fromExceptionCode()
75 Status::Status(int32_t exceptionCode, int32_t errorCode) in Status() argument
76 : mException(exceptionCode), in Status()
80 : mException(exceptionCode), in Status()
[all …]
/aosp12/frameworks/native/libs/binder/
H A 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()
38 return Status(exceptionCode, OK, message); in fromExceptionCode()
41 Status Status::fromExceptionCode(int32_t exceptionCode, in fromExceptionCode() argument
67 switch (exceptionCode) { in exceptionToString()
87 : mException(exceptionCode), in Status()
[all …]
H A DIActivityManager.cpp46 int32_t exceptionCode = reply.readExceptionCode(); in openContentUri() local
47 if (!exceptionCode) { in openContentUri()
56 String8(stringUri).string(), exceptionCode); in openContentUri()
/aosp12/hardware/interfaces/identity/aidl/vts/
H A DVtsIWritableIdentityCredentialTests.cpp75 EXPECT_EQ(binder::Status::EX_SERVICE_SPECIFIC, result.exceptionCode()); in TEST_P()
121 EXPECT_FALSE(attData2.result.isOk()) << attData2.result.exceptionCode() << "; " in TEST_P()
123 EXPECT_EQ(binder::Status::EX_SERVICE_SPECIFIC, attData2.result.exceptionCode()); in TEST_P()
146 EXPECT_EQ(binder::Status::EX_SERVICE_SPECIFIC, result.exceptionCode()); in TEST_P()
227 EXPECT_EQ(binder::Status::EX_SERVICE_SPECIFIC, result.exceptionCode()); in TEST_P()
266 << result.exceptionCode() << "; " << result.exceptionMessage() in TEST_P()
277 << result.exceptionCode() << "; " << result.exceptionMessage() in TEST_P()
280 ASSERT_EQ(binder::Status::EX_SERVICE_SPECIFIC, result.exceptionCode()); in TEST_P()
679 EXPECT_EQ(binder::Status::EX_SERVICE_SPECIFIC, result.exceptionCode()); in TEST_P()
704 ASSERT_EQ(binder::Status::EX_SERVICE_SPECIFIC, result.exceptionCode()); in TEST_P()
[all …]
H A DUpdateCredentialTests.cpp112 EXPECT_TRUE(status.isOk()) << status.exceptionCode() << ": " << status.exceptionMessage(); in provisionData()
169 EXPECT_EQ(binder::Status::EX_SERVICE_SPECIFIC, result.exceptionCode()); in TEST_P()
194 EXPECT_TRUE(status.isOk()) << status.exceptionCode() << ": " << status.exceptionMessage(); in TEST_P()
H A DVtsAttestationTests.cpp78 ASSERT_TRUE(result.isOk()) << result.exceptionCode() << "; " << result.exceptionMessage() in TEST_P()
101 ASSERT_TRUE(result.isOk()) << result.exceptionCode() << "; " << result.exceptionMessage() in TEST_P()
/aosp12/frameworks/av/media/libmedia/
H A 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()
/aosp12/hardware/interfaces/vibrator/aidl/vts/
H A DVtsHalVibratorTargetTest.cpp117 return status.exceptionCode() == Status::EX_UNSUPPORTED_OPERATION || in isUnknownOrUnsupported()
126 EXPECT_EQ(status.exceptionCode(), Status::EX_NONE); in getResonantFrequencyHz()
138 EXPECT_EQ(status.exceptionCode(), Status::EX_NONE); in getFrequencyResolutionHz()
149 EXPECT_EQ(status.exceptionCode(), Status::EX_NONE); in getFrequencyMinimumHz()
165 EXPECT_EQ(status.exceptionCode(), Status::EX_NONE); in getFrequencyMaximumHz()
419 EXPECT_EQ(Status::EX_NONE, status.exceptionCode()); in TEST_P()
648 EXPECT_EQ(status.exceptionCode(), Status::EX_NONE); in TEST_P()
666 EXPECT_EQ(status.exceptionCode(), Status::EX_NONE); in TEST_P()
688 EXPECT_EQ(status.exceptionCode(), Status::EX_NONE); in TEST_P()
699 EXPECT_EQ(status.exceptionCode(), Status::EX_NONE); in TEST_P()
[all …]
H A DVtsHalVibratorManagerTargetTest.cpp75 return status.exceptionCode() == Status::EX_UNSUPPORTED_OPERATION || in isUnknownOrUnsupported()
91 manager->getVibrator(invalidId, &vibrator).exceptionCode()); in TEST_P()
104 EXPECT_EQ(Status::EX_ILLEGAL_ARGUMENT, manager->prepareSynced(emptyIds).exceptionCode()); in TEST_P()
/aosp12/frameworks/native/include/binder/
H A 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);
130 int32_t exceptionCode() const { return mException; } in exceptionCode() function
145 Status(int32_t exceptionCode, int32_t errorCode);
146 Status(int32_t exceptionCode, int32_t errorCode, const String8& message);
/aosp12/frameworks/native/libs/binder/include/binder/
H A 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);
130 int32_t exceptionCode() const { return mException; } in exceptionCode() function
145 Status(int32_t exceptionCode, int32_t errorCode);
146 Status(int32_t exceptionCode, int32_t errorCode, const String8& message);
/aosp12/system/netd/include/binder_utils/
H A DBinderUtil.h80 const int exceptionCode = TO_EXCEPTION(log.exception_code); in binderCallLogFn() local
82 if (hasReturnArgs || !IS_BINDER_OK(exceptionCode)) { in binderCallLogFn()
87 if (!IS_BINDER_OK(exceptionCode)) { in binderCallLogFn()
90 output.append(fmt::format("{}({}, \"{}\")", exceptionToString(exceptionCode), in binderCallLogFn()
91 (errCode != 0) ? errCode : exceptionCode, log.exception_message)); in binderCallLogFn()
/aosp12/system/libhidl/base/include/hidl/
H A DStatus.h86 static Status fromExceptionCode(int32_t exceptionCode);
87 static Status fromExceptionCode(int32_t exceptionCode,
107 int32_t exceptionCode() const { return mException; } in exceptionCode() function
119 Status(int32_t exceptionCode, int32_t errorCode);
120 Status(int32_t exceptionCode, int32_t errorCode, const char *message);
/aosp12/packages/services/Car/cpp/watchdog/server/tests/
H A DWatchdogBinderMediatorTest.cpp327 ASSERT_EQ(status.exceptionCode(), Status::EX_UNSUPPORTED_OPERATION); in TEST_F()
332 ASSERT_EQ(status.exceptionCode(), Status::EX_UNSUPPORTED_OPERATION); in TEST_F()
337 ASSERT_EQ(status.exceptionCode(), Status::EX_UNSUPPORTED_OPERATION); in TEST_F()
342 ASSERT_EQ(status.exceptionCode(), Status::EX_UNSUPPORTED_OPERATION); in TEST_F()
347 ASSERT_EQ(status.exceptionCode(), Status::EX_UNSUPPORTED_OPERATION); in TEST_F()
352 ASSERT_EQ(status.exceptionCode(), Status::EX_UNSUPPORTED_OPERATION); in TEST_F()
357 ASSERT_EQ(status.exceptionCode(), Status::EX_UNSUPPORTED_OPERATION); in TEST_F()
/aosp12/frameworks/base/native/android/
H A 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()
/aosp12/frameworks/native/libs/binder/tests/unit_fuzzers/
H A DStatusFuzz.cpp32 int32_t exceptionCode = fdp.ConsumeIntegral<int32_t>(); in LLVMFuzzerTestOneInput() local
40 binder::Status status = binder::Status::fromExceptionCode(exceptionCode, message); in LLVMFuzzerTestOneInput()
/aosp12/frameworks/av/media/libaudioclient/tests/
H A Daudio_aidl_status_tests.cpp65 for (int exceptionCode : { in TEST()
82 ASSERT_NE(OK, statusTFromBinderStatus(Status::fromExceptionCode(exceptionCode))); in TEST()
/aosp12/system/security/identity/
H A DUtil.cpp41 halStatus.exceptionCode(), Status::exceptionToString(halStatus.exceptionCode()).c_str(), in halStatusToError()
/aosp12/frameworks/native/cmds/servicemanager/
H A 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()
/aosp12/frameworks/native/services/powermanager/benchmarks/
H A 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()
/aosp12/system/libhidl/transport/
H A DHidlBinderSupport.cpp198 if (s.exceptionCode() == Status::EX_TRANSACTION_FAILED) { in writeToParcel()
202 status_t status = parcel->writeInt32(s.exceptionCode()); in writeToParcel()
204 if (s.exceptionCode() == Status::EX_NONE) { in writeToParcel()
/aosp12/frameworks/av/media/libaudioclient/include/media/
H A DAidlConversionUtil.h236 static inline status_t statusTFromExceptionCode(int32_t exceptionCode) {
238 switch (exceptionCode) {
277 ?: statusTFromExceptionCode(status.exceptionCode()); // a service-side error with a
/aosp12/frameworks/hardware/interfaces/automotive/powerpolicy/aidl/vts/
H A DVtsAidlPowerPolicyTargetTest.cpp93 ASSERT_TRUE(status.isOk() || status.exceptionCode() == Status::EX_ILLEGAL_STATE); in TEST_P()
142 ASSERT_EQ(status.exceptionCode(), Status::EX_ILLEGAL_ARGUMENT); in TEST_P()
/aosp12/frameworks/native/cmds/installd/binder/android/os/
H A DCreateAppDataResult.aidl22 int exceptionCode;
/aosp12/frameworks/base/media/native/midi/
H A Damidi.cpp134 ALOGE("%s server exception code: %d", __func__, txResult.exceptionCode()); in AMIDI_getDeviceInfo()
256 ALOGE("%s server exception code: %d", __func__, txResult.exceptionCode()); in AMIDI_openPort()
285 ALOGE("%s server exception code: %d", __func__, txResult.exceptionCode()); in AMIDI_closePort()

123