- Change back the throttling quota to 10 calls / day
- Foreground apps are no longer throttled, and when an app comes to
foreground the call counter will be reset.
- When the system locale changes, reset throttling for all packages
for all users.
See LocalService.onSystemLocaleChangedNoLock() for how it's performed.
Because the reset must happen before any other apps have a chance to
publish shortcuts, the logic is not straightforward.
- Added an internal API to reset the throttling upon inline-reply
from a notification.
- Stop supporting icons from "content:" URIs
- Improved javadoc on several APIs.
Also internal refactor needed to this:
- ShortcutUser.getAllPackages()/getAllLaunchers() are no longer
accessible to outer code to prevent accidentally adding/removing the
content. Outer code should use forAllPackages() / forAllLaunchers().
Bug 27923857
Change-Id: I002511193d1d33718163bb1dabe77610bde58198
Shift the branch numbers by 5 digits to construct the versionCode according to
Chromium versionCode scheme.
Changed "non-system version" to "candidate version" because a package under
comparison could be a system package too.
Also add a new test for the fallback being used case.
BUG: 28050853
Change-Id: I25becb713a8840e579ded55b8882224c6b69e1bb
am: a1bca975ef
* commit 'a1bca975efce3830d3c97a98db785151daeda465':
ShortcutManager: When app's data is cleared, remove all shortcuts,
Change-Id: Ib8af31efc5117528d2599fa03bd5ed74f6606fe7
am: 41c1df9
* commit '41c1df9de514eb2f959a275cef36ebed37d754a6':
When app is updated, save the new version code, and update shortcuts with resource based icons.
Change-Id: I1039c773715c4fdfd5fbba484dc425dfcd3b07d6
am: 3e3de5d7d7
* commit '3e3de5d7d7379d4aa296a43ca41df4c1ded0858b':
Cap number of NetworkRequests a UID can make to 100
Change-Id: I72fe474d3618c2900e972cefdc85e80767610405
am: fdb8147b44
* commit 'fdb8147b44caf5be4223d6c9859cdbb1f25885df':
Test coverage for new FBE functionality
Change-Id: I2eb142f6e8a6c33cce69366a0387a8295ceb1759
Added testRemovedAccountSync, which removes account when the user is locked,
and verifies that syncDeCeAccountsLocked works as expected.
Added testPreNDatabaseMigration to test that pre-N database with existing
data is properly upgraded and migrated.
Bug: 26279712
Change-Id: I3846c626f616b1c4830965c9f0cb27fa32ce6f54
am: fcf5f4c
* commit 'fcf5f4c9bf34666c87dd589df41aaff118241143':
Unit test for UidRange.java and UidRange.cpp
Change-Id: Id7eaab8ce6a2758f175fd855ff7e552c73f08bd9
We recently added functionality for ensuring that a webview package
cannot be used unless its version code is at least as high as the
minimum of the version codes of the default webview packages.
This CL contains unit tests for verifying this functionality.
Bug: 28050853
Change-Id: Iaf6d5999e420a7eddc4df06aaeefd68ee545422e
am: 2870094
* commit '2870094a86531e977898681aef503bb393b24a3e':
ShortcutManager: Categories should be Set, not List.
Change-Id: I114c3ac304bed3b237128c2e330dec0fe19f6613
am: 0da2457
* commit '0da2457a9b917b215e925dd6d33f5790e67beb70':
Remove all icon bitmaps when a publisher is uninstalled.
Change-Id: I2af330494fe9a69328cb65a246497bbfb4182273
am: c08ac79
* commit 'c08ac79a21722bf793d328e652e6f64118d90fca':
Update persistent WebView packages setting only when user changes it.
Change-Id: Ied22fed362a718cff0b1892dc199ac74e336de03
Before this CL when we tried to change WebView provider through the Dev
setting and failed we would then have the setting point to the provider
used before the change. With this CL we instead let the setting point to
the intended target but also switch to the package which the
WebViewUpdateService see as most fit (rather than just reverting back to
the original choice).
Add unit tests to verify we kill processes depending on WebView
packages when switching WebView provider.
Add unit tests to ensure we can recover from trying to change provider
when there are no providers available.
Bug: 27673076
Bug: 27635535
Change-Id: Ie7bb6afdf8acf4344cfb363947929c0b492775fb
To ensure that we don't permanently change WebView implementation if the
current package is temporarily uninstalled (e.g. when being replaced) we
don't update our persistent setting unless the user explicitly changes
WebView implementation (and on boot!).
Unfortunately this will means that the Dev Setting for changing WebView
implementation will work in a slightly less intuitive way. The
persistent setting is now persistent across uninstalls and installs.
I.e. the Dev Setting shows the current WebView implementation though
that could differ to the value chosen by the user since the package
chosen by the user could be uninstalled or disabled. In this case
installing/enabling that package would again make the Dev Setting point
to it.
However, as a compromise, we do change the setting at boot so that if
the currently chosen package is not valid we will change the setting so
that it points to the package we currently use instead.
Also ensure we only use WebView packages that are available-by-default
if no WebView packages are enabled.
Add unit test to ensure that if a user-chosen provider is uninstalled we
switch back to using that provider when it is installed again.
Add unit test to ensure we switch user-chosen provider at boot if the
chosen one is uninstalled.
Bug: 27673076
Change-Id: Icd27ae302798ebf695b9ef4bd4d5fd47fe4be02c
am: 2c1f03a
* commit '2c1f03ade023a61428b7d9101bc10e4c88ae941a':
If Internet probe is redirected, pass redirect destination to NetworkAgent.
Change-Id: I4c5f5cb8591d8729de9036a6c2aabacd4aba0f39
- "delete" -> "remove"
- add/deleteDynamicShortcut() now takes a list.
- Throttling default settings is now 2 calls / hour.
- Add categories to ShortcutInfo.
- getIconResourceId() is now public
Bug 27923857
Bug 27548047
Change-Id: I8457b30e4b2f7c63ab2988648b37178fd16ea45b
The logic in the WebViewUpdateService is now more complex and there
are lots of edge cases that should be tested to make sure we don't
regress anything.
Also refrain from running fallback logic on boot if fallback logic not
enabled (bug found through a failing test, yeeah buddy!).
Catch uncaught MissingWebViewException (very timing-dependent!) and add
test for this.
Add tests for:
Some package setups (single package, non-default vs. default packages,
valid vs. invalid packages).
Ensure correct error codes used
Switching provider through settings-method
Switching provider through adding more prioritized provider
Switching provider in the middle of already running webview preparation
Ensure fallback logic is run when enabled and not run when disabled (at
boot, packageStateChanged, and when adding a new user).
Bug: 27635535
Change-Id: I275ecb0f6129f71258da0fa053e7f7b36a675886
Transport may use the redirect to make additional determination about network
state.
Bug: 25203607
Change-Id: I07d8918f13fdcbe0b6fd757536bfc1850a2a244f
am: 3c4a3bb
* commit '3c4a3bb3c55a68146b3bb5febb2fee674fddd8e7':
Make AccountManagerServiceTest work again
Change-Id: Iad16fed7ec0514f62d9cef91e3aeda3b0e7f04e8
It was broken for quite a while. Introduced the following changes:
- Use mockito to mock AppOpsManager and UserManager
- Use MockContext directly and override what is necessary.
RenamingDelegatingContext doesn't work with absolute file names for
database paths, which is the case for system server DBs.
Bug: 26279712
Change-Id: I9f2a3892f9bd7a882d78f0bb7beb8669f7dc8c6f