Home
last modified time | relevance | path

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

123

/frameworks/native/cmds/servicemanager/
DServiceManager.cpp419 return Status::fromExceptionCode(Status::EX_SECURITY, "App UIDs cannot add services."); in addService()
423 return Status::fromExceptionCode(Status::EX_SECURITY, "SELinux denied."); in addService()
427 return Status::fromExceptionCode(Status::EX_ILLEGAL_ARGUMENT, "Null binder."); in addService()
432 return Status::fromExceptionCode(Status::EX_ILLEGAL_ARGUMENT, "Invalid service name."); in addService()
438 return Status::fromExceptionCode(Status::EX_ILLEGAL_ARGUMENT, "VINTF declaration error."); in addService()
451 return Status::fromExceptionCode(Status::EX_ILLEGAL_STATE, "Couldn't linkToDeath."); in addService()
509 return Status::fromExceptionCode(Status::EX_SECURITY, "SELinux denied."); in listServices()
538 return Status::fromExceptionCode(Status::EX_SECURITY, "SELinux"); in registerForNotifications()
548 return Status::fromExceptionCode(Status::EX_SECURITY, "isolated app"); in registerForNotifications()
553 return Status::fromExceptionCode(Status::EX_ILLEGAL_ARGUMENT, "Invalid service name."); in registerForNotifications()
[all …]
/frameworks/native/services/vibratorservice/test/
DVibratorHalWrapperAidlTest.cpp156 Status::fromExceptionCode(Status::Exception::EX_UNSUPPORTED_OPERATION))); in TEST_F()
159 .WillRepeatedly(Return(Status::fromExceptionCode(Status::Exception::EX_SECURITY))); in TEST_F()
195 .WillRepeatedly(Return(Status::fromExceptionCode(Status::Exception::EX_SECURITY))); in TEST_F()
216 Return(Status::fromExceptionCode(Status::Exception::EX_UNSUPPORTED_OPERATION))) in TEST_F()
217 .WillRepeatedly(Return(Status::fromExceptionCode(Status::Exception::EX_SECURITY))); in TEST_F()
233 .WillRepeatedly(Return(Status::fromExceptionCode(Status::Exception::EX_SECURITY))); in TEST_F()
248 Status::fromExceptionCode(Status::Exception::EX_UNSUPPORTED_OPERATION))) in TEST_F()
249 .WillRepeatedly(Return(Status::fromExceptionCode(Status::Exception::EX_SECURITY))); in TEST_F()
270 .WillRepeatedly(Return(Status::fromExceptionCode(Status::Exception::EX_SECURITY))); in TEST_F()
288 Status::fromExceptionCode(Status::Exception::EX_UNSUPPORTED_OPERATION))); in TEST_F()
[all …]
DVibratorManagerHalWrapperAidlTest.cpp155 Return(Status::fromExceptionCode(Status::Exception::EX_UNSUPPORTED_OPERATION))) in TEST_F()
156 .WillOnce(Return(Status::fromExceptionCode(Status::Exception::EX_SECURITY))) in TEST_F()
191 Return(Status::fromExceptionCode(Status::Exception::EX_UNSUPPORTED_OPERATION))) in TEST_F()
192 .WillOnce(Return(Status::fromExceptionCode(Status::Exception::EX_SECURITY))) in TEST_F()
257 Return(Status::fromExceptionCode( in TEST_F()
263 .WillOnce(Return(Status::fromExceptionCode(Status::Exception::EX_TRANSACTION_FAILED))) in TEST_F()
264 .WillOnce(Return(Status::fromExceptionCode(Status::Exception::EX_TRANSACTION_FAILED))) in TEST_F()
293 Return(Status::fromExceptionCode(Status::Exception::EX_UNSUPPORTED_OPERATION))) in TEST_F()
294 .WillOnce(Return(Status::fromExceptionCode(Status::Exception::EX_SECURITY))) in TEST_F()
313 .WillOnce(Return(Status::fromExceptionCode(Status::Exception::EX_SECURITY))) in TEST_F()
[all …]
DVibratorHalWrapperHidlV1_3Test.cpp98 return hardware::Return<V1_0::Status>(hardware::Status::fromExceptionCode(-1)); in TEST_F()
172 return hardware::Return<bool>(hardware::Status::fromExceptionCode(-1)); in TEST_F()
181 return hardware::Return<bool>(hardware::Status::fromExceptionCode(-1)); in TEST_F()
216 return hardware::Return<bool>(hardware::Status::fromExceptionCode(-1)); in TEST_F()
225 return hardware::Return<bool>(hardware::Status::fromExceptionCode(-1)); in TEST_F()
357 return hardware::Return<void>(hardware::Status::fromExceptionCode(-1)); in TEST_F()
DVibratorHalWrapperHidlV1_0Test.cpp83 return hardware::Return<void>(hardware::Status::fromExceptionCode(-1)); in TEST_F()
113 return hardware::Return<V1_0::Status>(hardware::Status::fromExceptionCode(-1)); in TEST_F()
140 return hardware::Return<V1_0::Status>(hardware::Status::fromExceptionCode(-1)); in TEST_F()
169 return hardware::Return<V1_0::Status>(hardware::Status::fromExceptionCode(-1)); in TEST_F()
197 return hardware::Return<bool>(hardware::Status::fromExceptionCode(-1)); in TEST_F()
284 return hardware::Return<void>(hardware::Status::fromExceptionCode(-1)); in TEST_F()
/frameworks/native/libs/gui/include/gui/
DAidlStatusUtil.h100 return Status::fromExceptionCode(Status::EX_SECURITY, emptyIfNull);
102 return Status::fromExceptionCode(Status::EX_ILLEGAL_ARGUMENT, emptyIfNull);
104 return Status::fromExceptionCode(Status::EX_ILLEGAL_STATE, emptyIfNull);
DSchedulingPolicy.h29 return binder::Status::fromExceptionCode(EX_ILLEGAL_STATE); in getSchedulingPolicy()
34 return binder::Status::fromExceptionCode(EX_ILLEGAL_STATE); in getSchedulingPolicy()
/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/include/binder/
DStatus.h89 static Status fromExceptionCode(int32_t exceptionCode);
90 static Status fromExceptionCode(int32_t exceptionCode,
92 static Status fromExceptionCode(int32_t exceptionCode,
/frameworks/native/libs/binder/include/binder/
DStatus.h89 static Status fromExceptionCode(int32_t exceptionCode);
90 static Status fromExceptionCode(int32_t exceptionCode,
92 static Status fromExceptionCode(int32_t exceptionCode,
/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.cpp84 return Status::fromExceptionCode( in checkIncidentPermissions()
91 return Status::fromExceptionCode( in checkIncidentPermissions()
102 return Status::fromExceptionCode( in checkIncidentPermissions()
112 return Status::fromExceptionCode( in checkIncidentPermissions()
321 return Status::fromExceptionCode(Status::EX_SECURITY, "Only ROOT or SHELL allowed"); in reportIncidentToDumpstate()
360 return Status::fromExceptionCode(Status::EX_NULL_POINTER); in registerSection()
366 return Status::fromExceptionCode(Status::EX_SECURITY); in registerSection()
384 return Status::fromExceptionCode(Status::EX_SECURITY); in unregisterSection()
391 return Status::fromExceptionCode(Status::EX_ILLEGAL_STATE); in unregisterSection()
396 return Status::fromExceptionCode(Status::EX_SECURITY, in systemRunning()
/frameworks/native/libs/binder/
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/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/services/powermanager/tests/
DPowerHalWrapperAidlTest.cpp124 .WillOnce(Return(testing::ByMove(ndk::ScopedAStatus::fromExceptionCode(-1)))); in TEST_F()
127 .WillOnce(Return(testing::ByMove(ndk::ScopedAStatus::fromExceptionCode(-1)))); in TEST_F()
199 .WillOnce(Return(testing::ByMove(ndk::ScopedAStatus::fromExceptionCode(-1)))); in TEST_F()
202 .WillOnce(Return(testing::ByMove(ndk::ScopedAStatus::fromExceptionCode(-1)))); in TEST_F()
291 ndk::ScopedAStatus::fromExceptionCode(Status::EX_ILLEGAL_ARGUMENT)))); in TEST_F()
333 ndk::ScopedAStatus::fromExceptionCode(EX_UNSUPPORTED_OPERATION)))); in TEST_F()
/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/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/av/services/audiopolicy/permission/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/libs/binder/tests/unit_fuzzers/
DStatusFuzz.cpp40 binder::Status status = binder::Status::fromExceptionCode(exceptionCode, message); in LLVMFuzzerTestOneInput()
/frameworks/native/cmds/lshal/
DTimeout.h56 return Status::fromExceptionCode(Status::Exception::EX_ILLEGAL_STATE, "Illegal future_status"); in timeoutIPC()
/frameworks/av/media/libaudiohal/tests/
DCoreAudioHalAidl_test.cpp255 return ndk::ScopedAStatus::fromExceptionCode(EX_ILLEGAL_ARGUMENT); in connectExternalDevice()
279 return ndk::ScopedAStatus::fromExceptionCode(EX_ILLEGAL_ARGUMENT); in disconnectExternalDevice()
305 return ndk::ScopedAStatus::fromExceptionCode(EX_ILLEGAL_ARGUMENT); in getAudioPort()
359 return ndk::ScopedAStatus::fromExceptionCode(EX_ILLEGAL_ARGUMENT); in setAudioPatch()
377 return ndk::ScopedAStatus::fromExceptionCode(EX_ILLEGAL_ARGUMENT); in setAudioPortConfig()
387 return ndk::ScopedAStatus::fromExceptionCode(EX_ILLEGAL_ARGUMENT); in setAudioPortConfig()
398 return ndk::ScopedAStatus::fromExceptionCode(EX_ILLEGAL_ARGUMENT); in resetAudioPatch()
406 return ndk::ScopedAStatus::fromExceptionCode(EX_ILLEGAL_ARGUMENT); in resetAudioPortConfig()
533 return ndk::ScopedAStatus::fromExceptionCode(EX_ILLEGAL_ARGUMENT); in parseVendorParameterIds()
541 return ndk::ScopedAStatus::fromExceptionCode(EX_ILLEGAL_ARGUMENT); in parseVendorParameterIds()
[all …]

123