Commit Graph

106019 Commits

Author SHA1 Message Date
Heemin Seog
26c830dd16 Listen for changes to IME and show/hide nav bar
This feature is configurable and set to false as the default value. It
is overlayed as true for Automotive.

Bug: 138242566
Test: manual
Change-Id: I5dde8adc9d4ce749d895287ccf63017b284caec8
2019-08-16 15:13:16 -07:00
Makoto Onuki
3fedfcb409 Merge "Introduce framework-minus-apex and create jobscheduler-framework.jar" 2019-08-12 18:49:51 +00:00
Makoto Onuki
62242c48e0 Introduce framework-minus-apex and create jobscheduler-framework.jar
Bug: 137763703
Test: Clean local build + "flash -w" and boot
Test: Presubmit
Test: atest CtsJobSchedulerTestCases
Test: ./cts/tests/signature/runSignatureTests.sh
Change-Id: Ie2a5a7a17f903ac18de0bcdde5be25311a62fa01
2019-08-12 18:11:57 +00:00
TreeHugger Robot
9a73418069 Merge "Avoid leaking FileOutputStream in AtomicDirectory." 2019-08-12 17:48:46 +00:00
Adam Bookatz
47e4c8e094 Merge "UserInfo: FULL and SYSTEM flags" 2019-08-12 16:18:24 +00:00
Jing Ji
4969b938ae Merge "Add RSS to dumpsys meminfo" 2019-08-12 16:02:04 +00:00
TreeHugger Robot
77f8026978 Merge "Backup device information" 2019-08-12 15:44:25 +00:00
Al Sutton
71dc8ff4e1 Backup device information
Adding the device information to the backup will allow us to restore
data which is device specific if it's appropriate to do so (e.g. device
density)

The device specific settings which will be backed up are;

Settings.Secure.DISPLAY_DENSITY_FORCED

Test: atest SettingsProviderTest SettingsBackupTest
Test: Manual - Density changes during SUW when setting is restored
Fixes: 28437818
Change-Id: Ibc3595cdece3f1ccb4fccaff8212c1c3cb5c9756
2019-08-12 13:55:47 +01:00
Narayan Kamath
bb748c592b Merge "AutofillFieldClassificationService: Mark constructor as @SystemApi" 2019-08-12 12:34:12 +00:00
Oli Lan
9654d80a74 Merge "Clean up generatePackageInfoFromApex() API" 2019-08-12 10:07:44 +00:00
Tracy Zhou
8089ffaced Pass the captured snapshot data to Launcher when recents animation is
cancelled.

In the current implementation, when recents animation is cancelled due
to stack order change, window manager replaces the surface with a
snapshot before cancellation. Launcher needs to acquire the snapshot in
order to switch the live tile into snapshot mode, and yet because the
recents animation is cancelled, that snapshot can no longer be acquired
anymore. This change takes care of this "relay" process.

Fixes: 138683199
Test: N/A
Change-Id: I1c11af38c2bdc442e3b45d0b5f0c7e7e37c2b0f0
2019-08-11 17:00:38 +00:00
Bookatz
75f0a07f44 UserInfo: FULL and SYSTEM flags
Introduces two new UserInfo flags:

SYSTEM - refers to the system user, i.e. user 0. Although
UserManagerService already knows which user is the system, this flag
will be useful in other contexts.

FULL - refers to a non-profile human user.

Right now, for every user, one of the following flag combos are true:
SYSTEM (user 0 on a headless-user-0 device)
SYSTEM | FULL (user 0 on a regular device)
FULL (secondary user)
MANAGED_PROFILE (profile users)

Test: Manual verification via "pm list users" of new flags when adding a new user
Test: Manual verification via "pm list users" of new flags for pre-existing users
Test: Later cls will test the functionality as it is introduced
Bug: 134605778
Change-Id: Ife92bfa8a91cc4567d825da8e6a1b3894b088b22
2019-08-09 17:20:26 -07:00
Hai Zhang
fa3d2016ae Avoid leaking FileOutputStream in AtomicDirectory.
Bug: 138866253
Test: presubmit
Change-Id: I32adb56d207ec18de0e55664f3ac9eb575a4e3f2
2019-08-09 16:38:52 -07:00
Jing Ji
a736da8213 Add RSS to dumpsys meminfo
Include the RSS info into the meminfo output of dumpsys and
incident_report.

Bug: 117880513
Test: adb shell dumpsys meminfo
Test: cts-tradefed run cts-dev --module \
      CtsIncidentHostTestCases --test \
      com.android.server.cts.MemInfoIncidentTest
Change-Id: Id1058e279b7ca6925b59a6a523e0f0d14d830761
2019-08-09 22:57:50 +00:00
Jeff Sharkey
c08da86cb7 Merge "Wait until any background events are processed." 2019-08-09 22:13:33 +00:00
Jeff Sharkey
8cfff7b8b2 Merge "Enable transport logging based on isLoggable()." 2019-08-09 20:52:39 +00:00
Makoto Onuki
7c730311ea Merge "Remove build time dependency from BatteryStats to JobParameters" 2019-08-09 20:38:34 +00:00
Jeff Sharkey
7c2a8686c6 Merge changes from topic "callz"
* changes:
  Expand ContentProviderOperation to support call().
  Add nullability annotations for current behavior.
2019-08-09 16:01:23 +00:00
Oli Lan
c2c7a22333 Clean up generatePackageInfoFromApex() API
This changes the API for generatePackageInfoFromApex in PackageParser
in response to review suggestions made in ag/6701090.

The method is renamed to generatePackageInfo with a PackageParser.Package
parameter (as well as an ApexInfo and flags). The implementation is combined
with the main generatePackageInfo method. Callers are changed to perform
the parsing themselves, including the collection of certificates if
necessary.

Note: the method signature and implementation had already changed since
ag/6701090, so the suggestions from that CL may not apply directly.

Bug: 129261524
Test: atest PackageParserTest
Test: atest CtsStagedInstallHostTestCases
Change-Id: I495539679812110f89d5e3d93f2622ba2dab36c0
2019-08-09 15:18:50 +01:00
Narayan Kamath
51f3f610f9 AutofillFieldClassificationService: Mark constructor as @SystemApi
The class is abstract and marked as a SystemApi, but there's real
way to use it while compiling against the system_sdk unless the
constructor is also public.

Test: make update-api
Test: make
Bug: 138589409
Change-Id: Id1fe158ec55b299325bfbc16ab1ea33cd53fc123
2019-08-09 15:17:26 +01:00
Abhijeet Kaur
817380f46d Merge "Turn on feature flag to use bugreport API by default" 2019-08-09 07:24:10 +00:00
Makoto Onuki
9111d1dcec Remove build time dependency from BatteryStats to JobParameters
In preparation of moving the jobscheduler framework code to its
own jar.

Bug: 138793378
Test: dumpsys batterystats  -c | grep jbc and make sure the line looks correct

Change-Id: I9938c99e37bd44e522e5f8d8e95772e69d5be492
2019-08-08 15:33:37 -07:00
Jeff Sharkey
22e834f385 Enable transport logging based on isLoggable().
Instead of creating a new public API that requires developers to call
it, offer to enable transport logging based on the class name.

Bug: 137890034
Test: manual
Change-Id: Iea2a24310bd100be62a5c525108d17bafe7d11ea
2019-08-08 15:21:35 -06:00
Jeff Sharkey
7d6fd4b82a Expand ContentProviderOperation to support call().
ContentProviderOperation has long supported basic operations like
insert(), update(), and delete(), but it was never extended to
support the general-purpose call() method.

This change adds support for call(), including configuration of the
extras Bundle using back-references to other operations.  In
addition, the output Bundle from call() can be used for
back-references from other operations.

Clean up how back-references are handled internally; we now store
either a literal value in each slot, or an explicit BackReference
instance which we can "instanceof" check to resolve when needed.

Also add withExceptionAllowed() capability, which can be used to
catch and report the failure of a single operation while allowing
any subsequent operations to proceed.  Adds various nullability
annotations to reflect the behavior of all existing logic.

Bug: 131598520
Test: atest android.content.cts.ContentProviderOperationTest
Test: atest android.content.cts.ContentProviderResultTest
Change-Id: I1744bf8fc1ad048aa96460d487c2867c4c81d7b3
2019-08-08 14:40:29 -06:00
TreeHugger Robot
893735c812 Merge "Fixes usage of WallpaperManager to make it optional." 2019-08-08 20:34:01 +00:00
Jeff Sharkey
6304d7b894 Add nullability annotations for current behavior.
No behavior changes.  This paves the way for a future CL that is
will be adding a handful of new APIs.

Bug: 131598520
Test: atest android.content.cts.ContentProviderOperationTest
Test: atest android.content.cts.ContentProviderResultTest
Change-Id: I1a6f53e79009ba88b13844a6c8ca8c09e33ee5b2
2019-08-08 14:27:38 -06:00
TreeHugger Robot
7ff4f6c172 Merge "Add max target sdk for LocalActivityManager" 2019-08-08 19:13:51 +00:00
Kweku Adams
18535a83db Merge "Ensuring parity between JobScheduler's proto and text dumps." 2019-08-08 17:33:09 +00:00
Rajeev Kumar
0f8ad443c2 Merge "Stop showing disclosure UI when isDisclosureEnabled is false." am: 6452cc3cc1 am: f9e3e40676 am: 2123aad7ab am: df003a7ba1
am: a9ba0f30ca

Change-Id: Iaf5f03f1cbe7285a141a263821d00d507716031c
2019-08-08 10:07:23 -07:00
Rajeev Kumar
a9ba0f30ca Merge "Stop showing disclosure UI when isDisclosureEnabled is false." am: 6452cc3cc1 am: f9e3e40676 am: 2123aad7ab
am: df003a7ba1

Change-Id: I463fa34afc551e61b7367525acc1a180d0d7376b
2019-08-08 09:56:34 -07:00
Rajeev Kumar
df003a7ba1 Merge "Stop showing disclosure UI when isDisclosureEnabled is false." am: 6452cc3cc1 am: f9e3e40676
am: 2123aad7ab

Change-Id: I286356883be0a88252a4ca7468f2413c73df97c7
2019-08-08 09:46:18 -07:00
Rajeev Kumar
2123aad7ab Merge "Stop showing disclosure UI when isDisclosureEnabled is false." am: 6452cc3cc1
am: f9e3e40676

Change-Id: I6a7f6b2783441465bdc0a1331b4183b742d9523c
2019-08-08 09:24:14 -07:00
Rajeev Kumar
f9e3e40676 Merge "Stop showing disclosure UI when isDisclosureEnabled is false."
am: 6452cc3cc1

Change-Id: Ie616ed1e05c45a30b5ab20873fa07f963f0d3e49
2019-08-08 09:13:56 -07:00
Rajeev Kumar
6452cc3cc1 Merge "Stop showing disclosure UI when isDisclosureEnabled is false." 2019-08-08 15:42:51 +00:00
Abhijeet Kaur
ba720eb16d Turn on feature flag to use bugreport API by default
Bug: 136548098
Test: build, flash, take bugreport from Settings uses API workflow by
default. Turning off the feature flag from Settings uses old bugreport
workflow

Change-Id: I6462fcd77e812420dfeb9d3e5a0a8646745606f2
2019-08-08 15:09:33 +01:00
Nicolas Geoffray
a98e4142f6 Merge "Notify the ART runtime when boot is complete." am: f83748ae28 am: 6b9ab57b2d am: ed22d5f05c am: 8f93d19459
am: 6e16874401

Change-Id: Icc2ec9b98c8b507f2431ef60a4cd7bbe11bab430
2019-08-08 06:02:32 -07:00
Nicolas Geoffray
6e16874401 Merge "Notify the ART runtime when boot is complete." am: f83748ae28 am: 6b9ab57b2d am: ed22d5f05c
am: 8f93d19459

Change-Id: Iddebb915552b39cfb4cbe59bb67eb1c2aae0c8ea
2019-08-08 05:53:00 -07:00
Nicolas Geoffray
8f93d19459 Merge "Notify the ART runtime when boot is complete." am: f83748ae28 am: 6b9ab57b2d
am: ed22d5f05c

Change-Id: I88c5ab8807446464854d59f95ffc2877fa6aa963
2019-08-08 05:43:38 -07:00
Nicolas Geoffray
ed22d5f05c Merge "Notify the ART runtime when boot is complete." am: f83748ae28
am: 6b9ab57b2d

Change-Id: I5466b6f73087c6dea67c9b7cfaa3bf55bacb8a23
2019-08-08 05:32:55 -07:00
Nicolas Geoffray
6b9ab57b2d Merge "Notify the ART runtime when boot is complete."
am: f83748ae28

Change-Id: Iea67d64570657173832ee0d61288dc97af11496b
2019-08-08 05:11:55 -07:00
Nicolas Geoffray
f83748ae28 Merge "Notify the ART runtime when boot is complete." 2019-08-08 11:58:06 +00:00
Abhijeet Kaur
57fb463e01 Merge "Make USE_BUGREPORT_API more widely available." 2019-08-08 10:53:31 +00:00
Charles Chen
635fcc218b Add max target sdk for LocalActivityManager
Test: build and presubmit
Bug: 137825207
Change-Id: I30ca8a966e26bd8394e4f9bb0374b360d064673c
2019-08-08 18:16:59 +08:00
TreeHugger Robot
e1025e8228 Merge "Add max target sdk for ActivityGroup related APIs" 2019-08-08 10:03:37 +00:00
David Srbecky
6d0d7066cf Notify the ART runtime when boot is complete.
Needed for jit-zygote performance improvements.

Test: device boots
Bug: 119800099
Change-Id: I1e46f49d94440384473430d8afebe29fbee9c68e
2019-08-08 07:57:35 +00:00
PO HUNG CHEN
a3c58bf44b Merge "Clean up usage on deprecated GSID methods" 2019-08-08 06:32:53 +00:00
Rajeev Kumar
cd497ef6f3 Stop showing disclosure UI when isDisclosureEnabled is false.
Bug: 137395050
Change-Id: Ic7768f7d3306f5d9d5c5c988afda4e8710c4ccd0
Test: Manual tests
2019-08-08 03:09:38 +00:00
TreeHugger Robot
0b31d6c000 Merge "Don't crash trying to stop program list updates on already closed tuner" 2019-08-07 23:08:25 +00:00
Kevin Hufnagle
7ab7ee8aa7 Merge "docs: Removed dates in obsolete field messages." into qt-dev am: 45855214b5 am: 3956d9606c am: 98fdc74e1c
am: 2d6db5ec0c

Change-Id: Id0daf5c83fa4011ee2829874f6154f41e8e0ec92
2019-08-07 15:56:20 -07:00
Eugene Susla
f366188dac Merge "Use dataclass codegen on a few initial framework classes" 2019-08-07 22:51:23 +00:00