Lines Matching refs:Status

43 using ::android::binder::Status;
52 Status checkSystemUser() { in checkSystemUser()
54 return Status::fromExceptionCode(Status::EX_SECURITY, in checkSystemUser()
57 return Status::ok(); in checkSystemUser()
60 Status fromExceptionCode(int32_t exceptionCode, std::string message) { in fromExceptionCode()
62 return Status::fromExceptionCode(exceptionCode, message.c_str()); in fromExceptionCode()
83 Status WatchdogInternalHandler::registerCarWatchdogService( in registerCarWatchdogService()
85 Status status = checkSystemUser(); in registerCarWatchdogService()
90 return fromExceptionCode(Status::EX_ILLEGAL_ARGUMENT, kNullCarWatchdogServiceError); in registerCarWatchdogService()
101 Status WatchdogInternalHandler::unregisterCarWatchdogService( in unregisterCarWatchdogService()
103 Status status = checkSystemUser(); in unregisterCarWatchdogService()
108 return fromExceptionCode(Status::EX_ILLEGAL_ARGUMENT, kNullCarWatchdogServiceError); in unregisterCarWatchdogService()
113 Status WatchdogInternalHandler::registerMonitor(const sp<aawi::ICarWatchdogMonitor>& monitor) { in registerMonitor()
114 Status status = checkSystemUser(); in registerMonitor()
119 return fromExceptionCode(Status::EX_ILLEGAL_ARGUMENT, kNullCarWatchdogMonitorError); in registerMonitor()
124 Status WatchdogInternalHandler::unregisterMonitor(const sp<aawi::ICarWatchdogMonitor>& monitor) { in unregisterMonitor()
125 Status status = checkSystemUser(); in unregisterMonitor()
130 return fromExceptionCode(Status::EX_ILLEGAL_ARGUMENT, kNullCarWatchdogMonitorError); in unregisterMonitor()
135 Status WatchdogInternalHandler::tellCarWatchdogServiceAlive( in tellCarWatchdogServiceAlive()
138 Status status = checkSystemUser(); in tellCarWatchdogServiceAlive()
143 return fromExceptionCode(Status::EX_ILLEGAL_ARGUMENT, kNullCarWatchdogServiceError); in tellCarWatchdogServiceAlive()
148 Status WatchdogInternalHandler::tellDumpFinished( in tellDumpFinished()
150 Status status = checkSystemUser(); in tellDumpFinished()
155 return fromExceptionCode(Status::EX_ILLEGAL_ARGUMENT, kNullCarWatchdogMonitorError); in tellDumpFinished()
160 Status WatchdogInternalHandler::notifySystemStateChange(aawi::StateType type, int32_t arg1, in notifySystemStateChange()
162 Status status = checkSystemUser(); in notifySystemStateChange()
170 return fromExceptionCode(Status::EX_ILLEGAL_ARGUMENT, in notifySystemStateChange()
180 return Status::ok(); in notifySystemStateChange()
186 return fromExceptionCode(Status::EX_ILLEGAL_ARGUMENT, in notifySystemStateChange()
198 return Status::ok(); in notifySystemStateChange()
201 return fromExceptionCode(Status::EX_ILLEGAL_ARGUMENT, in notifySystemStateChange()
205 Status WatchdogInternalHandler::handlePowerCycleChange(PowerCycle powerCycle) { in handlePowerCycleChange()
222 return Status::fromExceptionCode(Status::EX_ILLEGAL_ARGUMENT, in handlePowerCycleChange()
225 return Status::ok(); in handlePowerCycleChange()
228 Status WatchdogInternalHandler::handleUserStateChange(userid_t userId, aawi::UserState userState) { in handleUserStateChange()
245 return Status::fromExceptionCode(Status::EX_ILLEGAL_ARGUMENT, "Unsupported user state"); in handleUserStateChange()
248 return Status::ok(); in handleUserStateChange()
251 Status WatchdogInternalHandler::updateResourceOveruseConfigurations( in updateResourceOveruseConfigurations()
253 Status status = checkSystemUser(); in updateResourceOveruseConfigurations()
263 return Status::ok(); in updateResourceOveruseConfigurations()
266 Status WatchdogInternalHandler::getResourceOveruseConfigurations( in getResourceOveruseConfigurations()
268 Status status = checkSystemUser(); in getResourceOveruseConfigurations()
278 return Status::ok(); in getResourceOveruseConfigurations()
281 Status WatchdogInternalHandler::controlProcessHealthCheck(bool disable) { in controlProcessHealthCheck()
282 Status status = checkSystemUser(); in controlProcessHealthCheck()
287 return Status::ok(); in controlProcessHealthCheck()