Create a new helper to deal with application foreground state changes.
1) Rename various Helpers.
2) Move GnssManagerService into location dir.
3) Use new AppForegroundHelper everywhere.
4) Move sendNiRequest to internal API
5) Some refactoring of NetInitiatedActivity
Test: atest AppForegroundHelperTest
Change-Id: Ifffe0e6a34452a18d017c6b190547b904d77b430
Adds a new flag to ShortcutInfo to mark it as cached. Also adds new
APIs in ShortcutManager to remove or retrieve a cached shortcut.
Bug: 148084870
Test: atest com.android.server.pm.ShortcutManagerTest1 \
com.android.server.pm.ShortcutManagerTest2 \
com.android.server.pm.ShortcutManagerTest3 \
com.android.server.pm.ShortcutManagerTest4 \
com.android.server.pm.ShortcutManagerTest5 \
com.android.server.pm.ShortcutManagerTest6 \
com.android.server.pm.ShortcutManagerTest7 \
com.android.server.pm.ShortcutManagerTest8 \
com.android.server.pm.ShortcutManagerTest9 \
com.android.server.pm.ShortcutManagerTest10
Change-Id: I859b416ccd4228eec10a436550ff98866a62af66
Because we can't restore IME visibility yet, we update requested
visibility whenever we loose control.
Bug: 111084606
Test: Set password as screen lock, then open status bar while
unlocked.
Change-Id: I476e05dd4ec24b9e4d78ea585e43e698b87b30a5
PackageManager.java has a lot of similar options for getPackageUid, 3 of
which are:
1. getPackageUid(String packageName, @PackageInfoFlags int flags)
2. getPackageUid(String packageName, @PackageInfoFlags int flags,
@UserIdInt)
3. getPackageUidAsUser(String packageName, @UserIdInt int userId)
The function being called here in set appop getPackageUid is calling 1st
method but passing userId. Passing the user ID is accepted as it is also
int, but the uid of the current user is returned.
Test: manual
Change-Id: I032df4a3e666ebb3efee673153bb75fa4c571e83
The new annotation is android.compat.annotation.UnsupportedAppUsage.
Test: m
Bug: 145132366
Exempt-From-Owner-Approval: previously approved change
Change-Id: Ie12e28eee0ed20b5677ee3162143700813b7ab64
am skip reason: Change-Id I8d5d828ec142c74428388a6d3f11cdf0842e03b9 with SHA-1 66605f1ad3 is in history
Change-Id: I7df9349878f7b09d58f593196767546509262347
am skip reason: Change-Id I2510de0ab1ce40c8d191a17dbae7f4c33418006c with SHA-1 75e6aa2764 is in history
Change-Id: Ib4c8895efc2411d7f744d24ae2ec46667cf85eea
am skip reason: Change-Id I43c7e088e46e40f38d8114548e0fc4e39d7f91cb with SHA-1 77a7ea65fd is in history
Change-Id: Ia8b26d50299dfb07178d0adef52cc422317070e9
am skip reason: Change-Id I0fb0e7e466a0188f04db595b8e417870666005ba with SHA-1 7125d3ba10 is in history
Change-Id: If5b0208edcfb7b1a764758282080c1aa5da064d4
am skip reason: Change-Id Iffd9351d2170a496639eced2c4618819f522494c with SHA-1 ac37b6344d is in history
Change-Id: I9f23eb07c789feab8674cea9246e76ea8653be73