Home
last modified time | relevance | path

Searched refs:KEY_PACKAGE_NAME (Results 1 – 16 of 16) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/
DBatteryDiffEntryTest.java258 values.put(BatteryHistEntry.KEY_PACKAGE_NAME, fakePackageName); in testGetAppLabel_loadDataFromApplicationInfo()
450 values.put(BatteryHistEntry.KEY_PACKAGE_NAME, PACKAGE_NAME); in testIsUninstalledEntry_installedApp_returnFalse()
465 values.put(BatteryHistEntry.KEY_PACKAGE_NAME, PACKAGE_NAME); in testIsUninstalledEntry_uidZero_returnFalse()
479 values.put(BatteryHistEntry.KEY_PACKAGE_NAME, UNINSTALLED_PACKAGE_NAME); in testIsUninstalledEntry_uninstalledApp_returnTrue()
497 values.put(BatteryHistEntry.KEY_PACKAGE_NAME, fakePackageName); in testUpdateRestrictionFlagState_updateFlagAsExpected()
531 values.put(BatteryHistEntry.KEY_PACKAGE_NAME, expectedPackageName); in testGetPackageName_returnExpectedResult()
542 values.put(BatteryHistEntry.KEY_PACKAGE_NAME, expectedPackageName + ":privileged_process0"); in testGetPackageName_withProcessName_returnExpectedResult()
606 values.put(BatteryHistEntry.KEY_PACKAGE_NAME, "com.a.b.c"); in createBatteryDiffEntry()
DConvertUtilsTest.java118 assertThat(values.getAsString(BatteryHistEntry.KEY_PACKAGE_NAME)) in convertBatteryEntryToContentValues_appEntry_returnsExpectedContentValues()
184 assertThat(values.getAsString(BatteryHistEntry.KEY_PACKAGE_NAME)).isEqualTo(""); in convertBatteryEntryToContentValues_systemEntry_returnsExpectedContentValues()
238 assertThat(values.getAsString(BatteryHistEntry.KEY_PACKAGE_NAME)) in convertBatteryEntryToContentValues_nullBatteryEntry_returnsExpectedContentValues()
260 assertThat(values.getAsString(AppUsageEventEntity.KEY_PACKAGE_NAME)) in convertAppUsageEventToContentValues_returnsExpectedContentValues()
494 AppUsageEventEntity.KEY_PACKAGE_NAME, in convertToAppUsageEvent_returnExpectedResult()
530 AppUsageEventEntity.KEY_PACKAGE_NAME, in convertToAppUsageEvent_emptyInstanceIdAndRootName_returnExpectedResult()
DDataProcessManagerTest.java146 AppUsageEventEntity.KEY_PACKAGE_NAME, in start_loadEmptyDatabaseAppUsageData()
211 AppUsageEventEntity.KEY_PACKAGE_NAME in start_loadExpectedAppUsageData()
331 AppUsageEventEntity.KEY_PACKAGE_NAME, in start_currentUserLocked_emptyAppUsageList()
DDatabaseUtilsTest.java315 AppUsageEventEntity.KEY_PACKAGE_NAME, in getAppUsageEventForUsers_emptyCursorContent_returnEmptyMap()
350 AppUsageEventEntity.KEY_PACKAGE_NAME, in getAppUsageEventForUsers_returnExpectedMap()
598 BatteryHistEntry.KEY_PACKAGE_NAME, in getMatrixCursor()
DBatteryUsageContentProviderTest.java301 values.put(BatteryHistEntry.KEY_PACKAGE_NAME, new String("com.android.settings")); in insert_batteryState_returnsExpectedResult()
337 values.put(BatteryHistEntry.KEY_PACKAGE_NAME, new String("fake_data")); in insert_partialFieldsContentValues_returnsExpectedResult()
361 values.put(AppUsageEventEntity.KEY_PACKAGE_NAME, "com.android.settings1"); in insert_appUsageEvent_returnsExpectedResult()
DBatteryDiffDataTest.java248 values.put(BatteryHistEntry.KEY_PACKAGE_NAME, packageName); in createBatteryHistEntry()
DBatteryHistEntryTest.java393 BatteryHistEntry.KEY_PACKAGE_NAME, in createBatteryHistEntry()
DDataProcessorTest.java2409 values.put(BatteryHistEntry.KEY_PACKAGE_NAME, packageName); in createBatteryHistEntry()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/db/
DAppUsageEventEntity.java39 public static final String KEY_PACKAGE_NAME = "packageName"; field in AppUsageEventEntity
125 if (contentValues.containsKey(KEY_PACKAGE_NAME)) { in create()
126 builder.setPackageName(contentValues.getAsString(KEY_PACKAGE_NAME)); in create()
/packages/services/Car/tests/carservice_unit_test/src/android/car/cluster/renderer/
DInstrumentClusterRenderingServiceTest.java20 import static android.app.ActivityOptions.KEY_PACKAGE_NAME;
351 activityOptionsBundle.putString(KEY_PACKAGE_NAME, "temp.pkg"); in startFixedActivityMode_callsClusterHelper()
368 .getString(KEY_PACKAGE_NAME)) in startFixedActivityMode_callsClusterHelper()
380 activityOptionsBundle.putString(KEY_PACKAGE_NAME, "temp.pkg"); in startFixedActivityMode_activityStateMissingInTheIntent()
396 .getString(KEY_PACKAGE_NAME)) in startFixedActivityMode_activityStateMissingInTheIntent()
409 activityOptionsBundle.putString(KEY_PACKAGE_NAME, "temp.pkg"); in startFixedActivityMode_clusterHelperFailure()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/
DBatteryHistEntry.java32 public static final String KEY_PACKAGE_NAME = "packageName"; field in BatteryHistEntry
73 mPackageName = getString(values, KEY_PACKAGE_NAME); in BatteryHistEntry()
103 mPackageName = getString(cursor, KEY_PACKAGE_NAME); in BatteryHistEntry()
DConvertUtils.java115 values.put(BatteryHistEntry.KEY_PACKAGE_NAME, packageName != null ? packageName : ""); in convertBatteryEntryToContentValues()
119 values.put(BatteryHistEntry.KEY_PACKAGE_NAME, FAKE_PACKAGE_NAME); in convertBatteryEntryToContentValues()
151 values.put(AppUsageEventEntity.KEY_PACKAGE_NAME, event.getPackageName()); in convertAppUsageEventToContentValues()
300 getStringFromCursor(cursor, AppUsageEventEntity.KEY_PACKAGE_NAME)); in convertToAppUsageEvent()
/packages/modules/Media/apex/framework/java/android/media/
DMediaConstants.java24 static final String KEY_PACKAGE_NAME = "android.media.key.PACKAGE_NAME"; field in MediaConstants
DMediaSession2Service.java20 import static android.media.MediaConstants.KEY_PACKAGE_NAME;
379 String callingPkg = connectionRequest.getString(KEY_PACKAGE_NAME); in connect()
DMediaController2.java21 import static android.media.MediaConstants.KEY_PACKAGE_NAME;
360 connectionRequest.putString(KEY_PACKAGE_NAME, mContext.getPackageName()); in createConnectionRequest()
DMediaSession2.java21 import static android.media.MediaConstants.KEY_PACKAGE_NAME;
357 String callingPkg = connectionRequest.getString(KEY_PACKAGE_NAME); in onConnect()