Searched refs:UNKNOWN_UID (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/services/core/java/com/android/server/notification/ |
D | PreferencesHelper.java | 118 static final int UNKNOWN_UID = UserHandle.USER_NULL; field in PreferencesHelper 299 int uid = parser.getAttributeInt(null, ATT_UID, UNKNOWN_UID); in restorePackage() 310 if (upgradeForBubbles && uid != UNKNOWN_UID) { in restorePackage() 324 if (!forRestore && uid == UNKNOWN_UID) { in restorePackage() 390 int delegateId = parser.getAttributeInt(null, ATT_UID, UNKNOWN_UID); in restorePackage() 395 if (delegateId != UNKNOWN_UID && !TextUtils.isEmpty(delegateName)) { in restorePackage() 429 final boolean pkgInstalled = r.uid != UNKNOWN_UID; in restoreChannel() 497 r = (uid == UNKNOWN_UID) in getOrCreatePackagePreferencesLocked() 510 if (r.uid == UNKNOWN_UID) { in getOrCreatePackagePreferencesLocked() 521 if (r.uid == UNKNOWN_UID) { in getOrCreatePackagePreferencesLocked() [all …]
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | PreferencesHelperTest.java | 60 import static com.android.server.notification.PreferencesHelper.UNKNOWN_UID; 800 when(mPm.getPackageUidAsUser("pkg1", USER_SYSTEM)).thenReturn(UNKNOWN_UID); in testReadXml_oldXml_backup_migratesWhenPkgInstalled() 801 when(mPm.getPackageUidAsUser("pkg2", USER_SYSTEM)).thenReturn(UNKNOWN_UID); in testReadXml_oldXml_backup_migratesWhenPkgInstalled() 802 when(mPm.getPackageUidAsUser("pkg3", USER_SYSTEM)).thenReturn(UNKNOWN_UID); in testReadXml_oldXml_backup_migratesWhenPkgInstalled() 1051 when(mPm.getPackageUidAsUser("something", USER_SYSTEM)).thenReturn(UNKNOWN_UID); in testReadXml_oldXml_migration_NoUid() 1081 when(mPm.getPackageUidAsUser("something", USER_SYSTEM)).thenReturn(UNKNOWN_UID); in testReadXml_newXml_noMigration_NoUid() 1488 when(mPm.getPackageUidAsUser(PKG_N_MR1, USER_SYSTEM)).thenReturn(UNKNOWN_UID); in testRestoreXml_withNonExistentCanonicalizedSoundUriAndMissingPackage() 1496 PKG_N_MR1, UNKNOWN_UID, channel.getId(), false); in testRestoreXml_withNonExistentCanonicalizedSoundUriAndMissingPackage() 1518 when(mPm.getPackageUidAsUser(PKG_R, USER_SYSTEM)).thenReturn(UNKNOWN_UID); in testRestoreXml_delayedRestore() 1536 assertThat(mXmlHelper.getNotificationChannel(PKG_R, UNKNOWN_UID, id, false)).isNotNull(); in testRestoreXml_delayedRestore() [all …]
|
/frameworks/base/core/proto/android/service/ |
D | notification.proto | 138 // Default value is UNKNOWN_UID = USER_NULL = -10000.
|
/frameworks/base/services/appwidget/java/com/android/server/appwidget/ |
D | AppWidgetServiceImpl.java | 189 private static final int UNKNOWN_UID = -1; field in AppWidgetServiceImpl 836 if (host.id.uid == UNKNOWN_UID && pkg.equals(host.id.packageName)) { in resolveHostUidLocked() 2625 ProviderId restoredProviderId = new ProviderId(UNKNOWN_UID, componentName); in addProviderLocked() 5448 p.id = new ProviderId(UNKNOWN_UID, componentName); in restoreWidgetState() 5625 if (host.id.uid != UNKNOWN_UID) { in maybeSendWidgetRestoreBroadcastsLocked()
|