Home
last modified time | relevance | path

Searched refs:results (Results 1 – 25 of 109) sorted by relevance

12345

/system/chre/apps/wifi_offload/
Dscan_result_message.cc22 void ScanResultMessage::SetScanResults(const Vector<ScanResult> &results) { in SetScanResults() argument
24 scan_results_.reserve(results.size()); in SetScanResults()
25 for (const auto &result : results) { in SetScanResults()
30 void ScanResultMessage::GetScanResults(Vector<ScanResult> *results) { in GetScanResults() argument
31 if (results == nullptr) { in GetScanResults()
36 results->clear(); in GetScanResults()
37 results->reserve(scan_results_.size()); in GetScanResults()
39 results->emplace_back(result); in GetScanResults()
45 auto results = SerializeVector(scan_results_, builder); in Serialize() local
46 return fbs::CreateScanResultMessage(*builder, results); in Serialize()
Dflatbuffers_serialization.cc45 size_t Serialize(const wifi_offload::Vector<wifi_offload::ScanResult> &results, in Serialize() argument
48 msg.SetScanResults(results); in Serialize()
53 wifi_offload::Vector<wifi_offload::ScanResult> *results) { in Deserialize() argument
57 msg.GetScanResults(results); in Deserialize()
/system/sepolicy/tests/
Dsepolicy_tests.py156 results = "" variable
159 results += TestDataTypeViolations(pol)
161 results += TestProcTypeViolations(pol)
163 results += TestSysfsTypeViolations(pol)
165 results += TestSystemTypeViolations(pol)
167 results += TestDebugfsTypeViolations(pol)
169 results += TestVendorTypeViolations(pol)
171 results += TestCoreDataTypeViolations(pol)
173 results += TestPropertyTypeViolations(pol)
175 results += TestAppDataTypeViolations(pol)
[all …]
/system/tools/hidl/
DgenerateJavaImpl.cpp66 const bool returnsValue = !method->results().empty(); in generateJavaImpl()
68 for (const auto& arg : method->results()) { in generateJavaImpl()
72 const bool needsCallback = method->results().size() > 1; in generateJavaImpl()
76 out.join(method->results().begin(), method->results().end(), ", ", in generateJavaImpl()
82 out << "return " << method->results().at(0)->name() << ";\n"; in generateJavaImpl()
DMethod.cpp36 std::vector<NamedReference<Type>*>* results, bool oneway, in Method() argument
40 mResults(results), in Method()
69 const std::vector<NamedReference<Type>*>& Method::results() const { in results() function in android::Method
156 return args().empty() && (results().empty() || canElideCallback() != nullptr); in hasEmptyCppArgSignature()
210 const bool returnsValue = !results().empty(); in emitCppArgSignature()
221 emitCppArgResultSignature(out, results(), specifyNamespaces); in emitCppResultSignature()
227 emitJavaArgResultSignature(out, results()); in emitJavaResultSignature()
231 const bool returnsValue = !results().empty(); in emitJavaSignature()
232 const bool needsCallback = results().size() > 1; in emitJavaSignature()
235 out << results()[0]->type().getJavaType(); in emitJavaSignature()
[all …]
DgenerateJava.cpp245 const bool needsCallback = method->results().size() > 1; in generateJava()
325 const bool returnsValue = !method->results().empty(); in generateJava()
326 const bool needsCallback = method->results().size() > 1; in generateJava()
385 for (const auto &arg : method->results()) { in generateJava()
398 for (const auto &arg : method->results()) { in generateJava()
409 const std::string returnName = method->results()[0]->name(); in generateJava()
442 CHECK_LE(method->results().size(), 1u); in generateJava()
443 std::string resultType = method->results().size() == 0 ? "void" : in generateJava()
444 method->results()[0]->type().getJavaType(); in generateJava()
504 const bool returnsValue = !method->results().empty(); in generateJava()
[all …]
DgenerateCpp.cpp305 const bool returnsValue = !method->results().empty(); in generateInterfaceHeader()
472 const bool returnsValue = !method->results().empty(); in generatePassthroughMethod()
533 out.join(method->results().begin(), method->results().end(), ", ", [&](const auto &arg) { in generatePassthroughMethod()
547 for (const auto &arg : method->results()) { in generatePassthroughMethod()
730 const bool returnsValue = !method->results().empty(); in generateStubHeader()
989 const bool returnsValue = !method->results().empty(); in generateProxyMethodSource()
1054 const bool returnsValue = !method->results().empty(); in generateStaticProxyMethodSource()
1072 out, method->results(), true /* forResults */); in generateStaticProxyMethodSource()
1118 out, method->results(), true /* forResults */); in generateStaticProxyMethodSource()
1141 for (const auto &arg : method->results()) { in generateStaticProxyMethodSource()
[all …]
/system/chre/chpp/common/
Dwifi_convert.c127 struct ChppWifiScanResult *results = in chppWifiConvertScanEventFromChre() local
129 out->results.length = in->resultCount * sizeof(struct ChppWifiScanResult); in chppWifiConvertScanEventFromChre()
130 CHPP_ASSERT((size_t)(*vlaOffset + out->results.length) <= payloadSize); in chppWifiConvertScanEventFromChre()
131 if (out->results.length > 0 && in chppWifiConvertScanEventFromChre()
132 *vlaOffset + out->results.length <= payloadSize) { in chppWifiConvertScanEventFromChre()
134 chppWifiConvertScanResultFromChre(&in->results[i], &results[i]); in chppWifiConvertScanEventFromChre()
136 out->results.offset = *vlaOffset; in chppWifiConvertScanEventFromChre()
137 *vlaOffset += out->results.length; in chppWifiConvertScanEventFromChre()
139 out->results.offset = 0; in chppWifiConvertScanEventFromChre()
218 struct ChppWifiRangingResult *results = in chppWifiConvertRangingEventFromChre() local
[all …]
/system/core/init/
Depoll_test.cpp64 auto results = epoll.Wait({}); in TEST() local
65 ASSERT_RESULT_OK(results); in TEST()
66 ASSERT_EQ(results->size(), size_t(1)); in TEST()
68 for (const auto& function : *results) { in TEST()
/system/chre/apps/test/chqts/src/general_test/
Dbasic_wifi_test.cc247 void validateRangingEventArray(const struct chreWifiScanResult *results, in validateRangingEventArray() argument
260 if (memcmp(results[i].bssid, event->results[j].macAddress, in validateRangingEventArray()
516 validateWifiScanResult(eventData->resultCount, eventData->results); in validateWifiScanEvent()
521 mLatestWifiScanResults.copy_array(eventData->results, in validateWifiScanEvent()
534 const chreWifiScanResult *results) { in validateWifiScanResult() argument
536 if (results[i].ssidLen > CHRE_WIFI_SSID_MAX_LEN) { in validateWifiScanResult()
538 results[i].ssidLen); in validateWifiScanResult()
543 if (results[i].band != CHRE_WIFI_BAND_2_4_GHZ && in validateWifiScanResult()
544 results[i].band != CHRE_WIFI_BAND_5_GHZ) { in validateWifiScanResult()
545 chreLog(CHRE_LOG_ERROR, "Got unexpected band %d", results[i].band); in validateWifiScanResult()
[all …]
/system/bt/main/shim/
Dbtm_api.cc89 is_classic_device(p_i->inq_info.results.device_type)) { in btm_api_process_inquiry_result()
93 p_i->inq_info.results.page_scan_rep_mode = page_scan_rep_mode; in btm_api_process_inquiry_result()
94 p_i->inq_info.results.page_scan_per_mode = 0; // RESERVED in btm_api_process_inquiry_result()
95 p_i->inq_info.results.page_scan_mode = 0; // RESERVED in btm_api_process_inquiry_result()
96 p_i->inq_info.results.dev_class[0] = device_class[0]; in btm_api_process_inquiry_result()
97 p_i->inq_info.results.dev_class[1] = device_class[1]; in btm_api_process_inquiry_result()
98 p_i->inq_info.results.dev_class[2] = device_class[2]; in btm_api_process_inquiry_result()
99 p_i->inq_info.results.clock_offset = clock_offset | BTM_CLOCK_OFFSET_VALID; in btm_api_process_inquiry_result()
100 p_i->inq_info.results.inq_result_type = BTM_INQ_RESULT_BR; in btm_api_process_inquiry_result()
101 p_i->inq_info.results.rssi = BTM_INQ_RES_IGNORE_RSSI; in btm_api_process_inquiry_result()
[all …]
/system/media/camera/docs/
Dmetadata-parser-validity-check35 local results
36 results="$(python3 "$file" 2>&1)"
40 echo "$results" >& 2
/system/tools/hidl/hidl2aidl/
DAidlInterface.cpp244 std::vector<NamedReference<Type>*> results; in emitAidl() local
246 for (NamedReference<Type>* res : method->results()) { in emitAidl()
253 if (method->results().size() > 1 && shouldWarnOutParam(aidlType)) { in emitAidl()
258 results.push_back(res); in emitAidl()
267 if (results.size() == 1) { in emitAidl()
268 returnType = getAidlType(*results[0]->get(), interface.fqName()); in emitAidl()
271 << returnType << " " << results[0]->name() in emitAidl()
274 results[0]->name(), ResultTransformation::TransformType::MOVED}); in emitAidl()
275 results.clear(); in emitAidl()
323 if (results.empty()) { in emitAidl()
[all …]
/system/bt/gd/l2cap/classic/internal/
Dlink_manager_test.cc118 std::vector<std::pair<Cid, FixedChannelServiceImpl*>> results; in TEST_F() local
119 results.emplace_back(kSmpBrCid, &mock_service_1); in TEST_F()
120 results.emplace_back(kConnectionlessCid, &mock_service_2); in TEST_F()
121 …ck_classic_fixed_channel_service_manager, GetRegisteredServices()).WillRepeatedly(Return(results)); in TEST_F()
172 results.emplace_back(kSmpBrCid + 1, &mock_service_3); in TEST_F()
173 …ck_classic_fixed_channel_service_manager, GetRegisteredServices()).WillRepeatedly(Return(results)); in TEST_F()
206 std::vector<std::pair<Cid, FixedChannelServiceImpl*>> results; in TEST_F() local
207 …ck_classic_fixed_channel_service_manager, GetRegisteredServices()).WillRepeatedly(Return(results)); in TEST_F()
241 std::vector<std::pair<Cid, FixedChannelServiceImpl*>> results; in TEST_F() local
242 results.emplace_back(kSmpBrCid, &mock_service_1); in TEST_F()
[all …]
Ddynamic_channel_service_manager_impl.cc70 std::vector<std::pair<Psm, DynamicChannelServiceImpl*>> results; in GetRegisteredServices() local
72 results.emplace_back(elem.first, &elem.second); in GetRegisteredServices()
74 return results; in GetRegisteredServices()
Dfixed_channel_service_manager_impl.cc72 std::vector<std::pair<Cid, FixedChannelServiceImpl*>> results; in GetRegisteredServices() local
74 results.emplace_back(elem.first, &elem.second); in GetRegisteredServices()
76 return results; in GetRegisteredServices()
/system/bt/gd/l2cap/le/internal/
Dlink_manager_test.cc113 std::vector<std::pair<Cid, FixedChannelServiceImpl*>> results; in TEST_F() local
114 results.emplace_back(kSmpBrCid, &mock_service_1); in TEST_F()
115 results.emplace_back(kConnectionlessCid, &mock_service_2); in TEST_F()
116 …LL(mock_le_fixed_channel_service_manager, GetRegisteredServices()).WillRepeatedly(Return(results)); in TEST_F()
177 results.emplace_back(kSmpBrCid + 1, &mock_service_3); in TEST_F()
178 …LL(mock_le_fixed_channel_service_manager, GetRegisteredServices()).WillRepeatedly(Return(results)); in TEST_F()
222 std::vector<std::pair<Cid, FixedChannelServiceImpl*>> results; in TEST_F() local
223 …LL(mock_le_fixed_channel_service_manager, GetRegisteredServices()).WillRepeatedly(Return(results)); in TEST_F()
260 std::vector<std::pair<Cid, FixedChannelServiceImpl*>> results; in TEST_F() local
261 results.emplace_back(kSmpBrCid, &mock_service_1); in TEST_F()
[all …]
Ddynamic_channel_service_manager_impl.cc68 std::vector<std::pair<Psm, DynamicChannelServiceImpl*>> results; in GetRegisteredServices() local
70 results.emplace_back(elem.first, &elem.second); in GetRegisteredServices()
72 return results; in GetRegisteredServices()
Dfixed_channel_service_manager_impl.cc72 std::vector<std::pair<Cid, FixedChannelServiceImpl*>> results; in GetRegisteredServices() local
74 results.emplace_back(elem.first, &elem.second); in GetRegisteredServices()
76 return results; in GetRegisteredServices()
/system/chre/apps/wifi_offload/include/chre/apps/wifi_offload/
Dscan_result_message.h38 void SetScanResults(const Vector<ScanResult> &results);
39 void GetScanResults(Vector<ScanResult> *results);
/system/chre/apps/test/common/proto/
Dchre_cross_validation_wifi.proto31 // the CHRE scan results size to be less than the AP scan results size.
40 // scan results threshold message is sent.
63 // The total number of results that will be sent from AP.
65 // The index of this result in relation to the entire set of results.
/system/chre/chpp/platform/linux/services/
Dplatform_wifi.c56 gSystemApi->memoryFree(CHPP_CONST_CAST_POINTER(event->results)); in wifiPalReleaseScanEvent()
68 gSystemApi->memoryFree(CHPP_CONST_CAST_POINTER(event->results)); in wifiPalReleaseRangingEvent()
/system/chre/chpp/clients/
Dwifi.c595 struct ChppWifiRangingResult *results = in chppWifiRangingEventNotification() local
596 (struct ChppWifiRangingResult *)&buf[event->results.offset]; in chppWifiRangingEventNotification()
599 results[i].timestamp - in chppWifiRangingEventNotification()
603 results[i].timestamp / CHPP_NSEC_PER_MSEC, in chppWifiRangingEventNotification()
605 results[i].timestamp = correctedTime; in chppWifiRangingEventNotification()
791 void *results = CHPP_CONST_CAST_POINTER(event->results); in chppWifiClientReleaseScanEvent() local
792 CHPP_FREE_AND_NULLIFY(results); in chppWifiClientReleaseScanEvent()
838 void *results = CHPP_CONST_CAST_POINTER(event->results); in chppWifiClientReleaseRangingEvent() local
839 CHPP_FREE_AND_NULLIFY(results); in chppWifiClientReleaseRangingEvent()
/system/chre/chpp/test/
Dwifi_convert_test.cpp124 EXPECT_EQ(chppEvent->results.offset, baseOffset); in validateScanEvent()
125 EXPECT_EQ(chppEvent->results.length, in validateScanEvent()
127 baseOffset += chppEvent->results.length; in validateScanEvent()
131 chppEvent->results.offset); in validateScanEvent()
134 validateScanResult(chppAp[i], chreEvent.results[i], /*decodeMode=*/false); in validateScanEvent()
135 validateScanResult(chppAp[i], backEvent->results[i], /*decodeMode=*/true); in validateScanEvent()
138 EXPECT_EQ(chppEvent->results.offset, 0); in validateScanEvent()
139 EXPECT_EQ(chppEvent->results.length, 0); in validateScanEvent()
355 .results = nullptr, in TEST()
392 .results = &chreAp, in TEST()
[all …]
/system/chre/apps/wifi_world/
Dwifi_world.cc240 (event->results[i].flags & in prepareRanging()
242 chreWifiRangingTargetFromScanResult(&event->results[i], in prepareRanging()
254 chreWifiRangingTargetFromScanResult(&event->results[0], in prepareRanging()
308 const chreWifiScanResult &result = event->results[i]; in handleWifiScanEvent()
326 logChreRangingResult(event->results[i]); in handleWifiRangingEvent()

12345