Commit Graph

10321 Commits

Author SHA1 Message Date
Philip P. Moltmann
8f40508d81 Merge "Add autoFillHint property to view" 2017-03-03 20:53:43 +00:00
TreeHugger Robot
8b5ca97a6c Merge "Add API for checking which CA certs were installed by the DO/PO" 2017-03-03 20:28:37 +00:00
TreeHugger Robot
e8f090d7c8 Merge "Allow resid notification channel group labels." 2017-03-03 19:45:45 +00:00
Daniel Nishi
b52ba99d00 Merge "Save/load calculated cache quotas to a file." 2017-03-03 19:35:26 +00:00
Bartosz Fabianowski
05dc9f764c Add API for checking which CA certs were installed by the DO/PO
With this API, the system can determine whether a CA cert was
installed by the user or the user's DO/PO.

Bug: 32692748
Test: unit tests (see DevicePolicyManagerTest.java for invocation)
Test: cts-tradefed run cts-dev --module CtsDevicePolicyManagerTestCases

Change-Id: I3bcae5ac18ec2b110154184fc515df804fd73da6
2017-03-03 19:42:51 +01:00
Selim Cinek
5bfecd1079 Merge changes Ie009b2c3,I313b5334,Iae36fc6b
* changes:
  Animating the statusbar icons now when closing
  Fixed a few issues around notifications and density changes
  All touches to low priority headers should be accepted
2017-03-03 18:30:59 +00:00
Selim Cinek
1b5543939a All touches to low priority headers should be accepted
Since there is no conflicting touch target, we now accept
all touches there.

Test: add low-pririty notification, click below text
Fixes: 35851799
Change-Id: Iae36fc6b950a0dbb569bfae43a5505588d9e0ace
2017-03-03 10:26:29 -08:00
Winson Chung
da0d07be7b Merge "Prevent PiP movement while the resize animation is running." 2017-03-03 17:28:46 +00:00
Anton Philippov
b870c8e3e2 Merge "Add more instrumentation to BackupManagerService" 2017-03-03 15:09:04 +00:00
TreeHugger Robot
5603a16e9e Merge "Fix issue #35365651: ActivityManager.getPackageImportance() doesn't..." 2017-03-03 01:50:15 +00:00
Daniel Nishi
e40da3c1b7 Save/load calculated cache quotas to a file.
This will prevent us from unnecessarily redoing calculation work
by loading the last caches on boot and shoving them down to
installd.

Bug: 33965858
Test: Framework services tests
Change-Id: Ie94e269aa72bceb1ebe87911eaa42e2d826c1123
2017-03-02 14:22:24 -08:00
TreeHugger Robot
8fb42cc3b2 Merge "Let ResourcesManager generate CompatResources" 2017-03-02 21:28:27 +00:00
Julia Reynolds
d528684373 Allow resid notification channel group labels.
Test: cts, runtest systemui, runtest systemui-notification, manual
Change-Id: I9e7b43c97fd04057e1a2614876af958cc2f40a99
2017-03-02 21:08:31 +00:00
Philip P. Moltmann
ba6f462602 Add autoFillHint property to view
Bug: 35364993
Test: Ran amended ViewAttributesTest
Change-Id: Ib7d2c3dfd5b4a6b638b56c4583af4c9bdf37e346
2017-03-02 12:46:44 -08:00
Winson Chung
85d3998aa3 Prevent PiP movement while the resize animation is running.
- This was causing numerous artifacts when the user starts touching while
  transitioning into PiP where the move rects clobber the animating rect.

Bug: 35764922
Test: Try touching the PiP while it is entering or exiting PiP
Change-Id: I5a72b5bea694b01aab401d2bb78a493688a9c655
2017-03-02 12:31:02 -08:00
Dianne Hackborn
45e69d6de9 Fix issue #35365651: ActivityManager.getPackageImportance() doesn't...
...return the highest importance of all processes

Also clean up the importance constants to correctly reflect the
current state of the system.

Test: run activity test, added new conditions to it for this.
Change-Id: I25c4351b017c4a703212f604079e13f7d4fead5b
2017-03-02 10:47:24 -08:00
Jason Monk
bd60e5bf2e Let ResourcesManager generate CompatResources
This will let the ResourcesImpl be updated and handle null cases
better.

Test: Select text while composing email.
Change-Id: Ia8aed22f02b040a202db9cbb2bc02687c693cfa1
Fixes: 34761805
Fixes: 35869547
2017-03-02 12:55:00 -05:00
Anton Philippov
deb244d3e5 Add more instrumentation to BackupManagerService
Test: manual
Change-Id: I41096b47f594c5254f499778bab996dfdfc13f66
2017-03-02 16:50:50 +00:00
Julia Reynolds
5a31193497 Allow translatable channel names.
Bug: 35336590
Test: runtest sytemui runtest systemui-notification, manual
Change-Id: I1e6ebbcc36cab22ab9b2dfde505a68513544ef52
2017-03-02 15:48:12 +00:00
George Mount
0882330c39 Merge "Fix NPE when combining pop with add transaction." 2017-03-02 15:12:30 +00:00
David Christie
c4927db35a Merge "Create PackageManager.isInstantApp API to query whether a given package name is an instant app." 2017-03-02 03:18:05 +00:00
TreeHugger Robot
1bef83f613 Merge "Added inputType to Assist API." 2017-03-02 03:01:50 +00:00
TreeHugger Robot
3f80513733 Merge changes Ic4370fa8,I81c43329,Ic563a8fe,I6d4be770,I858d1c95, ...
* changes:
  Fixed a bug where a wrong notification could be visible
  Fixed a bug where the icon would dissappear
  Continued low-priority group implementation
  Fixed an issue where the minimum height wasn't applied correctly
  Worked around a bug where the view could render blank
  Fixed another memory leak
  Creating the right views for low-priority group children
  Move the inflation away from the statusbar
2017-03-02 00:52:52 +00:00
George Mount
f05db56f24 Fix NPE when combining pop with add transaction.
Bug 35832085

When pop transactions and an add transaction are acting
in the same frame, optimized tranactions can work properly,
but unoptimized transactions have no guarantees. This fixes
a crash with unoptimized transactions so they will at least
not break.

Test: I996f54ae2540f31134e6a9a28870826a73ea1610
Change-Id: I3890dd30e9aff70f4ac142773de8479f1a9dffc8
2017-03-01 16:51:21 -08:00
David Christie
31a1655191 Create PackageManager.isInstantApp API to query whether
a given package name is an instant app.

Test: refactor existing codepaths retained

Change-Id: I6253fe8cc398d6547566d11043bffd1c4ffaa74a
2017-03-01 16:36:48 -08:00
Selim Cinek
414ad33470 Continued low-priority group implementation
Adapting the low-priority group implementation
according to spec. Expanding a group takes 2 taps now.

Test: add low-priority group observe behavior
Change-Id: Ic563a8fe0e71df746b9b548adc8d1698940b1a83
Fixes: 35125708
2017-03-01 13:15:08 -08:00
Geoffrey Pitsch
af759c52ce Channels for Frameworks notifications
Adapts all notifications used by system services to use channels.
Channels are initialized by SystemServer after the NotificationService
has started.

Test: runtest systemui-notification
Change-Id: I25c45293b786adb57787aeab4c2613c9d7c89dab
2017-03-01 10:17:15 -05:00
TreeHugger Robot
247a3c0132 Merge "Introduce ANSWER_PHONE_CALLS permission" 2017-03-01 01:10:20 +00:00
Felipe Leme
16aafc36de Added inputType to Assist API.
It will be used mostly for auto-fill purposes..

Bug: 35364993
Test: CtsAutoFillServiceTestCase (with new tests) pass
Test: manual verification

Change-Id: Ia5b6ff94e66a7da385cfb6f42ad994fe5e1e976b
2017-02-27 14:09:44 -08:00
Dianne Hackborn
59774e209c Merge "Add new job scheduler constraints for "battery not low"." 2017-02-27 21:11:29 +00:00
TreeHugger Robot
6087ea2b9d Merge "Provide some compatibility story for devs in the past" 2017-02-27 20:28:58 +00:00
Dianne Hackborn
a06ec6a943 Add new job scheduler constraints for "battery not low".
Clean up the implementation of boolean constraints so that
they are in a single flags value that gets propagated all of
the way from JobInfo.Builder in to the JobStatus.  Much simpler
and easier to add new constraints!

Also introduce some shell commands to make it easier to write
tests against the job scheduler (and other things tied to power).
One of the big things here is that there is a new sequence number
that propagates with battery updates, which we can look for in
the job scheduler to determine when a change the test has made
to battery state has actually gotten applied, to allow it to
safely and minimally wait until executing the condition being
tested.

Test: New BatteryConstraintTest suite added.

Change-Id: I11076d90b80ec25ee604c29b6a6dc2337fd867ce
2017-02-27 10:54:06 -08:00
Makoto Onuki
9687767d75 Merge "Allow querying providers with a specific metadata." 2017-02-27 18:35:20 +00:00
Jason Monk
bd9836496c Provide some compatibility story for devs in the past
They should be providing themes when resolving certain resources,
but they aren't anyway, so try to provide it free of charge, when
possible. Also, nothing is ever free.

Test: Open app that uses old/bad resource methods
Change-Id: Icd57aadf1202ddffb1dd73ab45119fae7e5d6130
Fixes: 35656110
2017-02-27 09:21:53 -05:00
Eugene Susla
cae3d3e59e Introduce ANSWER_PHONE_CALLS permission
This exposes an API to answer a ringing call, as well as a corresponding
runtime permission and appop

Test: Grant the permission and ensure the call gets answered.
Deny the permission, and ensure that the API call throws an exception.
Bug: 30932767
Change-Id: I4c33fcea6b95a30469fa6c0c37090be32b0ad52e
2017-02-24 20:28:46 -08:00
Robin Lee
1cd368b074 Merge "Thorough javadocumentation for network logging API" 2017-02-24 21:28:17 +00:00
TreeHugger Robot
96429a18aa Merge "Change time methods to durations." 2017-02-24 20:49:57 +00:00
TreeHugger Robot
ab6798951a Merge "Fix broken RestrictedLockUtils KeyGuard APIs" 2017-02-24 19:29:48 +00:00
Robin Lee
a40a2fba00 Thorough javadocumentation for network logging API
Explaining what the limitations of the underlying network logging
implementation are and what alternatives exist for the cases where
best-effort isn't an option.

Test: make docs
Change-Id: I000345ae5ba15bdc9e31dedf6de394d2538729a9
2017-02-24 00:18:37 +00:00
Julia Reynolds
5098977b20 Change time methods to durations.
Test: cts, cts verifier, runtest systemui-notification
Change-Id: Ia612f59e91f3a3e1de14cd7217fe18ecaf61033c
2017-02-23 14:52:49 -05:00
TreeHugger Robot
c302a1adc6 Merge "Add isBundled argument to LoadedApk.makePaths call" 2017-02-23 18:05:04 +00:00
Makoto Onuki
3275729203 Allow querying providers with a specific metadata.
CP2 will need it to scan GAL providers faster.

Test: Manual test with CP2 under development
Bug: 35388445
Change-Id: I1202420078b1bbe48f6eb4bb9e3f705c71df9c0c
2017-02-23 09:36:09 -08:00
TreeHugger Robot
189796dace Merge "Expose isStateSaved() in FragmentManager." 2017-02-23 16:36:02 +00:00
TreeHugger Robot
f30b879c73 Merge "Added sanitization for CompoundButton and RadioGroup." 2017-02-23 15:24:07 +00:00
Bryce Lee
32bd2ea56c Merge "Update DisplayAdjustments in Display from Resources." 2017-02-23 15:15:10 +00:00
Dimitry Ivanov
638d810099 Add isBundled argument to LoadedApk.makePaths call
There is a disconnect between the way webview created
classloader and the way makePaths decides if paths are
intended for bundled app.

This change moves decision making out of makePaths method
which allows WebViewZygote to pass correct argument and
have makePath omit java.library.path for libPaths

Bug: http://b/35426785
Test: manual
Change-Id: Iab5a18c0091d0193dafa750498eb00f378411ba0
2017-02-22 23:52:01 -08:00
Felipe Leme
62fb65fd3c Merge "Added auto-fill support for Spinner." 2017-02-23 06:45:16 +00:00
Jeff Sharkey
6f2c1ea250 Merge "Add queryStatsForPackage() API." 2017-02-23 03:21:47 +00:00
Felipe Leme
c01a873c4f Added sanitization for CompoundButton and RadioGroup.
Bug: 33269702
Bug: 33550221
Test: CtsAutoFillServiceTestCases (with new tests) pass

Change-Id: Ie2c8d2784227371588aa02973b8ef3ac1a6950aa
2017-02-22 19:15:38 -08:00
Felipe Leme
d09ccb8db6 Added auto-fill support for Spinner.
Spinner is a special kind of list-value field because its auto-fillable
values are not currently present in the assist structure: this change
adds a getAutoFillOptions() to fill that void, and implements the
auto-fill APIs on Spinner.

It also fixes RadioGroup.getAutoFillValue() - it should return the index
of the child, not its resource id.

Bug: 33550221
Test: CtsAutoFillServiceTestCases (with new tests) pass
Change-Id: I625e7dd705fade56fda490fcd3c4446c0c245ee1
2017-02-22 16:09:50 -08:00