Home
last modified time | relevance | path

Searched refs:success (Results 1 – 25 of 330) sorted by relevance

12345678910>>...14

/system/chre/apps/power_test/common/
Drequest_manager.cc127 void RequestManager::sendResponseMessageToHost(bool success) { in sendResponseMessageToHost() argument
133 chre::power_test::CreateNanoappResponseMessage(*builder, success)); in sendResponseMessageToHost()
145 LOGE("Failed to send response message with success %d", success); in sendResponseMessageToHost()
153 bool success = false; in requestTimer() local
164 success = true; in requestTimer()
168 success = chreTimerCancel(mTimerIds[type]); in requestTimer()
171 LOGI("RequestTimer success %d, enable %d, type %d, delay %" PRIu64, success, in requestTimer()
173 return success; in requestTimer()
181 bool success = chreWifiRequestScanAsync(&params, nullptr /*cookie*/); in wifiTimerCallback() local
184 success, params.scanType, params.radioChainPref, params.channelSet); in wifiTimerCallback()
[all …]
/system/chre/test/simulation/
Dgnss_test.cc79 if (event->success) { in TEST_F()
99 bool success; in TEST_F() local
102 success = chreGnssLocationSessionStartAsync( in TEST_F()
107 success = chreGnssLocationSessionStopAsync(&cookie); in TEST_F()
110 success); in TEST_F()
125 bool success; in TEST_F() local
131 waitForEvent(LOCATION_REQUEST, &success); in TEST_F()
132 EXPECT_TRUE(success); in TEST_F()
159 waitForEvent(LOCATION_REQUEST, &success); in TEST_F()
160 EXPECT_TRUE(success); in TEST_F()
[all …]
Dble_test.cc138 const bool success = chreBleStartScanAsync( in TEST_F() local
140 TestEventQueueSingleton::get()->pushEvent(START_SCAN, success); in TEST_F()
145 const bool success = chreBleStopScanAsync(); in TEST_F() local
146 TestEventQueueSingleton::get()->pushEvent(STOP_SCAN, success); in TEST_F()
158 bool success; in TEST_F() local
160 waitForEvent(START_SCAN, &success); in TEST_F()
161 EXPECT_TRUE(success); in TEST_F()
167 waitForEvent(STOP_SCAN, &success); in TEST_F()
168 EXPECT_TRUE(success); in TEST_F()
194 const bool success = chreBleStartScanAsync( in TEST_F() local
[all …]
Dwifi_timeout_test.cc57 if (event->success) { in TEST_F()
76 bool success = chreWifiRequestScanAsyncDefault(&cookie); in TEST_F() local
77 TestEventQueueSingleton::get()->pushEvent(SCAN_REQUEST, success); in TEST_F()
89 bool success; in TEST_F() local
90 waitForEvent(SCAN_REQUEST, &success); in TEST_F()
91 EXPECT_TRUE(success); in TEST_F()
103 waitForEvent(SCAN_REQUEST, &success); in TEST_F()
104 EXPECT_TRUE(success); in TEST_F()
128 if (event->success) { in TEST_F()
143 bool success = chreWifiConfigureScanMonitorAsync( in TEST_F() local
[all …]
Dwifi_nan_test.cc154 const bool success = in TEST_F() local
157 success); in TEST_F()
173 bool success; in TEST_F() local
174 waitForEvent(NAN_SUBSCRIBE, &success); in TEST_F()
175 EXPECT_TRUE(success); in TEST_F()
212 const bool success = in TEST_F() local
215 success); in TEST_F()
231 bool success; in TEST_F() local
232 waitForEvent(NAN_SUBSCRIBE, &success); in TEST_F()
233 EXPECT_TRUE(success); in TEST_F()
[all …]
Dwifi_scan_test.cc88 bool success = false; in __anonc888a3120202() local
92 success = chreWifiRequestScanAsyncDefault( in __anonc888a3120202()
98 TestEventQueueSingleton::get()->pushEvent(SCAN_REQUEST, success); in __anonc888a3120202()
112 bool success; in TEST_F() local
116 waitForEvent(SCAN_REQUEST, &success); in TEST_F()
117 EXPECT_TRUE(success); in TEST_F()
129 waitForEvent(SCAN_REQUEST, &success); in TEST_F()
130 EXPECT_TRUE(success); in TEST_F()
151 bool success; in TEST_F() local
153 waitForEvent(SCAN_REQUEST, &success); in TEST_F()
[all …]
Dwifi_test.cc54 if (event->success) { in TEST_F()
69 bool success = chreWifiConfigureScanMonitorAsync( in TEST_F() local
72 success); in TEST_F()
91 bool success; in TEST_F() local
92 waitForEvent(MONITORING_REQUEST, &success); in TEST_F()
93 EXPECT_TRUE(success); in TEST_F()
117 if (event->success) { in TEST_F()
132 bool success = chreWifiConfigureScanMonitorAsync( in TEST_F() local
135 success); in TEST_F()
147 bool success; in TEST_F() local
[all …]
Daudio_test.cc85 const bool success = chreAudioConfigureSource( in TEST_F() local
88 TestEventQueueSingleton::get()->pushEvent(CONFIGURE, success); in TEST_F()
101 bool success; in TEST_F() local
103 waitForEvent(CONFIGURE, &success); in TEST_F()
104 EXPECT_TRUE(success); in TEST_F()
112 waitForEvent(CONFIGURE, &success); in TEST_F()
113 EXPECT_TRUE(success); in TEST_F()
139 const bool success = chreAudioConfigureSource( in TEST_F() local
142 TestEventQueueSingleton::get()->pushEvent(CONFIGURE, success); in TEST_F()
155 bool success; in TEST_F() local
[all …]
Dsensor_test.cc65 const bool success = chreSensorConfigure( in TEST_F() local
67 TestEventQueueSingleton::get()->pushEvent(CONFIGURE, success); in TEST_F()
77 bool success; in TEST_F() local
85 waitForEvent(CONFIGURE, &success); in TEST_F()
86 EXPECT_TRUE(success); in TEST_F()
98 waitForEvent(CONFIGURE, &success); in TEST_F()
99 EXPECT_TRUE(success); in TEST_F()
130 const bool success = chreSensorConfigure( in TEST_F() local
132 TestEventQueueSingleton::get()->pushEvent(CONFIGURE, success); in TEST_F()
148 bool success; in TEST_F() local
[all …]
/system/chre/apps/test/common/chre_settings_test/src/
Dchre_settings_test_manager.cc59 bool success = true; in getFeature() local
84 success = false; in getFeature()
87 return success; in getFeature()
92 bool success = true; in getFeatureState() local
102 success = false; in getFeatureState()
105 return success; in getFeatureState()
110 bool success = true; in getTestStep() local
120 success = false; in getTestStep()
123 return success; in getTestStep()
203 bool success = false; in handleMessageFromHost() local
[all …]
/system/extras/simpleperf/
Dcmd_report_test.cpp49 success = false; in ReportRaw()
66 success = true; in ReportRaw()
83 bool success; member in ReportCommandTest
88 ASSERT_TRUE(success); in TEST_F()
94 ASSERT_TRUE(success); in TEST_F()
100 ASSERT_TRUE(success); in TEST_F()
110 ASSERT_TRUE(success); in TEST_F()
125 ASSERT_TRUE(success); in TEST_F()
169 ASSERT_TRUE(success); in TEST_F()
172 ASSERT_TRUE(success); in TEST_F()
[all …]
/system/chre/platform/exynos/
Dplatform_nanoapp.cc34 bool success = false; in reserveBuffer() local
46 success = true; in reserveBuffer()
49 return success; in reserveBuffer()
56 bool success = true; in copyNanoappFragment() local
61 success = false; in copyNanoappFragment()
67 return success; in copyNanoappFragment()
71 bool success = false; in start() local
76 success = mAppInfo->entryPoints.start(); in start()
81 return success; in start()
137 bool success = false; in verifyNanoappInfo() local
[all …]
/system/chre/platform/slpi/see/
Dsee_helper.cc146 bool success = false; in copyPayload() local
156 success = true; in copyPayload()
158 return success; in copyPayload()
177 bool success = pb_get_encoded_size(msgLen, sns_std_attr_req_fields, &req); in encodeSnsStdAttrReq() local
178 if (!success) { in encodeSnsStdAttrReq()
190 success = pb_encode(&stream, sns_std_attr_req_fields, &req); in encodeSnsStdAttrReq()
191 if (!success) { in encodeSnsStdAttrReq()
196 return success; in encodeSnsStdAttrReq()
213 bool success = false; in encodeSnsSuidReq() local
237 success = pb_encode(&stream, sns_suid_req_fields, &req); in encodeSnsSuidReq()
[all …]
/system/core/libutils/
DErrors_test.cpp28 status_t success_or_fail(bool success) { in success_or_fail() argument
29 if (success) in success_or_fail()
36 auto f = [](bool success, int* val) -> status_t { in TEST() argument
37 OR_RETURN(success_or_fail(success)); in TEST()
54 auto f = [](bool success) -> Result<std::string, StatusT> { in TEST() argument
55 OR_RETURN(success_or_fail(success)); in TEST()
70 auto f = [](bool success) -> Result<int, StatusT> { in TEST() argument
71 OR_RETURN(success_or_fail(success)); in TEST()
92 auto f = [](bool success) -> Result<std::string, StatusT> { in TEST() argument
93 if (success) in TEST()
[all …]
/system/chre/apps/test/pts/audio_enable_disable_test/src/
Daudio_enable_disable_test.cc66 void sendTestResult(uint16_t hostEndpointId, bool success) { in sendTestResult() argument
69 result.code = success ? pts_chre_TestResult_Code_TEST_PASSED in sendTestResult()
104 bool success = false; in handleMessageFromHost() local
121 success = true; in handleMessageFromHost()
125 if (!success) { in handleMessageFromHost()
126 sendTestResult(gHostEndpointId, success); in handleMessageFromHost()
132 bool success = false; in handleAudioDataEvent() local
148 success = true; in handleAudioDataEvent()
152 if (!success) { in handleAudioDataEvent()
153 sendTestResult(gHostEndpointId, success); in handleAudioDataEvent()
[all …]
/system/chre/core/
Dgnss_manager.cc34 bool success = true; in getCallbackType() local
46 success = false; in getCallbackType()
50 return success; in getCallbackType()
54 bool success = true; in getReportEventType() local
67 success = false; in getReportEventType()
71 return success; in getReportEventType()
106 bool success = false; in configurePassiveLocationListener() local
130 success = true; in configurePassiveLocationListener()
132 success = platformConfigurePassiveLocationListener(enable); in configurePassiveLocationListener()
135 success = true; in configurePassiveLocationListener()
[all …]
Dwifi_request_manager.cc137 bool success = false; in configureScanMonitor() local
141 success = addScanMonitorRequestToQueue(nanoapp, enable, cookie); in configureScanMonitor()
145 success = postScanMonitorAsyncResultEvent(instanceId, true /* success */, in configureScanMonitor()
149 success = addScanMonitorRequestToQueue(nanoapp, enable, cookie); in configureScanMonitor()
150 if (success) { in configureScanMonitor()
151 success = mPlatformWifi.configureScanMonitor(enable); in configureScanMonitor()
152 if (!success) { in configureScanMonitor()
164 return success; in configureScanMonitor()
191 bool success = false; in requestRangingByType() local
195 success = mPlatformWifi.requestRanging(params); in requestRangingByType()
[all …]
Dble_request_manager.cc57 bool success = true; in compliesWithBleSetting() local
59 success = false; in compliesWithBleSetting()
67 return success; in compliesWithBleSetting()
74 bool success = true; in updateRequests() local
78 success = in updateRequests()
85 return success; in updateRequests()
160 bool success = validateParams(request); in configure() local
161 if (success) { in configure()
171 success = updateRequests(std::move(request), hasExistingRequest, in configure()
173 if (success) { in configure()
[all …]
Dsensor_request_manager.cc40 bool success = false; in isSensorRequestValid() local
49 success = true; in isSensorRequestValid()
51 return success; in isSensorRequestValid()
168 bool success = false; in setSensorRequest() local
197 success = removeRequest(sensor, requestIndex, &requestChanged); in setSensorRequest()
198 if (success) { in setSensorRequest()
222 success = true; in setSensorRequest()
236 success = addRequest(sensor, request, &requestChanged); in setSensorRequest()
237 if (success) { in setSensorRequest()
262 success = updateRequest(sensor, requestIndex, request, &requestChanged); in setSensorRequest()
[all …]
/system/chre/platform/freertos/
Dplatform_nanoapp.cc57 bool success = false; in start() local
63 success = mAppInfo->entryPoints.start(); in start()
66 return success; in start()
183 bool success = false; in reserveBuffer() local
199 success = true; in reserveBuffer()
202 return success; in reserveBuffer()
211 bool success = true; in copyNanoappFragment() local
216 success = false; in copyNanoappFragment()
223 return success; in copyNanoappFragment()
227 bool success = false; in verifyNanoappInfo() local
[all …]
/system/chre/apps/audio_stress_test/
Daudio_stress_test.cc106 bool success = false; in discoverAudioHandle() local
108 for (uint32_t i = 0; !success && chreAudioGetSource(i, &source); i++) { in discoverAudioHandle()
119 success = true; in discoverAudioHandle()
123 if (!success) { in discoverAudioHandle()
127 return success; in discoverAudioHandle()
140 bool success = false; in requestAudioForCurrentTestState() local
149 success = true; in requestAudioForCurrentTestState()
156 success = true; in requestAudioForCurrentTestState()
160 return success; in requestAudioForCurrentTestState()
167 bool success = (gTimerHandle != CHRE_TIMER_INVALID); in advanceTestPosition() local
[all …]
/system/chre/platform/slpi/
Dplatform_nanoapp.cc82 bool success = false; in setAppInfo() local
87 success = true; in setAppInfo()
90 return success; in setAppInfo()
98 bool success = false; in reserveBuffer() local
113 success = true; in reserveBuffer()
117 return success; in reserveBuffer()
124 bool success = true; in copyNanoappFragment() local
128 success = false; in copyNanoappFragment()
135 return success; in copyNanoappFragment()
165 bool success = false; in openNanoapp() local
[all …]
/system/connectivity/wificond/tests/
Dscanner_unittest.cpp129 bool success = false; in TEST_F() local
134 EXPECT_TRUE(scanner_impl_->scan(SingleScanSettings(), &success).isOk()); in TEST_F()
135 EXPECT_TRUE(success); in TEST_F()
149 bool success = false; in TEST_F() local
150 EXPECT_TRUE(scanner_impl.scan(settings, &success).isOk()); in TEST_F()
151 EXPECT_TRUE(success); in TEST_F()
164 bool success = false; in TEST_F() local
165 EXPECT_TRUE(scanner_impl.scan(settings, &success).isOk()); in TEST_F()
166 EXPECT_TRUE(success); in TEST_F()
179 bool success = false; in TEST_F() local
[all …]
Dserver_unittest.cpp185 bool success = true; in TEST_F() local
187 kFateInterfaceNameInvalid, &success).isOk()); in TEST_F()
188 EXPECT_FALSE(success); in TEST_F()
190 EXPECT_TRUE(server_.tearDownApInterface(kFakeInterfaceName, &success).isOk()); in TEST_F()
191 EXPECT_TRUE(success); in TEST_F()
202 bool success = true; in TEST_F() local
204 kFateInterfaceNameInvalid, &success).isOk()); in TEST_F()
205 EXPECT_FALSE(success); in TEST_F()
208 kFakeInterfaceName, &success).isOk()); in TEST_F()
209 EXPECT_TRUE(success); in TEST_F()
[all …]
/system/chre/platform/slpi/qsh/
Dqsh_proto_shim.cc52 bool success = false; in getCurrentNanoappInstanceId() local
59 success = true; in getCurrentNanoappInstanceId()
61 return success; in getCurrentNanoappInstanceId()
72 bool success = false; in postEventFromQsh() local
79 success = true; in postEventFromQsh()
89 success = true; in postEventFromQsh()
94 if (success) { in postEventFromQsh()
99 return success; in postEventFromQsh()

12345678910>>...14