Home
last modified time | relevance | path

Searched refs:getOrCreate (Results 1 – 25 of 35) sorted by relevance

12

/frameworks/minikin/tests/unittest/
DLayoutCacheTest.cpp61 layoutCache.getOrCreate(text, range, paint, false /* LTR */, StartHyphenEdit::NO_EDIT, in TEST()
65 layoutCache.getOrCreate(text, range, paint, false /* LTR */, StartHyphenEdit::NO_EDIT, in TEST()
83 layoutCache.getOrCreate(text1, Range(0, text1.size()), paint, false /* LTR */, in TEST()
85 layoutCache.getOrCreate(text2, Range(0, text2.size()), paint, false /* LTR */, in TEST()
91 layoutCache.getOrCreate(text1, Range(0, text1.size()), paint, false /* LTR */, in TEST()
93 layoutCache.getOrCreate(text1, Range(1, text1.size()), paint, false /* LTR */, in TEST()
99 layoutCache.getOrCreate(text1, Range(0, text1.size()), paint, false /* LTR */, in TEST()
101 layoutCache.getOrCreate(text2, Range(0, text2.size()), paint, false /* LTR */, in TEST()
107 layoutCache.getOrCreate(text1, Range(0, text1.size()), paint, false /* LTR */, in TEST()
109 layoutCache.getOrCreate(text1, Range(0, text1.size()), paint, true /* RTL */, in TEST()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/log/table/
DTableLogBufferFactoryTest.kt54 val b1 = underTest.getOrCreate(NAME_1, SIZE) in getOrCreate_reusesInstance()
55 val b1_copy = underTest.getOrCreate(NAME_1, SIZE) in getOrCreate_reusesInstance()
56 val b2 = underTest.getOrCreate(NAME_2, SIZE) in getOrCreate_reusesInstance()
57 val b2_copy = underTest.getOrCreate(NAME_2, SIZE) in getOrCreate_reusesInstance()
/frameworks/minikin/libs/minikin/
DMeasuredText.cpp76 LayoutCache::getInstance().getOrCreate( in getMetrics()
81 precomputed->getOrCreate(textBuf, piece, context, mPaint, info.isRtl, in getMetrics()
112 layoutCache.getOrCreate(textBuf.substr(context), piece - context.getStart(), mPaint, in measureText()
162 LayoutCache::getInstance().getOrCreate( in measureHyphenPiece()
248 pieces.getOrCreate(textBuf, piece, context, mPaint, info.isRtl, startEdit, endEdit, in appendLayout()
251 LayoutCache::getInstance().getOrCreate( in appendLayout()
285 pieces.getOrCreate(textBuf, piece, context, mPaint, info.isRtl, in getBounds()
316 pieces.getOrCreate(textBuf, piece, context, mPaint, info.isRtl, in getExtent()
346 pieces.getOrCreate(textBuf, piece, context, mPaint, info.isRtl, in getLineMetrics()
DMeasurement.cpp218 LayoutCache::getInstance().getOrCreate( in getBounds()
245 LayoutCache::getInstance().getOrCreate(textBuf.substr(context), in getFontExtent()
DLayout.cpp327 LayoutCache::getInstance().getOrCreate(textBuf, range, paint, isRtl, startHyphen, endHyphen, in doLayoutWord()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/desktopmode/
DDesktopModeTaskRepository.kt72 fun getOrCreate(displayId: Int): DisplayData { in <lambda>() method
140 val added = displayData.getOrCreate(displayId).activeTasks.add(taskId) in <lambda>()
258 displayData.getOrCreate(displayId).visibleTasks.add(taskId) in <lambda>()
311 displayData.getOrCreate(displayId).freeformTasksInZOrder.add(0, taskId) in <lambda>()
322 displayData.getOrCreate(displayId).minimizedTasks.add(taskId) in <lambda>()
/frameworks/base/services/core/java/com/android/server/inputmethod/
DUserDataRepository.java40 UserData getOrCreate(@UserIdInt int userId) { in getOrCreate() method in UserDataRepository
76 getOrCreate(userId); in UserDataRepository()
/frameworks/minikin/include/minikin/
DLayoutPieces.h93 void getOrCreate(const U16StringPiece& textBuf, const Range& range, const Range& context, in getOrCreate() function
109 LayoutCache::getInstance().getOrCreate(textBuf.substr(context), range - context.getStart(), in getOrCreate()
DLayoutCache.h161 void getOrCreate(const U16StringPiece& text, const Range& range, const MinikinPaint& paint, in getOrCreate() function
/frameworks/base/packages/SystemUI/compose/core/src/com/android/compose/windowsizeclass/
DWindowSizeClass.kt44 val metrics = WindowMetricsCalculator.getOrCreate().computeCurrentWindowMetrics(context) in calculateWindowSizeClass()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/fold/ui/composable/
DFoldPosture.kt34 val infoTracker = remember(context) { WindowInfoTracker.getOrCreate(context) } in foldPosture()
/frameworks/base/packages/SystemUI/src/com/android/systemui/log/table/
DTableLogBufferFactory.kt77 fun getOrCreate( in getOrCreate() method
/frameworks/base/sax/java/android/sax/
DChildren.java30 Element getOrCreate(Element parent, String uri, String localName) { in getOrCreate() method in Children
DElement.java74 return children.getOrCreate(this, uri, localName); in getChild()
/frameworks/base/services/tests/InputMethodSystemServerTests/src/com/android/server/inputmethod/
DUserDataRepositoryTest.java134 final var userData = repository.getOrCreate(ANY_USER_ID); in testGetOrCreate()
/frameworks/base/core/java/com/android/internal/pm/pkg/component/
DParsedPermissionImpl.java45 Parcelling.Cache.getOrCreate(ForStringSet.class);
/frameworks/base/services/core/java/com/android/server/utils/quota/
DUptcMap.java103 public T getOrCreate(int userId, @NonNull String packageName, @Nullable String tag, in getOrCreate() method in UptcMap
DCountQuotaTracker.java190 .getOrCreate(userId, packageName, tag, mCreateLongArrayQueue); in noteEvent()
385 mExecutionStatsCache.getOrCreate(userId, packageName, tag, mCreateExecutionStats); in getExecutionStatsLocked()
/frameworks/base/core/java/com/android/internal/util/
DParcelling.java84 public static <P extends Parcelling<?>> P getOrCreate(Class<P> clazz) { in getOrCreate() method in Parcelling.Cache
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/mobile/data/repository/demo/
DDemoMobileConnectionsRepository.kt193 logFactory.getOrCreate( in <lambda>()
/frameworks/base/core/java/android/content/pm/
DPermissionInfo.java497 Parcelling.Cache.getOrCreate(ForStringSet.class);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/mobile/data/repository/prod/
DFullMobileConnectionRepository.kt408 logFactory.getOrCreate(tableBufferLogName(subId), MOBILE_CONNECTION_BUFFER_SIZE) in <lambda>()
/frameworks/base/core/java/com/android/internal/pm/parsing/pkg/
DPackageImpl.java117 public static final Parcelling.BuiltIn.ForBoolean sForBoolean = Parcelling.Cache.getOrCreate(
119 public static final ForInternedString sForInternedString = Parcelling.Cache.getOrCreate(
122 Parcelling.Cache.getOrCreate(Parcelling.BuiltIn.ForInternedStringArray.class);
124 Parcelling.Cache.getOrCreate(Parcelling.BuiltIn.ForInternedStringList.class);
126 Parcelling.Cache.getOrCreate(Parcelling.BuiltIn.ForInternedStringValueMap.class);
128 Parcelling.Cache.getOrCreate(Parcelling.BuiltIn.ForStringSet.class);
130 Parcelling.Cache.getOrCreate(Parcelling.BuiltIn.ForInternedStringSet.class);
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/mobile/data/repository/prod/
DMobileConnectionsRepositoryTest.kt161 whenever(logBufferFactory.getOrCreate(anyString(), anyInt())).thenAnswer { _ -> in <lambda>()
793 .getOrCreate( in <lambda>()
799 .getOrCreate( in <lambda>()
/frameworks/base/core/java/com/android/internal/os/
DBinderCallsStats.java320 final CallStat callStat = uidEntry.getOrCreate( in processCallEnded()
1052 CallStat getOrCreate(int callingUid, Class<? extends Binder> binderClass, in getOrCreate() method in BinderCallsStats.UidEntry

12