Home
last modified time | relevance | path

Searched refs:ok (Results 1 – 25 of 219) sorted by relevance

123456789

/system/connectivity/wificond/
Dclient_interface_binder.cpp48 return Status::ok(); in getPacketCounters()
51 return Status::ok(); in getPacketCounters()
57 return Status::ok(); in signalPoll()
60 return Status::ok(); in signalPoll()
65 return Status::ok(); in getMacAddress()
69 return Status::ok(); in getMacAddress()
74 return Status::ok(); in getInterfaceName()
77 return Status::ok(); in getInterfaceName()
84 return Status::ok(); in getWifiScannerImpl()
87 return Status::ok(); in getWifiScannerImpl()
[all …]
Dserver.cpp69 return Status::ok(); in RegisterCallback()
74 return Status::ok(); in RegisterCallback()
84 return Status::ok(); in UnregisterCallback()
89 return Status::ok(); in UnregisterCallback()
96 return Status::ok(); // Logging was done internally in createApInterface()
108 return Status::ok(); in createApInterface()
120 return Status::ok(); in tearDownApInterface()
127 return Status::ok(); // Logging was done internally in createClientInterface()
142 return Status::ok(); in createClientInterface()
154 return Status::ok(); in tearDownClientInterface()
[all …]
/system/media/audio_utils/tests/
Dfifo_multiprocess.cpp77 int ok = munmap(frontIndex, sizeof(audio_utils_fifo_index)); in main() local
78 printf("writer unmap front ok=%d\n", ok); in main()
79 ok = ashmem_set_prot_region(frontFd, PROT_READ); in main()
80 printf("writer prot read front ok=%d\n", ok); in main()
140 int ok = munmap(rearIndex, sizeof(audio_utils_fifo_index)); in main() local
141 printf("reader unmap rear ok=%d\n", ok); in main()
142 ok = ashmem_set_prot_region(rearFd, PROT_READ); in main()
143 printf("reader prot read rear ok=%d\n", ok); in main()
151 ok = munmap(data, BUFFER_SIZE); in main()
152 printf("reader unmap data ok=%d\n", ok); in main()
[all …]
/system/bt/service/ipc/binder/
Dbluetooth_binder_server.cc58 return Status::ok(); in IsEnabled()
64 return Status::ok(); in GetState()
70 return Status::ok(); in Enable()
77 return Status::ok(); in EnableNoAutoConnect()
83 return Status::ok(); in Disable()
89 return Status::ok(); in GetAddress()
97 return Status::ok(); in GetUUIDs()
104 return Status::ok(); in SetName()
110 return Status::ok(); in GetName()
117 return Status::ok(); in SetScanMode()
[all …]
Dbluetooth_a2dp_sink_binder_server.cc42 return Status::ok(); in Register()
47 return Status::ok(); in Unregister()
56 return Status::ok(); in Enable()
62 return Status::ok(); in Enable()
66 return Status::ok(); in Enable()
75 return Status::ok(); in Disable()
80 return Status::ok(); in Disable()
90 return Status::ok(); in Connect()
96 return Status::ok(); in Connect()
100 return Status::ok(); in Connect()
[all …]
Dbluetooth_avrcp_control_binder_server.cc51 return Status::ok(); in Register()
57 return Status::ok(); in Unregister()
63 return Status::ok(); in UnregisterAll()
73 return Status::ok(); in Enable()
79 return Status::ok(); in Enable()
83 return Status::ok(); in Enable()
93 return Status::ok(); in Disable()
98 return Status::ok(); in Disable()
109 return Status::ok(); in SendPassThroughCommand()
116 return Status::ok(); in SendPassThroughCommand()
[all …]
Dbluetooth_le_advertiser_binder_server.cc50 return Status::ok(); in RegisterAdvertiser()
57 return Status::ok(); in UnregisterAdvertiser()
63 return Status::ok(); in UnregisterAll()
77 return Status::ok(); in StartMultiAdvertising()
106 return Status::ok(); in StartMultiAdvertising()
110 return Status::ok(); in StartMultiAdvertising()
122 return Status::ok(); in StopMultiAdvertising()
151 return Status::ok(); in StopMultiAdvertising()
155 return Status::ok(); in StopMultiAdvertising()
Dbluetooth_low_energy_binder_server.cc50 return Status::ok(); in RegisterClient()
56 return Status::ok(); in UnregisterClient()
62 return Status::ok(); in UnregisterAll()
77 return Status::ok(); in Connect()
82 return Status::ok(); in Connect()
95 return Status::ok(); in Disconnect()
99 return Status::ok(); in Disconnect()
113 return Status::ok(); in SetMtu()
117 return Status::ok(); in SetMtu()
Dbluetooth_le_scanner_binder_server.cc50 return Status::ok(); in RegisterScanner()
56 return Status::ok(); in UnregisterScanner()
62 return Status::ok(); in UnregisterAll()
76 return Status::ok(); in StartScan()
85 return Status::ok(); in StartScan()
97 return Status::ok(); in StopScan()
101 return Status::ok(); in StopScan()
/system/core/init/
Dcheck_builtins.cpp56 if (!uid.ok()) { in check_chown()
64 if (!gid.ok()) { in check_chown()
76 if (!result.ok()) { in check_exec()
97 if (auto result = IsKnownInterface(args[1]); !result.ok()) { in check_interface_restart()
128 if (!options.ok()) { in check_mount_all()
136 if (!options.ok()) { in check_mkdir()
146 if (!restorecon_info.ok()) { in check_restorecon()
169 if (auto result = IsLegalPropertyValue(name, value); !result.ok()) { in check_setprop()
201 if (!rlimit.ok()) return rlimit.error(); in check_setrlimit()
207 if (!options.ok()) { in check_swapon_all()
[all …]
/system/netd/tests/
DTestUnsolService.cpp86 return binder::Status::ok(); in onInterfaceClassActivityChanged()
92 return binder::Status::ok(); in onQuotaLimitReached()
100 return binder::Status::ok(); in onInterfaceDnsServerInfo()
106 return binder::Status::ok(); in onInterfaceAddressUpdated()
114 return binder::Status::ok(); in onInterfaceAddressRemoved()
119 return binder::Status::ok(); in onInterfaceAdded()
124 return binder::Status::ok(); in onInterfaceRemoved()
129 return binder::Status::ok(); in onInterfaceChanged()
134 return binder::Status::ok(); in onInterfaceLinkStateChanged()
140 return binder::Status::ok(); in onRouteChanged()
[all …]
/system/gsid/
Dgsi_service.cpp119 return binder::Status::ok(); in openInstall()
124 return binder::Status::ok(); in openInstall()
133 return binder::Status::ok(); in openInstall()
146 return binder::Status::ok(); in closeInstall()
157 return binder::Status::ok(); in createPartition()
168 return binder::Status::ok(); in createPartition()
182 return binder::Status::ok(); in createPartition()
192 return binder::Status::ok(); in commitGsiChunkFromStream()
196 return binder::Status::ok(); in commitGsiChunkFromStream()
227 return binder::Status::ok(); in getInstallProgress()
[all …]
/system/libbase/
Dresult_test.cpp43 ASSERT_TRUE(Result<std::string>("success").ok()); in TEST()
53 Result<void> ok = {}; in TEST() local
54 EXPECT_RESULT_OK(ok); in TEST()
55 ok.value(); // should not crash in TEST()
56 ASSERT_DEATH(ok.error(), ""); in TEST()
59 EXPECT_FALSE(fail.ok()); in TEST()
62 EXPECT_TRUE(ok != fail); in TEST()
65 auto test = [](bool ok) -> Result<void> { in TEST() argument
66 if (ok) return {}; in TEST()
69 EXPECT_TRUE(test(true).ok()); in TEST()
[all …]
/system/bt/service/example/heart_rate/
Dheart_rate_server.cc49 return Status::ok(); in OnAdvertiserRegistered()
81 return Status::ok(); in OnAdvertiserRegistered()
88 return Status::ok(); in OnMultiAdvertiseCallback()
233 return Status::ok(); in OnServerRegistered()
269 return Status::ok(); in OnServerRegistered()
275 return Status::ok(); in OnServerRegistered()
279 return Status::ok(); in OnServerRegistered()
289 return Status::ok(); in OnServiceAdded()
310 return Status::ok(); in OnServiceAdded()
332 return Status::ok(); in OnCharacteristicReadRequest()
[all …]
/system/apex/apexd/
Dapexd.cpp155 if (!scan.ok()) { in preAllocateLoopDevices()
162 if (!apexFile.ok()) { in preAllocateLoopDevices()
249 if (!ret.ok()) { in ~DmVerityDevice()
275 if (!result.ok()) { in createVerityDevice()
292 if (!all_active_apex_files.ok()) { in RemovePreviouslyActiveApexFiles()
298 if (!apex_file.ok()) { in RemovePreviouslyActiveApexFiles()
351 if (!result.ok()) { in VerifyMountedImage()
375 if (!exists.ok()) { in MountPackageImpl()
397 if (ret.ok()) { in MountPackageImpl()
409 if (!verityData.ok()) { in MountPackageImpl()
[all …]
Dapexservice.cpp63 return BinderStatus::ok(); in CheckCallerIsRoot()
122 return BinderStatus::ok(); in CheckDebuggable()
135 if (res.ok()) { in stagePackages()
136 return BinderStatus::ok(); in stagePackages()
149 if (res.ok()) { in unstagePackages()
150 return BinderStatus::ok(); in unstagePackages()
169 if (!packages.ok()) { in submitStagedSession()
184 return BinderStatus::ok(); in submitStagedSession()
191 if (!success.ok()) { in markStagedSessionReady()
198 return BinderStatus::ok(); in markStagedSessionReady()
[all …]
/system/extras/libjsonpb/parse/include/jsonpb/
Derror_or.h33 CHECK(ok());
37 CHECK(ok());
41 CHECK(ok());
45 CHECK(ok());
49 CHECK(!ok()); in error()
52 bool ok() const { return data_.index() != 0; } in ok() function
/system/tools/aidl/tests/
Daidl_test_service.cpp107 return Status::ok(); in GetName()
134 return Status::ok(); in RepeatBoolean()
139 return Status::ok(); in RepeatByte()
144 return Status::ok(); in RepeatChar()
149 return Status::ok(); in RepeatInt()
154 return Status::ok(); in RepeatLong()
159 return Status::ok(); in RepeatFloat()
164 return Status::ok(); in RepeatDouble()
169 return Status::ok(); in RepeatString()
174 return Status::ok(); in RepeatByteEnum()
[all …]
/system/connectivity/wificond/scanning/
Dscanner_impl.cpp116 return Status::ok(); in getScanResults()
121 return Status::ok(); in getScanResults()
127 return Status::ok(); in getPnoScanResults()
132 return Status::ok(); in getPnoScanResults()
139 return Status::ok(); in scan()
179 return Status::ok(); in scan()
183 return Status::ok(); in scan()
191 return Status::ok(); in startPnoScan()
302 return Status::ok(); in stopPnoScan()
323 return Status::ok(); in abortScan()
[all …]
/system/netd/libnetdutils/include/netdutils/
DStatus.h42 Status(int code, std::string msg) : mCode(code), mMsg(std::move(msg)) { assert(!ok()); } in Status()
45 : mCode(result.ok() ? 0 : result.error().code()), in Status()
46 mMsg(result.ok() ? "" : result.error().message()) {} in Status()
50 bool ok() const { return code() == 0; } in ok() function
67 const Status ok{0};
79 return status.ok(); in isOk()
/system/core/logcat/tests/
Dlogcat_benchmark.cpp43 bool ok; in BM_logcat_sorted_order() member in BM_logcat_sorted_order::timestamp
47 ok = false; in BM_logcat_sorted_order()
49 ok = sscanf(buffer, "%d-%d %d:%d:%d.%d ", &month, &day, &hour, in BM_logcat_sorted_order()
59 return !ok || !T.ok || (month < T.month) || in BM_logcat_sorted_order()
73 return ok; in BM_logcat_sorted_order()
/system/netd/libnetdutils/
DSyscallsTest.cpp63 EXPECT_CALL(mSyscalls, close(kFd)).WillOnce(Return(status::ok)); in TEST_F()
65 EXPECT_EQ(status::ok, result.status()); in TEST_F()
79 return status::ok; in TEST_F()
100 .WillOnce(Return(status::ok)); in TEST_F()
101 EXPECT_EQ(status::ok, sys.setsockopt(kFd, kLevel, kOptname, expected)); in TEST_F()
120 .WillOnce(Return(status::ok)); in TEST_F()
121 EXPECT_EQ(status::ok, sys.getsockopt(kFd, kLevel, kOptname, &expected, &optLen)); in TEST_F()
137 .WillOnce(Return(status::ok)); in TEST_F()
138 EXPECT_EQ(status::ok, sys.bind(kFd, expected)); in TEST_F()
154 .WillOnce(Return(status::ok)); in TEST_F()
[all …]
/system/memory/libmemunreachable/
DMemUnreachable.cpp369 bool ok = unreachable.GetUnreachableMemory(leaks, limit, &num_leaks, &leak_bytes); in GetUnreachableMemory() local
371 ok = ok && pipe.Sender().Send(num_allocations); in GetUnreachableMemory()
372 ok = ok && pipe.Sender().Send(allocation_bytes); in GetUnreachableMemory()
373 ok = ok && pipe.Sender().Send(num_leaks); in GetUnreachableMemory()
374 ok = ok && pipe.Sender().Send(leak_bytes); in GetUnreachableMemory()
375 ok = ok && pipe.Sender().SendVector(leaks); in GetUnreachableMemory()
377 if (!ok) { in GetUnreachableMemory()
421 bool ok = true; in GetUnreachableMemory() local
422 ok = ok && pipe.Receiver().Receive(&info.num_allocations); in GetUnreachableMemory()
423 ok = ok && pipe.Receiver().Receive(&info.allocation_bytes); in GetUnreachableMemory()
[all …]
/system/update_engine/
Dbinder_service_android.cc85 return Status::ok(); in bind()
102 return Status::ok(); in bind()
113 return Status::ok(); in unbind()
129 return Status::ok(); in applyPayload()
144 return Status::ok(); in applyPayloadFd()
151 return Status::ok(); in suspend()
158 return Status::ok(); in resume()
165 return Status::ok(); in cancel()
172 return Status::ok(); in resetStatus()
186 return Status::ok(); in verifyPayloadApplicable()
[all …]
/system/security/keystore/
Dconfirmation_manager.cpp63 return Status::ok(); in presentConfirmationPrompt()
70 return Status::ok(); in presentConfirmationPrompt()
76 return Status::ok(); in presentConfirmationPrompt()
94 return Status::ok(); in presentConfirmationPrompt()
103 return Status::ok(); in presentConfirmationPrompt()
115 return Status::ok(); in cancelConfirmationPrompt()
122 return Status::ok(); in cancelConfirmationPrompt()
141 return Status::ok(); in isConfirmationPromptSupported()
145 return Status::ok(); in isConfirmationPromptSupported()

123456789