Home
last modified time | relevance | path

Searched refs:numberOfCacheFiles (Results 1 – 4 of 4) sorted by relevance

/hardware/interfaces/neuralnetworks/aidl/utils/src/
DDevice.cpp103 NumberOfCacheFiles numberOfCacheFiles; in getNumberOfCacheFilesNeededFrom() local
104 const auto ret = device->getNumberOfCacheFilesNeeded(&numberOfCacheFiles); in getNumberOfCacheFilesNeededFrom()
107 if (numberOfCacheFiles.numDataCache < 0 || numberOfCacheFiles.numModelCache < 0) { in getNumberOfCacheFilesNeededFrom()
110 if (static_cast<uint32_t>(numberOfCacheFiles.numModelCache) > nn::kMaxNumberOfCacheFiles) { in getNumberOfCacheFilesNeededFrom()
113 << numberOfCacheFiles.numModelCache << " vs " in getNumberOfCacheFilesNeededFrom()
116 if (static_cast<uint32_t>(numberOfCacheFiles.numDataCache) > nn::kMaxNumberOfCacheFiles) { in getNumberOfCacheFilesNeededFrom()
119 << numberOfCacheFiles.numDataCache << " vs " << nn::kMaxNumberOfCacheFiles in getNumberOfCacheFilesNeededFrom()
122 return std::make_pair(numberOfCacheFiles.numModelCache, numberOfCacheFiles.numDataCache); in getNumberOfCacheFilesNeededFrom()
DInvalidDevice.cpp59 constexpr auto numberOfCacheFiles = NumberOfCacheFiles{ in create()
67 return ndk::SharedRefBase::make<InvalidDevice>(std::move(capabilities), numberOfCacheFiles, in create()
73 const NumberOfCacheFiles& numberOfCacheFiles, in InvalidDevice() argument
77 kNumberOfCacheFiles(numberOfCacheFiles), in InvalidDevice()
95 NumberOfCacheFiles* numberOfCacheFiles) { in getNumberOfCacheFilesNeeded() argument
96 *numberOfCacheFiles = kNumberOfCacheFiles; in getNumberOfCacheFilesNeeded()
/hardware/interfaces/neuralnetworks/aidl/utils/include/nnapi/hal/aidl/
DInvalidDevice.h34 InvalidDevice(Capabilities capabilities, const NumberOfCacheFiles& numberOfCacheFiles,
44 ndk::ScopedAStatus getNumberOfCacheFilesNeeded(NumberOfCacheFiles* numberOfCacheFiles) override;
/hardware/interfaces/neuralnetworks/aidl/utils/test/
DMockDevice.h39 (NumberOfCacheFiles * numberOfCacheFiles), (override));