Home
last modified time | relevance | path

Searched refs:kCacheSize (Results 1 – 3 of 3) sorted by relevance

/frameworks/av/media/libstagefright/
DCallbackDataSource.cpp157 if (size >= kCacheSize) { in readAt()
162 const ssize_t numRead = mSource->readAt(offset, mCache, kCacheSize); in readAt()
169 if ((size_t)numRead > kCacheSize) { in readAt()
178 CHECK(mCachedSize <= kCacheSize && mCachedOffset >= 0); in readAt()
/frameworks/ml/nn/runtime/test/
DTestCompilationCaching.cpp69 static constexpr size_t kCacheSize = 256; member in __anondf3c1f010111::CachingDriver
104 mModelCacheData.resize(kCacheSize); in CachingDriver()
106 mDataCacheData.resize(kCacheSize); in CachingDriver()
194 EXPECT_EQ(write(handles[i]->data[0], cache.data(), kCacheSize), in writeToCache()
195 static_cast<ssize_t>(kCacheSize)); in writeToCache()
202 std::vector<uint8_t> actual(kCacheSize); in readFromCache()
203 EXPECT_EQ(read(handles[i]->data[0], actual.data(), kCacheSize), in readFromCache()
204 static_cast<ssize_t>(kCacheSize)); in readFromCache()
/frameworks/av/media/libstagefright/include/
DCallbackDataSource.h81 kCacheSize = 2048, enumerator
85 uint8_t mCache[kCacheSize];