Lines Matching refs:Status
63 using ::android::binder::Status;
96 static Status status_from_storage_err(storage_err err) { in status_from_storage_err()
99 return Status::ok(); in status_from_storage_err()
101 return Status::fromExceptionCode(Status::EX_ILLEGAL_STATE); in status_from_storage_err()
103 return Status::fromExceptionCode(Status::EX_ILLEGAL_ARGUMENT); in status_from_storage_err()
105 return Status::fromExceptionCode(Status::EX_UNSUPPORTED_OPERATION); in status_from_storage_err()
107 return Status::fromExceptionCode(Status::EX_ILLEGAL_STATE); in status_from_storage_err()
109 return Status::fromServiceSpecificError(ISecureStorage::ERR_NOT_FOUND); in status_from_storage_err()
111 return Status::fromServiceSpecificError( in status_from_storage_err()
114 return Status::fromServiceSpecificError( in status_from_storage_err()
117 return Status::fromExceptionCode(Status::EX_ILLEGAL_STATE); in status_from_storage_err()
119 return Status::fromExceptionCode(Status::EX_ILLEGAL_STATE); in status_from_storage_err()
122 return Status::fromServiceSpecificError( in status_from_storage_err()
125 return Status::fromExceptionCode(Status::EX_UNSUPPORTED_OPERATION, in status_from_storage_err()
141 static Status get_fs(const FileProperties& properties, in get_fs()
154 return Status::fromExceptionCode( in get_fs()
155 Status::EX_UNSUPPORTED_OPERATION, in get_fs()
166 return Status::fromExceptionCode( in get_fs()
167 Status::EX_UNSUPPORTED_OPERATION, in get_fs()
173 return Status::fromExceptionCode( in get_fs()
174 Status::EX_UNSUPPORTED_OPERATION, in get_fs()
177 return Status::ok(); in get_fs()
213 Status readNextFilenames(int32_t max_count, in readNextFilenames()
218 return Status::fromExceptionCode(Status::EX_ILLEGAL_ARGUMENT, in readNextFilenames()
228 return Status::fromExceptionCode( in readNextFilenames()
229 Status::EX_ILLEGAL_STATE, in readNextFilenames()
234 return Status::fromExceptionCode( in readNextFilenames()
235 Status::EX_ILLEGAL_STATE, in readNextFilenames()
240 return Status::ok(); in readNextFilenames()
325 Status read(int64_t size, int64_t offset, std::vector<uint8_t>* out) final { in read()
328 return Status::fromExceptionCode(Status::EX_ILLEGAL_ARGUMENT, in read()
332 return Status::fromExceptionCode(Status::EX_ILLEGAL_ARGUMENT, in read()
336 return Status::fromExceptionCode(Status::EX_ILLEGAL_ARGUMENT, in read()
340 return Status::fromExceptionCode(Status::EX_ILLEGAL_ARGUMENT, in read()
345 return Status::fromExceptionCode( in read()
346 Status::EX_ILLEGAL_STATE, in read()
351 return Status::fromExceptionCode( in read()
352 Status::EX_ILLEGAL_STATE, in read()
368 Status write(int64_t offset, in write()
373 return Status::fromExceptionCode(Status::EX_ILLEGAL_ARGUMENT, in write()
377 return Status::fromExceptionCode(Status::EX_ILLEGAL_ARGUMENT, in write()
382 return Status::fromExceptionCode( in write()
383 Status::EX_ILLEGAL_STATE, in write()
388 return Status::fromExceptionCode( in write()
389 Status::EX_ILLEGAL_STATE, in write()
401 return Status::ok(); in write()
404 Status getSize(int64_t* out) final { in getSize()
407 return Status::fromExceptionCode( in getSize()
408 Status::EX_ILLEGAL_STATE, in getSize()
413 return Status::fromExceptionCode( in getSize()
414 Status::EX_ILLEGAL_STATE, in getSize()
426 return Status::fromExceptionCode(Status::EX_ILLEGAL_STATE, in getSize()
430 return Status::ok(); in getSize()
433 Status setSize(int64_t new_size) final { in setSize()
436 return Status::fromExceptionCode(Status::EX_ILLEGAL_ARGUMENT, in setSize()
441 return Status::fromExceptionCode( in setSize()
442 Status::EX_ILLEGAL_STATE, in setSize()
447 return Status::fromExceptionCode( in setSize()
448 Status::EX_ILLEGAL_STATE, in setSize()
457 Status rename(const std::string& new_name, CreationMode dest_create_mode) { in rename()
460 return Status::fromExceptionCode(Status::EX_ILLEGAL_ARGUMENT, in rename()
465 return Status::fromExceptionCode( in rename()
466 Status::EX_ILLEGAL_STATE, in rename()
471 return Status::fromExceptionCode( in rename()
472 Status::EX_ILLEGAL_STATE, in rename()
504 Status commitChanges() final { return endTransactions(true); } in commitChanges()
505 Status abandonChanges() final { return endTransactions(false); } in abandonChanges()
507 Status openFile(const std::string& file_name, in openFile()
511 return Status::fromExceptionCode( in openFile()
512 Status::EX_UNSUPPORTED_OPERATION, in openFile()
517 return Status::fromExceptionCode( in openFile()
518 Status::EX_ILLEGAL_STATE, in openFile()
541 return Status::ok(); in openFile()
544 Status deleteFile(const std::string& file_name, in deleteFile()
547 return Status::fromExceptionCode( in deleteFile()
548 Status::EX_UNSUPPORTED_OPERATION, in deleteFile()
553 return Status::fromExceptionCode( in deleteFile()
554 Status::EX_ILLEGAL_STATE, in deleteFile()
570 Status renameFile(const std::string& file_name, in renameFile()
574 return Status::fromExceptionCode( in renameFile()
575 Status::EX_UNSUPPORTED_OPERATION, in renameFile()
580 return Status::fromExceptionCode( in renameFile()
581 Status::EX_ILLEGAL_STATE, in renameFile()
599 Status openDir(const std::string& file_name, in openDir()
603 return Status::fromExceptionCode( in openDir()
604 Status::EX_ILLEGAL_ARGUMENT, in openDir()
608 return Status::fromExceptionCode( in openDir()
609 Status::EX_ILLEGAL_STATE, in openDir()
615 return Status::ok(); in openDir()
619 Status endTransactions(bool commit_changes) { in endTransactions()
629 return Status::fromExceptionCode( in endTransactions()
630 Status::EX_ILLEGAL_STATE, in endTransactions()
642 Status MakeSession(const FileProperties& file_properties, in MakeSession()
646 Status result = get_fs(file_properties, &fs_type); in MakeSession()
653 return Status::fromStatusT(android::WOULD_BLOCK); in MakeSession()
663 return Status::ok(); in MakeSession()
712 Status startSession(const FileProperties& file_properties, in startSession()
715 Status result = in startSession()
722 return Status::ok(); in startSession()