Home
last modified time | relevance | path

Searched refs:mStringCache (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/usage/java/com/android/server/usage/
DIntervalStats.java39 private final ArraySet<String> mStringCache = new ArraySet<>(); field in IntervalStats
142 final int index = mStringCache.indexOf(str); in getCachedStringRef()
144 mStringCache.add(str); in getCachedStringRef()
147 return mStringCache.valueAt(index); in getCachedStringRef()
/frameworks/av/media/ndk/
DNdkMediaFormat.cpp39 KeyedVector<String8, String8> mStringCache; member
186 for (size_t i = 0; i < mData->mStringCache.size(); i++) { in AMediaFormat_getString()
187 if (strcmp(mData->mStringCache.keyAt(i).string(), name) == 0) { in AMediaFormat_getString()
188 mData->mStringCache.removeItemsAt(i, 1); in AMediaFormat_getString()
196 mData->mStringCache.add(String8(name), ret); in AMediaFormat_getString()