Home
last modified time | relevance | path

Searched refs:driver (Results 1 – 25 of 68) sorted by relevance

123

/packages/modules/DnsResolver/doh/connection/
Ddriver.rs147 driver: Driver, field
331 fn new(driver: Driver, h3_conn: h3::Connection) -> Self { in new()
333 driver, in new()
342 let _ = self.driver.status_tx.send(Status::H3); in drive()
345 let session = self.driver.quiche_conn.session().map(<[_]>::to_vec); in drive()
346 let _ = self.driver.status_tx.send(Status::Dead { session }); in drive()
355 let timer = optional_timeout(self.driver.quiche_conn.timeout(), self.driver.net_id); in drive_once()
360 self.driver.flush_tx().await?; in drive_once()
366 …msg = self.driver.request_rx.recv(), if !self.driver.closing && self.buffered_request.is_none() =>… in drive_once()
374 info!("H3Driver: Timer expired on network {}", self.driver.net_id); in drive_once()
[all …]
Dmod.rs19 use crate::connection::driver::Cause;
20 use crate::connection::driver::HandshakeInfo;
33 pub mod driver; module
35 pub use driver::Stream;
36 use driver::{drive, Request};
171 let driver = async move { in new() localVariable
179 task::spawn(driver); in new()
/packages/modules/NeuralNetworks/runtime/test/
DTestCompilationCaching.cpp376 void compileModel(const sp<CachingDriver>& driver, bool withToken) { in compileModel() argument
377 DeviceManager::get()->forTest_registerDevice(makeSharedDevice(kDeviceName.data(), driver)); in compileModel()
403 sp<CachingDriver> driver = in createCache() local
406 compileModel(driver, /*withToken=*/true); in createCache()
423 sp<CachingDriver> driver = in TEST_P() local
426 compileModel(driver, /*withToken=*/true); in TEST_P()
429 EXPECT_FALSE(driver->hasCalledPrepareModelFromCache()); in TEST_P()
432 EXPECT_EQ(driver->hasCalledPrepareModel(), kIsCachingSupported in TEST_P()
442 sp<CachingDriver> driver = in TEST_P() local
445 compileModel(driver, /*withToken=*/true); in TEST_P()
[all …]
DHalUtils.h43 inline SharedDevice makeSharedDevice(std::string name, sp<V1_0::IDevice> driver) { in makeSharedDevice() argument
52 if (auto driver13 = V1_3::IDevice::castFrom(driver).withDefault(nullptr); driver13 != nullptr) { in makeSharedDevice()
55 if (auto driver12 = V1_2::IDevice::castFrom(driver).withDefault(nullptr); driver12 != nullptr) { in makeSharedDevice()
58 if (auto driver11 = V1_1::IDevice::castFrom(driver).withDefault(nullptr); driver11 != nullptr) { in makeSharedDevice()
61 return handleError(V1_0::utils::Device::create(std::move(name), std::move(driver))); in makeSharedDevice()
/packages/modules/DnsResolver/doh/network/
Dmod.rs31 mod driver; module
33 use driver::{Command, Driver};
35 pub use driver::Status;
82 let (driver, command_tx, status_rx) = in new()
84 task::spawn(driver.drive()); in new()
/packages/modules/NeuralNetworks/runtime/test/android_fuzzing/
DREADME.md34 library) and `libneuralnetworks_driver_fuzzer` which tests an in-process driver
35 at the NNAPI HAL layer (the sample driver, unless the test is modified to do
65 ### Modifying `libneuralnetworks_driver_fuzzer` to test custom driver
68 driver. In the section `“TODO: INSERT CUSTOM DEVICE HERE”`, replace
69 `“std::make_shared<const sample::Device>("example-driver")”` ([link][5]) with
70 your own driver.
72 This code employs an in-process driver (as opposed to retrieving it on the
74 faster because it does not need to communicate with the driver via IPC because
75 the driver is created in the same process. Second, it ensures that the
76 `libFuzzer` can use the coverage from the driver to guide the test
[all …]
/packages/modules/NeuralNetworks/driver/sample_hidl/
DSampleDriverAll.cpp33 const auto driver = sp<SampleDriverFull>::make(name.c_str(), perf); in main() local
34 return run(driver, name); in main()
DSampleDriverUtils.h57 V1_3::ErrorStatus prepareModelBase(const T_Model& model, const SampleDriver* driver,
87 std::thread([model, driver, preference, userId, priority, callback] {
89 new SamplePreparedModel(convertToV1_3(model), driver, preference, userId, priority);
DSampleDriver.cpp371 createRunTimePoolInfos(const V1_3::Request& request, const SampleDriver& driver, in createRunTimePoolInfos() argument
391 auto bufferWrapper = driver.getHalBufferTracker()->get(pool.token()); in createRunTimePoolInfos()
450 const V1_3::Model& model, const SampleDriver& driver, in asyncExecute() argument
459 createRunTimePoolInfos(request, driver, preparedModel); in asyncExecute()
467 CpuExecutor executor = driver.getExecutor(); in asyncExecute()
506 const V1_3::Model& model, const SampleDriver& driver, in executeBase() argument
534 std::thread([&model, &driver, preparedModel, &poolInfos, request, measure, driverStart, in executeBase()
536 asyncExecute(request, measure, driverStart, model, driver, preparedModel, poolInfos, in executeBase()
570 const V1_3::Model& model, const SampleDriver& driver, in executeSynchronouslyBase() argument
593 createRunTimePoolInfos(request, driver, preparedModel); in executeSynchronouslyBase()
[all …]
/packages/modules/NeuralNetworks/driver/sample_aidl/
DSampleDriverAidlAll.cpp32 const std::shared_ptr<SampleDriverFull> driver = in main() local
34 return run(driver, name); in main()
DSampleDriverAidlUtils.cpp84 aidl_hal::Model&& model, const SampleDriver* driver, in prepareModelBase() argument
139 [driver, preference, userId, priority, callback](aidl_hal::Model&& model) { in prepareModelBase()
141 ndk::SharedRefBase::make<SamplePreparedModel>(std::move(model), driver, in prepareModelBase()
DAndroid.bp94 // packages/modules/NeuralNetworks/driver/sample/Android.bp.
98 // packages/modules/NeuralNetworks/driver/sample_shim/Android.bp.
DSampleDriverAidlUtils.h42 aidl_hal::Model&& model, const SampleDriver* driver,
/packages/modules/Virtualization/android/virtualizationservice/vfio_handler/src/
Daidl.rs202 fn try_bind_driver(path: &Path, driver: &str) -> binder::Result<()> { in try_bind_driver()
203 if Some(driver) == current_driver(path).as_deref() { in try_bind_driver()
228 write(path.join("driver_override"), driver.as_bytes()) in try_bind_driver()
238 if new_driver.is_none() || Some(driver) != new_driver.as_deref() && driver != DEFAULT_DRIVER { in try_bind_driver()
/packages/modules/NeuralNetworks/extensions/
DREADME.md28 an app directly using the NNAPI driver HAL interface.
84 another extension, the driver must support the other extension.
157 ## Adding extension support to an NNAPI driver
186 When handling an operation or operand type, the driver must check the extension
196 The driver must validate extension operations and data types because the NNAPI
208 device manufacturers to provide custom, driver-specific functionality. These
/packages/modules/DnsResolver/doh/
Dmetrics.rs17 use crate::connection::driver::Cause;
18 use crate::connection::driver::HandshakeInfo;
19 use crate::connection::driver::HandshakeResult;
/packages/modules/Permission/SafetyCenter/ConfigLintChecker/java/android/safetycenter/lint/
DParserExceptionDetector.kt73 context.driver.requestRepeat(this, Scope.OTHER_SCOPE) in afterCheckEachProject()
88 context.driver.phase != STRING_MAP_BUILD_PHASE || in visitElement()
118 context.driver.phase != CONFIG_PARSE_PHASE || in run()
/packages/modules/NeuralNetworks/tools/systrace_parser/
Dcontract-between-code-and-parser.txt146 … t10: t_m_w:E|T1 stub code. For the driver side, the
161 … process from the driver process (used for
163 … fallback from sample driver).
168 … Note: the driver-side HIDL traces get us
170 … With a different driver threading model
174 … TODO: attribute driver process IPC call
/packages/modules/NeuralNetworks/driver/sample/
DAndroid.bp84 // is used as a prebuilt in packages/modules/NeuralNetworks/driver/sample_shim/.
86 // To see an example where the driver code is available as a vendor service
89 // packages/modules/NeuralNetworks/driver/sample_aidl/Android.bp.
/packages/modules/DnsResolver/doh/dispatcher/
Dmod.rs28 mod driver; module
29 use driver::Driver;
/packages/services/Car/car-lib/src/android/car/navigation/
Dnavigation_state.proto92 // provided. If empty, the distance shouldn’t be displayed to the driver.
109 // Information about a maneuver that the driver will be required to perform.
396 // For example, if the driver is joining a counter-clockwise roundabout
399 // and the one used by the driver to join the roundabout would be exit #4.
436 // navigation. It describes all possible directions the driver could go
437 // from this lane, and indicates which directions the driver could take
440 // One of the possible directions a driver can go when using a particular
482 // True if this is a valid direction the driver can take in order to stay
488 // The possible directions a driver can take from this lane.
546 // An action that the driver should take in order to remain on the current
[all …]
/packages/modules/NeuralNetworks/
DREADME.txt27 ./sample_driver: Sample driver that uses the CPU to execute queries.
32 e.g. runtime, driver, or tests. Includes source code and
/packages/modules/NeuralNetworks/driver/sample_shim/
DAndroid.bp110 // To see an example where the driver code is available as a vendor service
113 // packages/modules/NeuralNetworks/driver/sample_aidl/Android.bp.
Dgenerate_prebuilts.sh34 …TARGETDIR=packages/modules/NeuralNetworks/driver/sample_shim/android_${arch}/neuralnetworks_sample…
/packages/modules/Virtualization/libs/libvmbase/
DREADME.md12 - A UART driver and `println!` macro for early console logging.
65 vmbase adds a wrapper around your main function to initialize the console driver first (with the
91 of the UART driver which might be locked when the exception happens, which would result in deadlock.

123