Home
last modified time | relevance | path

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

123

/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/NeuralNetworks/runtime/test/android_fuzzing/
DREADME.md16 library) and `libneuralnetworks_driver_fuzzer` which tests an in-process driver
17 at the NNAPI HAL layer (the sample driver, unless the test is modified to do
47 ### Modifying `libneuralnetworks_driver_fuzzer` to test custom driver
50 driver. In the section `“TODO: INSERT CUSTOM DEVICE HERE”`, replace
52 driver.
54 This code employs an in-process driver (as opposed to retrieving it on the
56 faster because it does not need to communicate with the driver via IPC because
57 the driver is created in the same process. Second, it ensures that the
58 `libFuzzer` can use the coverage from the driver to guide the test
62 The current version of the test assumes a 1.3 driver and uses the methods
[all …]
/packages/services/Car/cpp/evs/sampleDriver/sepolicy/private/
Devs_driver.te1 # evs reference hardware driver service
22 # Allow the driver to access kobject uevents
25 # Allow the driver to use automotive display proxy service
/packages/modules/NeuralNetworks/driver/sample/
DSampleDriver.cpp382 createRunTimePoolInfos(const V1_3::Request& request, const SampleDriver& driver, in createRunTimePoolInfos() argument
402 auto bufferWrapper = driver.getHalBufferTracker()->get(pool.token()); in createRunTimePoolInfos()
461 const V1_3::Model& model, const SampleDriver& driver, in asyncExecute() argument
470 createRunTimePoolInfos(request, driver, preparedModel); in asyncExecute()
478 CpuExecutor executor = driver.getExecutor(); in asyncExecute()
517 const V1_3::Model& model, const SampleDriver& driver, in executeBase() argument
545 std::thread([&model, &driver, preparedModel, &poolInfos, request, measure, driverStart, in executeBase()
547 asyncExecute(request, measure, driverStart, model, driver, preparedModel, poolInfos, in executeBase()
581 const V1_3::Model& model, const SampleDriver& driver, in executeSynchronouslyBase() argument
604 createRunTimePoolInfos(request, driver, preparedModel); in executeSynchronouslyBase()
[all …]
DSampleDriverUtils.h50 V1_3::ErrorStatus prepareModelBase(const T_Model& model, const SampleDriver* driver,
80 std::thread([model, driver, preference, userId, priority, callback] {
82 new SamplePreparedModel(convertToV1_3(model), driver, preference, userId, priority);
DSampleDriverAll.cpp27 sp<SampleDriverFull> driver( in main() local
29 return driver->run(); in main()
DSampleDriverFloatSlow.cpp83 sp<SampleDriverFloatSlow> driver(new SampleDriverFloatSlow()); in main() local
84 return driver->run(); in main()
DSampleDriverFloatFast.cpp83 sp<SampleDriverFloatFast> driver(new SampleDriverFloatFast()); in main() local
84 return driver->run(); in main()
DSampleDriverQuant.cpp87 sp<SampleDriverQuant> driver(new SampleDriverQuant()); in main() local
88 return driver->run(); in main()
DSampleDriverMinimal.cpp93 sp<SampleDriverMinimal> driver(new SampleDriverMinimal()); in main() local
94 return driver->run(); in main()
DSampleDriver.h133 SamplePreparedModel(const V1_3::Model& model, const SampleDriver* driver, in SamplePreparedModel() argument
136 mDriver(driver), in SamplePreparedModel()
/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/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_aidl/
DSampleDriverUtils.cpp64 aidl_hal::Model&& model, const SampleDriver* driver, in prepareModelBase() argument
119 [driver, preference, userId, priority, callback](aidl_hal::Model&& model) { in prepareModelBase()
121 ndk::SharedRefBase::make<SamplePreparedModel>(std::move(model), driver, in prepareModelBase()
DSampleDriverAll.cpp30 std::shared_ptr<SampleDriverFull> driver = in main() local
32 return driver->run(); in main()
DSampleDriverMinimal.cpp91 std::shared_ptr<SampleDriverMinimal> driver = ndk::SharedRefBase::make<SampleDriverMinimal>(); in main() local
92 return driver->run(); in main()
DSampleDriverFloatSlow.cpp81 std::shared_ptr<SampleDriverFloatSlow> driver = in main() local
83 return driver->run(); in main()
DSampleDriverFloatFast.cpp82 std::shared_ptr<SampleDriverFloatFast> driver = in main() local
84 return driver->run(); in main()
DSampleDriverQuant.cpp85 std::shared_ptr<SampleDriverQuant> driver = ndk::SharedRefBase::make<SampleDriverQuant>(); in main() local
86 return driver->run(); in main()
DSampleDriver.h107 SamplePreparedModel(aidl_hal::Model&& model, const SampleDriver* driver, in SamplePreparedModel() argument
111 mDriver(driver), in SamplePreparedModel()
/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.
333 // For example, if the driver is joining a counter-clockwise roundabout
336 // and the one used by the driver to join the roundabout would be exit #4.
345 // navigation. It describes all possible directions the driver could go
346 // from this lane, and indicates which directions the driver could take
349 // One of the possible directions a driver can go when using a particular
391 // True if this is a valid direction the driver can take in order to stay
397 // The possible directions a driver can take from this lane.
455 // 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/tools/api/
DNeuralNetworksTypes.t126 * NNAPI feature level corrseponds to an NNAPI specification version that a driver
237 * Failure because of a resource limitation within the driver, but future
245 * Failure because of a resource limitation within the driver, and future
286 // Execution time on hardware (not driver, which runs on host processor).
288 // Execution time in driver (including time on hardware). Excludes overhead
290 // communicate with the driver.
298 // Execution time in driver, after all dependencies have been signaled. Excludes
300 // to communicate with the driver.
547 * lifetime of a rapid sequence of executions. For example, a driver may choose
/packages/services/Car/cpp/evs/sampleDriver/sepolicy/public/
Devs_driver.te1 # reference evs hardware driver service

123