/system/media/brillo/audio/audioservice/ |
D | brillo_audio_service_impl.cpp | 20 using android::binder::Status; 24 Status BrilloAudioServiceImpl::GetDevices(int flag, in GetDevices() 28 return Status::fromServiceSpecificError( in GetDevices() 36 return Status::fromServiceSpecificError(EINVAL, in GetDevices() 39 return Status::ok(); in GetDevices() 42 Status BrilloAudioServiceImpl::SetDevice(int usage, int config) { in SetDevice() 45 return Status::fromServiceSpecificError( in SetDevice() 51 if (rc) return Status::fromServiceSpecificError(rc); in SetDevice() 52 return Status::ok(); in SetDevice() 55 Status BrilloAudioServiceImpl::RegisterServiceCallback( in RegisterServiceCallback() [all …]
|
D | brillo_audio_service.h | 31 using android::binder::Status; 42 virtual Status GetDevices(int flag, std::vector<int>* _aidl_return) = 0; 43 virtual Status SetDevice(int usage, int config) = 0; 44 virtual Status GetMaxVolumeSteps(int stream, int* _aidl_return) = 0; 45 virtual Status SetMaxVolumeSteps(int stream, int max_steps) = 0; 46 virtual Status SetVolumeIndex(int stream, int device, int index) = 0; 47 virtual Status GetVolumeIndex(int stream, int device, int* _aidl_return) = 0; 48 virtual Status GetVolumeControlStream(int* _aidl_return) = 0; 49 virtual Status SetVolumeControlStream(int stream) = 0; 50 virtual Status IncrementVolume() = 0; [all …]
|
D | brillo_audio_service_impl.h | 30 Status GetDevices(int flag, std::vector<int>* _aidl_return) override; 31 Status SetDevice(int usage, int config) override; 32 Status GetMaxVolumeSteps(int stream, int* _aidl_return) override; 33 Status SetMaxVolumeSteps(int stream, int max_steps) override; 34 Status SetVolumeIndex(int stream, int device, int index) override; 35 Status GetVolumeIndex(int stream, int device, int* _aidl_return) override; 36 Status GetVolumeControlStream(int* _aidl_return) override; 37 Status SetVolumeControlStream(int stream) override; 38 Status IncrementVolume() override; 39 Status DecrementVolume() override; [all …]
|
/system/connectivity/wificond/ |
D | client_interface_binder.cpp | 25 using android::binder::Status; 40 Status ClientInterfaceBinder::enableSupplicant(bool* success) { in enableSupplicant() 42 return Status::ok(); in enableSupplicant() 45 Status ClientInterfaceBinder::disableSupplicant(bool* success) { in disableSupplicant() 47 return Status::ok(); in disableSupplicant() 50 Status ClientInterfaceBinder::getPacketCounters( in getPacketCounters() 53 return Status::ok(); in getPacketCounters() 56 return Status::ok(); in getPacketCounters() 59 Status ClientInterfaceBinder::signalPoll( in signalPoll() 62 return Status::ok(); in signalPoll() [all …]
|
D | ap_interface_binder.cpp | 35 binder::Status ApInterfaceBinder::startHostapd(bool* out_success) { in startHostapd() 39 return binder::Status::ok(); in startHostapd() 42 return binder::Status::ok(); in startHostapd() 45 binder::Status ApInterfaceBinder::stopHostapd(bool* out_success) { in stopHostapd() 49 return binder::Status::ok(); in stopHostapd() 52 return binder::Status::ok(); in stopHostapd() 55 binder::Status ApInterfaceBinder::writeHostapdConfig( in writeHostapdConfig() 65 return binder::Status::ok(); in writeHostapdConfig() 81 return binder::Status::ok(); in writeHostapdConfig() 87 return binder::Status::ok(); in writeHostapdConfig() [all …]
|
/system/bt/service/ipc/binder/ |
D | bluetooth_binder_server.cc | 51 Status BluetoothBinderServer::IsEnabled(bool* _aidl_return) { in IsEnabled() 54 return Status::ok(); in IsEnabled() 57 Status BluetoothBinderServer::GetState(int32_t* _aidl_return) { in GetState() 60 return Status::ok(); in GetState() 63 Status BluetoothBinderServer::Enable(bool start_restricted, in Enable() 67 return Status::ok(); in Enable() 70 Status BluetoothBinderServer::EnableNoAutoConnect(bool* _aidl_return) { in EnableNoAutoConnect() 74 return Status::ok(); in EnableNoAutoConnect() 77 Status BluetoothBinderServer::Disable(bool* _aidl_return) { in Disable() 80 return Status::ok(); in Disable() [all …]
|
D | bluetooth_binder_server.h | 39 using android::binder::Status; 60 Status IsEnabled(bool* _aidl_return) override; 61 Status GetState(int32_t* _aidl_return) override; 62 Status Enable(bool start_restricted, bool* _aidl_return) override; 63 Status EnableNoAutoConnect(bool* _aidl_return) override; 64 Status Disable(bool* _aidl_return) override; 66 Status GetAddress(::android::String16* _aidl_return) override; 67 Status GetUUIDs( 69 Status SetName(const ::android::String16& name, bool* _aidl_return) override; 70 Status GetName(::android::String16* _aidl_return) override; [all …]
|
D | bluetooth_low_energy_binder_server.cc | 25 using android::binder::Status; 42 Status BluetoothLowEnergyBinderServer::RegisterClient( in RegisterClient() 50 return Status::ok(); in RegisterClient() 53 Status BluetoothLowEnergyBinderServer::UnregisterClient(int client_id) { in UnregisterClient() 56 return Status::ok(); in UnregisterClient() 59 Status BluetoothLowEnergyBinderServer::UnregisterAll() { in UnregisterAll() 62 return Status::ok(); in UnregisterAll() 65 Status BluetoothLowEnergyBinderServer::Connect(int client_id, in Connect() 77 return Status::ok(); in Connect() 82 return Status::ok(); in Connect() [all …]
|
/system/tools/aidl/tests/ |
D | aidl_test_service.cpp | 63 using android::binder::Status; 96 Status GetName(String16* ret) { in GetName() 98 return Status::ok(); in GetName() 126 Status RepeatBoolean(bool token, bool* _aidl_return) override { in RepeatBoolean() 129 return Status::ok(); in RepeatBoolean() 131 Status RepeatByte(int8_t token, int8_t* _aidl_return) override { in RepeatByte() 134 return Status::ok(); in RepeatByte() 136 Status RepeatChar(char16_t token, char16_t* _aidl_return) override { in RepeatChar() 139 return Status::ok(); in RepeatChar() 141 Status RepeatInt(int32_t token, int32_t* _aidl_return) override { in RepeatInt() [all …]
|
/system/nvram/hal/ |
D | fake_nvram_storage.cpp | 65 nvram::storage::Status DeleteFile(const char* name) { in DeleteFile() 68 return nvram::storage::Status::kNotFound; in DeleteFile() 71 return nvram::storage::Status::kStorageError; in DeleteFile() 74 return nvram::storage::Status::kSuccess; in DeleteFile() 78 nvram::storage::Status LoadFile(const char* name, nvram::Blob* blob) { in LoadFile() 83 return nvram::storage::Status::kNotFound; in LoadFile() 86 return nvram::storage::Status::kStorageError; in LoadFile() 92 return nvram::storage::Status::kStorageError; in LoadFile() 97 return nvram::storage::Status::kStorageError; in LoadFile() 102 return nvram::storage::Status::kStorageError; in LoadFile() [all …]
|
D | memory_storage.cpp | 30 Status Load(Blob* blob) const { in Load() 32 return Status::kNotFound; in Load() 36 return Status::kStorageError; in Load() 39 return Status::kSuccess; in Load() 42 Status Store(const Blob& blob) { in Store() 44 return Status::kStorageError; in Store() 47 return Status::kSuccess; in Store() 50 Status Delete() { in Delete() 51 return blob_.Resize(0) ? Status::kSuccess : Status::kStorageError; in Delete() 81 Status LoadHeader(Blob* blob) { in LoadHeader() [all …]
|
/system/netd/server/ |
D | NetdNativeService.cpp | 54 binder::Status toBinderStatus(const netdutils::Status s) { in toBinderStatus() 56 return binder::Status::ok(); in toBinderStatus() 58 return binder::Status::fromServiceSpecificError(s.code(), s.msg().c_str()); in toBinderStatus() 61 binder::Status checkPermission(const char *permission) { in checkPermission() 66 return binder::Status::ok(); in checkPermission() 69 return binder::Status::fromExceptionCode(binder::Status::EX_SECURITY, String8(err.c_str())); in checkPermission() 73 binder::Status getXfrmStatus(int xfrmCode) { in getXfrmStatus() 76 return binder::Status::ok(); in getXfrmStatus() 78 return binder::Status::fromServiceSpecificError(xfrmCode); in getXfrmStatus() 80 return binder::Status::fromExceptionCode(xfrmCode); in getXfrmStatus() [all …]
|
D | NetdNativeService.h | 36 binder::Status isAlive(bool *alive) override; 37 binder::Status firewallReplaceUidChain( 40 binder::Status bandwidthEnableDataSaver(bool enable, bool *ret) override; 41 binder::Status networkRejectNonSecureVpn(bool enable, const std::vector<UidRange>& uids) 43 binder::Status socketDestroy(const std::vector<UidRange>& uids, 45 binder::Status setResolverConfiguration(int32_t netId, const std::vector<std::string>& servers, 47 binder::Status getResolverInfo(int32_t netId, std::vector<std::string>* servers, 50 binder::Status addPrivateDnsServer(const std::string& server, int32_t port, 53 binder::Status removePrivateDnsServer(const std::string& server) override; 55 binder::Status setIPv6AddrGenMode(const std::string& ifName, int32_t mode) override; [all …]
|
/system/netd/libnetdutils/include/netdutils/ |
D | Status.h | 30 class Status { 32 Status() = default; 34 Status(int code) : mCode(code) {} in Status() function 36 Status(int code, const std::string& msg) : mCode(code), mMsg(msg) { assert(!ok()); } in Status() function 44 bool operator==(const Status& other) const { return code() == other.code(); } 45 bool operator!=(const Status& other) const { return !(*this == other); } 54 const Status ok{0}; 57 const Status eof{0x10001, "end of file"}; 58 const Status undefined{std::numeric_limits<int>::max(), "undefined"}; 65 inline bool isOk(const Status& status) { in isOk() [all …]
|
/system/update_engine/ |
D | binder_service_brillo.h | 57 android::binder::Status AttemptUpdate(const android::String16& app_version, 60 android::binder::Status AttemptRollback(bool powerwash) override; 61 android::binder::Status CanRollback(bool* out_can_rollback) override; 62 android::binder::Status ResetStatus() override; 63 android::binder::Status GetStatus( 65 android::binder::Status RebootIfNeeded() override; 66 android::binder::Status SetChannel(const android::String16& target_channel, 68 android::binder::Status GetChannel(bool get_current_channel, 70 android::binder::Status SetCohortHint( 72 android::binder::Status GetCohortHint( [all …]
|
D | binder_service_brillo.cc | 30 using android::binder::Status; 44 Status ToStatus(ErrorPtr* error) { in ToStatus() 45 return Status::fromServiceSpecificError( in ToStatus() 51 Status BinderUpdateEngineBrilloService::CallCommonHandler( in CallCommonHandler() 56 return Status::ok(); in CallCommonHandler() 60 Status BinderUpdateEngineBrilloService::AttemptUpdate( in AttemptUpdate() 68 Status BinderUpdateEngineBrilloService::AttemptRollback(bool powerwash) { in AttemptRollback() 72 Status BinderUpdateEngineBrilloService::CanRollback(bool* out_can_rollback) { in CanRollback() 76 Status BinderUpdateEngineBrilloService::ResetStatus() { in ResetStatus() 80 Status BinderUpdateEngineBrilloService::GetStatus( in GetStatus() [all …]
|
D | binder_service_android.cc | 25 using android::binder::Status; 29 Status ErrorPtrToStatus(const brillo::ErrorPtr& error) { in ErrorPtrToStatus() 30 return Status::fromServiceSpecificError( in ErrorPtrToStatus() 62 Status BinderUpdateEngineAndroidService::bind( in bind() 83 return Status::ok(); in bind() 86 Status BinderUpdateEngineAndroidService::unbind( in unbind() 94 return Status::ok(); in unbind() 97 Status BinderUpdateEngineAndroidService::applyPayload( in applyPayload() 114 return Status::ok(); in applyPayload() 117 Status BinderUpdateEngineAndroidService::suspend() { in suspend() [all …]
|
/system/libhidl/base/ |
D | Status.cpp | 64 #define EXCEPTION_TO_STRING_PAIR(EXCEPTION) {Status::Exception::EXCEPTION, #EXCEPTION} in exceptionToString() 80 Status Status::ok() { in ok() 81 return Status(); in ok() 84 Status Status::fromExceptionCode(int32_t exceptionCode) { in fromExceptionCode() 85 return Status(exceptionCode, OK); in fromExceptionCode() 88 Status Status::fromExceptionCode(int32_t exceptionCode, in fromExceptionCode() 90 return Status(exceptionCode, OK, message); in fromExceptionCode() 93 Status Status::fromStatusT(status_t status) { in fromStatusT() 94 Status ret; in fromStatusT() 99 Status::Status(int32_t exceptionCode, int32_t errorCode) in Status() function in android::hardware::Status [all …]
|
/system/media/brillo/audio/audioservice/test/ |
D | brillo_audio_service_mock.h | 33 MOCK_METHOD2(GetDevices, Status(int flag, std::vector<int>* _aidl_return)); 34 MOCK_METHOD2(SetDevice, Status(int usage, int config)); 35 MOCK_METHOD2(GetMaxVolumeSteps, Status(int stream, int* _aidl_return)); 36 MOCK_METHOD2(SetMaxVolumeSteps, Status(int stream, int max_steps)); 37 MOCK_METHOD3(SetVolumeIndex, Status(int stream, int device, int index)); 39 Status(int stream, int device, int* _aidl_return)); 40 MOCK_METHOD1(GetVolumeControlStream, Status(int* _aidl_return)); 41 MOCK_METHOD1(SetVolumeControlStream, Status(int stream)); 42 MOCK_METHOD0(IncrementVolume, Status()); 43 MOCK_METHOD0(DecrementVolume, Status()); [all …]
|
/system/nvram/core/ |
D | persistence.cpp | 46 storage::Status EncodeObject(const Object& object, Blob* blob) { in EncodeObject() 53 return storage::Status::kStorageError; in EncodeObject() 55 return storage::Status::kSuccess; in EncodeObject() 67 storage::Status DecodeObject(const Blob& blob, Object* object) { in DecodeObject() 74 return storage::Status::kStorageError; in DecodeObject() 76 return storage::Status::kSuccess; in DecodeObject() 99 storage::Status LoadHeader(NvramHeader* header) { in LoadHeader() 101 storage::Status status = storage::LoadHeader(&blob); in LoadHeader() 102 if (status != storage::Status::kSuccess) { in LoadHeader() 108 storage::Status StoreHeader(const NvramHeader& header) { in StoreHeader() [all …]
|
/system/nvram/core/tests/ |
D | fake_storage.cpp | 31 Status Load(Blob* blob) { in Load() 33 return Status::kStorageError; in Load() 37 return Status::kNotFound; in Load() 41 return Status::kSuccess; in Load() 44 Status Store(const Blob& blob) { in Store() 46 return Status::kStorageError; in Store() 51 return Status::kSuccess; in Store() 54 Status Delete() { in Delete() 56 return Status::kStorageError; in Delete() 61 return Status::kSuccess; in Delete() [all …]
|
/system/libhidl/base/include/hidl/ |
D | Status.h | 53 class Status final { 74 static Status ok(); 82 static Status fromExceptionCode(int32_t exceptionCode); 83 static Status fromExceptionCode(int32_t exceptionCode, 85 static Status fromStatusT(status_t status); 87 Status() = default; 88 ~Status() = default; 91 Status(const Status& status) = default; 92 Status(Status&& status) = default; 93 Status& operator=(const Status& status) = default; [all …]
|
/system/connectivity/wificond/scanning/ |
D | scanner_impl.cpp | 29 using android::binder::Status; 107 Status ScannerImpl::getAvailable2gChannels( in getAvailable2gChannels() 110 return Status::ok(); in getAvailable2gChannels() 117 return Status::ok(); in getAvailable2gChannels() 122 return Status::ok(); in getAvailable2gChannels() 125 Status ScannerImpl::getAvailable5gNonDFSChannels( in getAvailable5gNonDFSChannels() 128 return Status::ok(); in getAvailable5gNonDFSChannels() 135 return Status::ok(); in getAvailable5gNonDFSChannels() 140 return Status::ok(); in getAvailable5gNonDFSChannels() 143 Status ScannerImpl::getAvailableDFSChannels( in getAvailableDFSChannels() [all …]
|
/system/bt/service/example/heart_rate/ |
D | heart_rate_server.cc | 28 using android::binder::Status; 45 Status OnAdvertiserRegistered(int status, int advertiser_id) { in OnAdvertiserRegistered() 49 return Status::ok(); in OnAdvertiserRegistered() 81 return Status::ok(); in OnAdvertiserRegistered() 84 Status OnMultiAdvertiseCallback( in OnMultiAdvertiseCallback() 88 return Status::ok(); in OnMultiAdvertiseCallback() 227 Status HeartRateServer::OnServerRegistered(int status, int server_if) { in OnServerRegistered() 233 return Status::ok(); in OnServerRegistered() 264 Status stat = gatt_->AddService(server_if_, (BluetoothGattService)hrService, in OnServerRegistered() 269 return Status::ok(); in OnServerRegistered() [all …]
|
/system/netd/libnetdutils/ |
D | StatusTest.cpp | 29 Status status1(1); in TEST() 30 Status status2(status1); in TEST() 31 Status status3 = status1; in TEST() 32 const Status status4(8); in TEST() 33 const Status status5(status4); in TEST() 34 const Status status6 = status4; in TEST() 37 EXPECT_EQ(status::ok, Status()); in TEST()
|