Home
last modified time | relevance | path

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

/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/storage/datatypehelpers/
DHealthDataCategoryPriorityHelperTest.java124 when(mAppInfoHelper.getOrInsertAppInfoId(eq(APP_PACKAGE_NAME), any())) in setUp()
126 when(mAppInfoHelper.getOrInsertAppInfoId(eq(APP_PACKAGE_NAME_2), any())) in setUp()
128 when(mAppInfoHelper.getOrInsertAppInfoId(eq(APP_PACKAGE_NAME_3), any())) in setUp()
130 when(mAppInfoHelper.getOrInsertAppInfoId(eq(APP_PACKAGE_NAME_4), any())) in setUp()
171 when(mAppInfoHelper.getOrInsertAppInfoId(any(), any())).thenReturn(APP_PACKAGE_ID); in testAppendToPriorityList_ifAppInList_doesNotAddToList()
187 when(mAppInfoHelper.getOrInsertAppInfoId(any(), any())).thenReturn(APP_PACKAGE_ID_4); in testAppendToPriorityList_activeDefaultApp_addsToTopOfList()
208 when(mAppInfoHelper.getOrInsertAppInfoId(any(), any())).thenReturn(APP_PACKAGE_ID_4); in testAppendToPriorityList_ifNonDefaultApp_addsToBottomOfList()
229 when(mAppInfoHelper.getOrInsertAppInfoId(any(), any())).thenReturn(APP_PACKAGE_ID_4); in testAppendToPriorityList_inactiveDefaultApp_addsToBottomOfList()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/
DHealthDataCategoryPriorityHelper.java116 long appInfoId = AppInfoHelper.getInstance().getOrInsertAppInfoId(packageName, context); in appendToPriorityList()
426 long appInfoId = appInfoHelper.getOrInsertAppInfoId(packageInfo.packageName, context); in reSyncHealthDataPriorityTable()
DAppInfoHelper.java279 public long getOrInsertAppInfoId(@NonNull String packageName, @NonNull Context context) { in getOrInsertAppInfoId() method in AppInfoHelper