Home
last modified time | relevance | path

Searched refs:fromExceptionCode (Results 1 – 25 of 63) sorted by relevance

123

/frameworks/native/services/vibratorservice/test/
DVibratorHalWrapperAidlTest.cpp84 .WillOnce(Return(ndk::ScopedAStatus::fromExceptionCode(EX_UNSUPPORTED_OPERATION))); in TEST_F()
87 .WillOnce(Return(ndk::ScopedAStatus::fromExceptionCode(EX_SECURITY))); in TEST_F()
123 .WillOnce(Return(ndk::ScopedAStatus::fromExceptionCode(EX_SECURITY))); in TEST_F()
143 .WillOnce(Return(ndk::ScopedAStatus::fromExceptionCode(EX_UNSUPPORTED_OPERATION))) in TEST_F()
144 .WillOnce(Return(ndk::ScopedAStatus::fromExceptionCode(EX_SECURITY))); in TEST_F()
162 .WillOnce(Return(ndk::ScopedAStatus::fromExceptionCode(EX_SECURITY))); in TEST_F()
178 .WillOnce(Return(ndk::ScopedAStatus::fromExceptionCode(EX_UNSUPPORTED_OPERATION))) in TEST_F()
179 .WillOnce(Return(ndk::ScopedAStatus::fromExceptionCode(EX_SECURITY))); in TEST_F()
201 .WillOnce(Return(ndk::ScopedAStatus::fromExceptionCode(EX_SECURITY))); in TEST_F()
220 .WillOnce(Return(ndk::ScopedAStatus::fromExceptionCode(EX_UNSUPPORTED_OPERATION))); in TEST_F()
[all …]
DVibratorManagerHalWrapperAidlTest.cpp114 .WillOnce(Return(ndk::ScopedAStatus::fromExceptionCode(EX_UNSUPPORTED_OPERATION))) in TEST_F()
115 .WillOnce(Return(ndk::ScopedAStatus::fromExceptionCode(EX_SECURITY))) in TEST_F()
151 .WillOnce(Return(ndk::ScopedAStatus::fromExceptionCode(EX_UNSUPPORTED_OPERATION))) in TEST_F()
152 .WillOnce(Return(ndk::ScopedAStatus::fromExceptionCode(EX_SECURITY))) in TEST_F()
217 Return(ndk::ScopedAStatus::fromExceptionCode(EX_TRANSACTION_FAILED)))) in TEST_F()
224 .WillOnce(Return(ndk::ScopedAStatus::fromExceptionCode(EX_TRANSACTION_FAILED))) in TEST_F()
225 .WillOnce(Return(ndk::ScopedAStatus::fromExceptionCode(EX_TRANSACTION_FAILED))) in TEST_F()
255 .WillOnce(Return(ndk::ScopedAStatus::fromExceptionCode(EX_UNSUPPORTED_OPERATION))) in TEST_F()
256 .WillOnce(Return(ndk::ScopedAStatus::fromExceptionCode(EX_SECURITY))) in TEST_F()
275 .WillOnce(Return(ndk::ScopedAStatus::fromExceptionCode(EX_SECURITY))) in TEST_F()
[all …]
DVibratorControllerTest.cpp41 return ndk::ScopedAStatus::fromExceptionCode(EX_UNSUPPORTED_OPERATION); in __anonc94ddda40202()
44 return ndk::ScopedAStatus::fromExceptionCode(EX_TRANSACTION_FAILED); in __anonc94ddda40302()
50 return ndk::ScopedAStatus::fromExceptionCode(EX_ILLEGAL_ARGUMENT); in __anonc94ddda40502()
/frameworks/native/cmds/servicemanager/
DServiceManager.cpp519 return Status::fromExceptionCode(Status::EX_SECURITY, "App UIDs cannot add services."); in addService()
528 return Status::fromExceptionCode(Status::EX_ILLEGAL_ARGUMENT, "Null binder."); in addService()
533 return Status::fromExceptionCode(Status::EX_ILLEGAL_ARGUMENT, "Invalid service name."); in addService()
539 return Status::fromExceptionCode(Status::EX_ILLEGAL_ARGUMENT, "VINTF declaration error."); in addService()
552 return Status::fromExceptionCode(Status::EX_ILLEGAL_STATE, "Couldn't linkToDeath."); in addService()
612 return Status::fromExceptionCode(Status::EX_SECURITY, "SELinux denied."); in listServices()
657 return Status::fromExceptionCode(Status::EX_SECURITY, "isolated app"); in registerForNotifications()
662 return Status::fromExceptionCode(Status::EX_ILLEGAL_ARGUMENT, "Invalid service name."); in registerForNotifications()
666 return Status::fromExceptionCode(Status::EX_NULL_POINTER, "Null callback."); in registerForNotifications()
673 return Status::fromExceptionCode(Status::EX_ILLEGAL_STATE, "Couldn't link to death."); in registerForNotifications()
[all …]
/frameworks/native/libs/gui/include/gui/
DSchedulingPolicy.h29 return binder::Status::fromExceptionCode(EX_ILLEGAL_STATE); in getSchedulingPolicy()
34 return binder::Status::fromExceptionCode(EX_ILLEGAL_STATE); in getSchedulingPolicy()
DAidlUtil.h102 return Status::fromExceptionCode(Status::EX_SECURITY, emptyIfNull);
104 return Status::fromExceptionCode(Status::EX_ILLEGAL_ARGUMENT, emptyIfNull);
106 return Status::fromExceptionCode(Status::EX_ILLEGAL_STATE, emptyIfNull);
/frameworks/av/media/libaudioclient/aidl/fuzzer/libaudiomockhal/include/core-mock/
DStreamOutMock.h43 return ndk::ScopedAStatus::fromExceptionCode(EX_UNSUPPORTED_OPERATION); in getRecommendedLatencyModes()
46 return ndk::ScopedAStatus::fromExceptionCode(EX_UNSUPPORTED_OPERATION); in setLatencyMode()
49 return ndk::ScopedAStatus::fromExceptionCode(EX_UNSUPPORTED_OPERATION); in selectPresentation()
DModuleMock.h98 return ndk::ScopedAStatus::fromExceptionCode(EX_UNSUPPORTED_OPERATION); in generateHwAvSyncId()
102 return ndk::ScopedAStatus::fromExceptionCode(EX_UNSUPPORTED_OPERATION); in getVendorParameters()
105 return ndk::ScopedAStatus::fromExceptionCode(EX_UNSUPPORTED_OPERATION); in setVendorParameters()
114 return ndk::ScopedAStatus::fromExceptionCode(EX_UNSUPPORTED_OPERATION); in getAAudioMixerBurstCount()
117 return ndk::ScopedAStatus::fromExceptionCode(EX_UNSUPPORTED_OPERATION); in getAAudioHardwareBurstMinUsec()
DStreamCommonMock.h30 return ndk::ScopedAStatus::fromExceptionCode(EX_UNSUPPORTED_OPERATION); in getVendorParameters()
33 return ndk::ScopedAStatus::fromExceptionCode(EX_UNSUPPORTED_OPERATION); in setVendorParameters()
/frameworks/native/libs/binder/include/binder/
DStatus.h92 static Status fromExceptionCode(int32_t exceptionCode);
93 static Status fromExceptionCode(int32_t exceptionCode,
95 static Status fromExceptionCode(int32_t exceptionCode,
/frameworks/native/include/binder/
DStatus.h92 static Status fromExceptionCode(int32_t exceptionCode);
93 static Status fromExceptionCode(int32_t exceptionCode,
95 static Status fromExceptionCode(int32_t exceptionCode,
/frameworks/native/libs/binder/
DBackendUnifiedServiceManager.cpp356 return Status::fromExceptionCode(Status::EX_UNSUPPORTED_OPERATION, in addService()
376 return Status::fromExceptionCode(Status::EX_UNSUPPORTED_OPERATION, in registerForNotifications()
384 return Status::fromExceptionCode(Status::EX_UNSUPPORTED_OPERATION, in unregisterForNotifications()
431 return Status::fromExceptionCode(Status::EX_UNSUPPORTED_OPERATION, in updatableViaApex()
439 return Status::fromExceptionCode(Status::EX_UNSUPPORTED_OPERATION, in getUpdatableNames()
447 return Status::fromExceptionCode(Status::EX_UNSUPPORTED_OPERATION, in getConnectionInfo()
456 return Status::fromExceptionCode(Status::EX_UNSUPPORTED_OPERATION, in registerClientCallback()
464 return Status::fromExceptionCode(Status::EX_UNSUPPORTED_OPERATION, in tryUnregisterService()
472 return Status::fromExceptionCode(Status::EX_UNSUPPORTED_OPERATION, in getServiceDebugInfo()
DStatus.cpp26 Status Status::fromExceptionCode(int32_t exceptionCode) { in fromExceptionCode() function in android::binder::Status
33 Status Status::fromExceptionCode(int32_t exceptionCode, in fromExceptionCode() function in android::binder::Status
41 Status Status::fromExceptionCode(int32_t exceptionCode, in fromExceptionCode() function in android::binder::Status
43 return fromExceptionCode(exceptionCode, String8(message)); in fromExceptionCode()
/frameworks/base/libs/services/src/os/
DDropBoxManager.cpp193 return Status::fromExceptionCode(Status::EX_NULL_POINTER, "can't find dropbox service"); in addData()
211 return Status::fromExceptionCode(Status::EX_ILLEGAL_STATE, message.c_str()); in addFile()
222 return Status::fromExceptionCode(Status::EX_ILLEGAL_STATE, message.c_str()); in addFile()
227 return Status::fromExceptionCode(Status::EX_NULL_POINTER, "can't find dropbox service"); in addFile()
/frameworks/base/cmds/incidentd/src/
DIncidentService.cpp88 return Status::fromExceptionCode( in checkIncidentPermissions()
95 return Status::fromExceptionCode( in checkIncidentPermissions()
106 return Status::fromExceptionCode( in checkIncidentPermissions()
116 return Status::fromExceptionCode( in checkIncidentPermissions()
325 return Status::fromExceptionCode(Status::EX_SECURITY, "Only ROOT or SHELL allowed"); in reportIncidentToDumpstate()
364 return Status::fromExceptionCode(Status::EX_NULL_POINTER); in registerSection()
370 return Status::fromExceptionCode(Status::EX_SECURITY); in registerSection()
388 return Status::fromExceptionCode(Status::EX_SECURITY); in unregisterSection()
395 return Status::fromExceptionCode(Status::EX_ILLEGAL_STATE); in unregisterSection()
400 return Status::fromExceptionCode(Status::EX_SECURITY, in systemRunning()
/frameworks/native/services/memtrackproxy/
DMemtrackProxy.cpp112 return ndk::ScopedAStatus::fromExceptionCode(EX_ILLEGAL_ARGUMENT); in getMemory()
125 return ndk::ScopedAStatus::fromExceptionCode(EX_UNSUPPORTED_OPERATION); in getMemory()
149 ndk::ScopedAStatus::fromExceptionCode(EX_UNSUPPORTED_OPERATION); in getMemory()
/frameworks/native/libs/binder/tests/
DbinderStatusUnitTest.cpp25 Status status = Status::fromExceptionCode(Status::EX_NULL_POINTER); in TEST()
/frameworks/native/libs/binder/ndk/
Dstatus.cpp30 return new AStatus(Status::fromExceptionCode(PruneException(exception))); in AStatus_fromExceptionCode()
34 return new AStatus(Status::fromExceptionCode(PruneException(exception), message)); in AStatus_fromExceptionCodeWithMessage()
/frameworks/base/native/android/tests/thermal/
DNativeThermalUnitTest.cpp187 Status::fromExceptionCode(binder::Status::Exception::EX_ILLEGAL_ARGUMENT))); in TEST_F()
197 .WillOnce(Return(Status::fromExceptionCode( in TEST_F()
224 Status::fromExceptionCode(binder::Status::Exception::EX_TRANSACTION_FAILED))); in TEST_F()
289 Status::fromExceptionCode(binder::Status::Exception::EX_TRANSACTION_FAILED))); in TEST_F()
356 Status::fromExceptionCode(binder::Status::Exception::EX_TRANSACTION_FAILED))); in TEST_F()
411 Status::fromExceptionCode(binder::Status::Exception::EX_TRANSACTION_FAILED))); in TEST_F()
/frameworks/native/services/powermanager/tests/
DPowerHalWrapperAidlTest.cpp128 .WillOnce(Return(testing::ByMove(ndk::ScopedAStatus::fromExceptionCode(-1)))); in TEST_F()
131 .WillOnce(Return(testing::ByMove(ndk::ScopedAStatus::fromExceptionCode(-1)))); in TEST_F()
203 .WillOnce(Return(testing::ByMove(ndk::ScopedAStatus::fromExceptionCode(-1)))); in TEST_F()
206 .WillOnce(Return(testing::ByMove(ndk::ScopedAStatus::fromExceptionCode(-1)))); in TEST_F()
295 ndk::ScopedAStatus::fromExceptionCode(Status::EX_ILLEGAL_ARGUMENT)))); in TEST_F()
337 ndk::ScopedAStatus::fromExceptionCode(EX_UNSUPPORTED_OPERATION)))); in TEST_F()
/frameworks/av/media/liberror/include/error/
DBinderResult.h35 return base::unexpected{binder::Status::fromExceptionCode(exceptionCode, s)}; in unexpectedExceptionCode()
DBinderStatusMatcher.h35 return BinderStatusMatcher(binder::Status::fromExceptionCode(ex)); in hasException()
/frameworks/native/libs/binder/tests/unit_fuzzers/
DStatusFuzz.cpp40 binder::Status status = binder::Status::fromExceptionCode(exceptionCode, message); in LLVMFuzzerTestOneInput()
/frameworks/av/media/libaudiopermission/tests/
DValidatedAttributionSourceStateTest.cpp106 .WillOnce(Return(unexpected{Status::fromExceptionCode(EX_ILLEGAL_STATE)})); in TEST_F()
119 .WillOnce(Return(unexpected{Status::fromExceptionCode(EX_ILLEGAL_ARGUMENT)})); in TEST_F()
/frameworks/native/cmds/lshal/
DTimeout.h56 return Status::fromExceptionCode(Status::Exception::EX_ILLEGAL_STATE, "Illegal future_status"); in timeoutIPC()

123