Home
last modified time | relevance | path

Searched refs:feature (Results 1 – 25 of 71) sorted by relevance

123

/system/chre/apps/test/common/chre_settings_test/src/
Dchre_settings_test_manager.cc61 Manager::Feature *feature) { in getFeature() argument
63 switch (command.feature) { in getFeature()
65 *feature = Manager::Feature::WIFI_SCANNING; in getFeature()
68 *feature = Manager::Feature::WIFI_RTT; in getFeature()
71 *feature = Manager::Feature::GNSS_LOCATION; in getFeature()
74 *feature = Manager::Feature::GNSS_MEASUREMENT; in getFeature()
77 *feature = Manager::Feature::WWAN_CELL_INFO; in getFeature()
80 *feature = Manager::Feature::AUDIO; in getFeature()
83 *feature = Manager::Feature::BLE_SCANNING; in getFeature()
86 LOGE("Unknown feature %d", command.feature); in getFeature()
[all …]
/system/chre/apps/test/common/chre_settings_test/inc/
Dchre_settings_test_manager.h66 Feature feature; member
73 this->feature = currentFeature; in TestSession()
82 bool isFeatureSupported(Feature feature);
103 void handleStartTestMessage(uint16_t hostEndpointId, Feature feature,
121 bool startTestForFeature(Feature feature);
/system/extras/simpleperf/
Drecord_file.h93 bool WriteFeatureString(int feature, const std::string& s);
101 bool WriteFeature(int feature, const char* data, size_t size);
115 bool WriteFeatureBegin(int feature);
116 bool WriteFeatureEnd(int feature);
152 bool HasFeature(int feature) const { in HasFeature() argument
153 return feature_section_descriptors_.find(feature) != feature_section_descriptors_.end(); in HasFeature()
155 bool ReadFeatureSection(int feature, std::vector<char>* data);
156 bool ReadFeatureSection(int feature, std::string* data);
175 std::string ReadFeatureString(int feature);
Dcmd_dumprecord.cpp285 static const std::string GetFeatureNameOrUnknown(int feature) { in GetFeatureNameOrUnknown() argument
286 std::string name = GetFeatureName(feature); in GetFeatureNameOrUnknown()
287 return name.empty() ? android::base::StringPrintf("unknown_feature(%d)", feature) : name; in GetFeatureNameOrUnknown()
318 for (auto& feature : features) { in DumpFileHeader() local
319 printf("feature: %s\n", GetFeatureNameOrUnknown(feature).c_str()); in DumpFileHeader()
506 int feature = pair.first; in DumpFeatureSection() local
509 GetFeatureNameOrUnknown(feature).c_str(), section.offset, section.size); in DumpFeatureSection()
510 if (feature == FEAT_BUILD_ID) { in DumpFeatureSection()
515 } else if (feature == FEAT_OSRELEASE) { in DumpFeatureSection()
516 std::string s = record_file_reader_->ReadFeatureString(feature); in DumpFeatureSection()
[all …]
Dcmd_merge.cpp330 for (int feature : features) { in MergeFeatureSection() local
331 if (feature == PerfFileFormat::FEAT_OSRELEASE || feature == PerfFileFormat::FEAT_ARCH || in MergeFeatureSection()
332 feature == PerfFileFormat::FEAT_BRANCH_STACK || in MergeFeatureSection()
333 feature == PerfFileFormat::FEAT_META_INFO || feature == PerfFileFormat::FEAT_CMDLINE) { in MergeFeatureSection()
335 if (!readers_[0]->ReadFeatureSection(feature, &data) || in MergeFeatureSection()
336 !writer_->WriteFeature(feature, data.data(), data.size())) { in MergeFeatureSection()
339 } else if (feature == PerfFileFormat::FEAT_BUILD_ID) { in MergeFeatureSection()
341 } else if (feature == PerfFileFormat::FEAT_FILE || feature == PerfFileFormat::FEAT_FILE2) { in MergeFeatureSection()
344 LOG(WARNING) << "Drop feature " << feature << ", which isn't supported in the merge cmd."; in MergeFeatureSection()
Drecord_file_writer.cpp288 bool RecordFileWriter::WriteFeatureString(int feature, const std::string& s) { in WriteFeatureString() argument
289 if (!WriteFeatureBegin(feature)) { in WriteFeatureString()
295 return WriteFeatureEnd(feature); in WriteFeatureString()
438 bool RecordFileWriter::WriteFeature(int feature, const char* data, size_t size) { in WriteFeature() argument
439 return WriteFeatureBegin(feature) && Write(data, size) && WriteFeatureEnd(feature); in WriteFeature()
442 bool RecordFileWriter::WriteFeatureBegin(int feature) { in WriteFeatureBegin() argument
443 auto it = features_.find(feature); in WriteFeatureBegin()
446 auto& sec = features_[feature]; in WriteFeatureBegin()
455 bool RecordFileWriter::WriteFeatureEnd(int feature) { in WriteFeatureEnd() argument
456 auto it = features_.find(feature); in WriteFeatureEnd()
Dcmd_debug_unwind.cpp434 DebugUnwindFeature feature; in WriteFeatureSections() local
438 feature.resize(feature.size() + 1); in WriteFeatureSections()
439 feature.back().path = file_p.first; in WriteFeatureSections()
440 feature.back().size = file_p.second.size; in WriteFeatureSections()
446 if (!writer_->WriteDebugUnwindFeature(feature)) { in WriteFeatureSections()
Drecord_file_reader.cpp419 bool RecordFileReader::ReadFeatureSection(int feature, std::vector<char>* data) { in ReadFeatureSection() argument
421 auto it = section_map.find(feature); in ReadFeatureSection()
436 bool RecordFileReader::ReadFeatureSection(int feature, std::string* data) { in ReadFeatureSection() argument
438 auto it = section_map.find(feature); in ReadFeatureSection()
506 std::string RecordFileReader::ReadFeatureString(int feature) { in ReadFeatureString() argument
508 if (!ReadFeatureSection(feature, &buf)) { in ReadFeatureString()
/system/chre/apps/test/common/proto/
Dchre_settings_test.proto38 // The state of this feature at the system level.
55 // The feature to test.
56 optional Feature feature = 1; field
58 // The feature state (e.g. enabled or disabled), only used if the test step is
Dchre_stress_test.proto24 // to verify that the scan monitoring feature is working.
61 // The feature to test.
62 optional Feature feature = 1; field
/system/chre/java/test/stress/src/com/google/android/chre/test/stress/
DContextHubStressTestExecutor.java198 for (ChreStressTest.TestCommand.Feature feature : features) { in runStressTest()
199 sendTestMessage(feature, true /* start */); in runStressTest()
208 for (ChreStressTest.TestCommand.Feature feature : features) { in runStressTest()
209 sendTestMessage(feature, false /* start */); in runStressTest()
322 private void sendTestMessage(ChreStressTest.TestCommand.Feature feature, boolean start) { in sendTestMessage() argument
324 .setFeature(feature).setStart(start).build(); in sendTestMessage()
/system/security/keystore2/src/
Dwatchdog_helper.rs18 #[cfg(feature = "watchdog")]
58 #[cfg(not(feature = "watchdog"))]
/system/chre/java/test/settings/src/com/google/android/chre/test/setting/
DContextHubMicDisableSettingsTestExecutor.java90 private void runTest(ChreSettingsTest.TestCommand.Feature feature, boolean enableFeature) in runTest() argument
95 mExecutor.startTestAssertSuccess(feature, state); in runTest()
DContextHubSettingsTestExecutor.java141 public void setupTestAssertSuccess(ChreSettingsTest.TestCommand.Feature feature) in setupTestAssertSuccess() argument
149 .setFeature(feature) in setupTestAssertSuccess()
172 ChreSettingsTest.TestCommand.Feature feature, in startTestAssertSuccess() argument
178 .setFeature(feature).setState(state).build(); in startTestAssertSuccess()
DContextHubGnssSettingsTestExecutor.java74 private void runTest(ChreSettingsTest.TestCommand.Feature feature, boolean enableFeature) in runTest() argument
81 mExecutor.startTestAssertSuccess(feature, state); in runTest()
/system/extras/profcollectd/libprofcollectd/
Dtrace_provider.rs28 #[cfg(feature = "test")]
50 #[cfg(feature = "test")] in get_trace_provider()
Dlib.rs27 #[cfg(feature = "test")]
130 if cfg!(feature = "test") { log::LevelFilter::Info } else { log::LevelFilter::Error }; in init_logging()
/system/sepolicy/flagging/
Dte_macros3 # SELinux rules which apply only if given feature is turned on
8 # SELinux rules which apply only if given feature is turned off
/system/chre/doc/
Dporting_guide.md78 functionality until the full desired feature set is achieved. An existing
83 feature that the platform provides. These are selectively compiled into the
115 desired optional feature areas, like sensors (potentially via their respective
151 CHRE provides groups of functionality called *feature areas* which are
153 support a desired nanoapp. CHRE feature areas include sensors, GNSS, audio, and
157 the available feature areas, and they can instead be disabled if they won’t be
166 Each feature area includes one or more `Platform<Module>` classes which the
190 If a feature area is not supported, setting the make variable
192 inclusion of common code for that feature area. Note that it must still be
227 calling into the vendor's closed source code in _pal/<feature>.h_. These
[all …]
/system/core/fs_mgr/tests/
Dvts_fs_test.cpp36 bool DeviceSupportsFeature(const char* feature) { in DeviceSupportsFeature() argument
43 if (strstr(line, feature)) { in DeviceSupportsFeature()
/system/sepolicy/public/
Dephemeral_app.te5 ### feature.
/system/core/init/
Dueventd_parser.cpp138 Result<void> ParseEnabledDisabledLine(std::vector<std::string>&& args, bool* feature) { in ParseEnabledDisabledLine() argument
144 *feature = true; in ParseEnabledDisabledLine()
146 *feature = false; in ParseEnabledDisabledLine()
/system/sepolicy/private/
Dbpfdomain.te18 # however this feels like a kernel bug / missing feature,
/system/chre/apps/nearby/location/lbs/contexthub/nanoapps/nearby/
DREADME11 Applications can use this feature through Nearby Presence AOSP system API.
/system/core/trusty/confirmationui/
DREADME8 Confirmation feature when integrated into a secure UI architecture.

123