Lines Matching refs:Status
37 using ::android::binder::Status;
232 Status ServiceManager::getService(const std::string& name, sp<IBinder>* outBinder) { in getService()
235 return Status::ok(); in getService()
238 Status ServiceManager::checkService(const std::string& name, sp<IBinder>* outBinder) { in checkService()
241 return Status::ok(); in checkService()
295 Status ServiceManager::addService(const std::string& name, const sp<IBinder>& binder, bool allowIso… in addService()
299 return Status::fromExceptionCode(Status::EX_SECURITY, "App UIDs cannot add services"); in addService()
303 return Status::fromExceptionCode(Status::EX_SECURITY, "SELinux denial"); in addService()
307 return Status::fromExceptionCode(Status::EX_ILLEGAL_ARGUMENT, "Null binder"); in addService()
312 return Status::fromExceptionCode(Status::EX_ILLEGAL_ARGUMENT, "Invalid service name"); in addService()
318 return Status::fromExceptionCode(Status::EX_ILLEGAL_ARGUMENT, "VINTF declaration error"); in addService()
326 return Status::fromExceptionCode(Status::EX_ILLEGAL_STATE, "linkToDeath failure"); in addService()
346 return Status::ok(); in addService()
349 Status ServiceManager::listServices(int32_t dumpPriority, std::vector<std::string>* outList) { in listServices()
351 return Status::fromExceptionCode(Status::EX_SECURITY); in listServices()
372 return Status::ok(); in listServices()
375 Status ServiceManager::registerForNotifications( in registerForNotifications()
380 return Status::fromExceptionCode(Status::EX_SECURITY); in registerForNotifications()
385 return Status::fromExceptionCode(Status::EX_ILLEGAL_ARGUMENT); in registerForNotifications()
389 return Status::fromExceptionCode(Status::EX_NULL_POINTER); in registerForNotifications()
396 return Status::fromExceptionCode(Status::EX_ILLEGAL_STATE); in registerForNotifications()
409 return Status::ok(); in registerForNotifications()
411 Status ServiceManager::unregisterForNotifications( in unregisterForNotifications()
416 return Status::fromExceptionCode(Status::EX_SECURITY); in unregisterForNotifications()
428 return Status::fromExceptionCode(Status::EX_ILLEGAL_STATE); in unregisterForNotifications()
431 return Status::ok(); in unregisterForNotifications()
434 Status ServiceManager::isDeclared(const std::string& name, bool* outReturn) { in isDeclared()
438 return Status::fromExceptionCode(Status::EX_SECURITY); in isDeclared()
446 return Status::ok(); in isDeclared()
449 binder::Status ServiceManager::getDeclaredInstances(const std::string& interface, std::vector<std::… in getDeclaredInstances()
466 return Status::fromExceptionCode(Status::EX_SECURITY); in getDeclaredInstances()
469 return Status::ok(); in getDeclaredInstances()
472 Status ServiceManager::updatableViaApex(const std::string& name, in updatableViaApex()
477 return Status::fromExceptionCode(Status::EX_SECURITY); in updatableViaApex()
485 return Status::ok(); in updatableViaApex()
488 Status ServiceManager::getConnectionInfo(const std::string& name, in getConnectionInfo()
493 return Status::fromExceptionCode(Status::EX_SECURITY); in getConnectionInfo()
501 return Status::ok(); in getConnectionInfo()
557 Status ServiceManager::registerClientCallback(const std::string& name, const sp<IBinder>& service, in registerClientCallback()
560 return Status::fromExceptionCode(Status::EX_NULL_POINTER); in registerClientCallback()
565 return Status::fromExceptionCode(Status::EX_SECURITY); in registerClientCallback()
571 return Status::fromExceptionCode(Status::EX_ILLEGAL_ARGUMENT); in registerClientCallback()
576 return Status::fromExceptionCode(Status::EX_UNSUPPORTED_OPERATION); in registerClientCallback()
582 return Status::fromExceptionCode(Status::EX_ILLEGAL_ARGUMENT); in registerClientCallback()
588 return Status::fromExceptionCode(Status::EX_ILLEGAL_STATE); in registerClientCallback()
593 return Status::ok(); in registerClientCallback()
693 Status ServiceManager::tryUnregisterService(const std::string& name, const sp<IBinder>& binder) { in tryUnregisterService()
695 return Status::fromExceptionCode(Status::EX_NULL_POINTER); in tryUnregisterService()
700 return Status::fromExceptionCode(Status::EX_SECURITY); in tryUnregisterService()
707 return Status::fromExceptionCode(Status::EX_ILLEGAL_STATE); in tryUnregisterService()
712 return Status::fromExceptionCode(Status::EX_UNSUPPORTED_OPERATION); in tryUnregisterService()
720 return Status::fromExceptionCode(Status::EX_ILLEGAL_STATE); in tryUnregisterService()
725 return Status::fromExceptionCode(Status::EX_ILLEGAL_STATE); in tryUnregisterService()
740 return Status::fromExceptionCode(Status::EX_ILLEGAL_STATE); in tryUnregisterService()
745 return Status::ok(); in tryUnregisterService()
748 Status ServiceManager::getServiceDebugInfo(std::vector<ServiceDebugInfo>* outReturn) { in getServiceDebugInfo()
750 return Status::fromExceptionCode(Status::EX_SECURITY); in getServiceDebugInfo()
762 return Status::ok(); in getServiceDebugInfo()