Commit Graph

84767 Commits

Author SHA1 Message Date
Jakub Pawlowski
c2d7be6667 Add persistent state for Hearing Aid Profile
Defines the flag used in code and the Settings.Global key names for
persisting state of the Bluetooth Hearing Aid Profile.

Test: manual
Bug: 69623109
Change-Id: I19e68be55a80f338bdc5d39d6c3c6d251f1cb514
2017-11-28 01:03:01 +00:00
TreeHugger Robot
edbd1d3dde Merge "Fix issue #68002319: Allow current VoiceInteractionService to avoid..." 2017-11-28 00:42:46 +00:00
Fyodor Kupolov
31342ca615 Merge "Use the root case to set remote stack trace for" 2017-11-27 22:14:38 +00:00
Jeff Sharkey
7cf056ac8e Merge "Clarify docs, sanity check roaming state." am: 419ec05284 am: 63b5615b2a
am: f8590d1f79

Change-Id: I59fbe09afc74e94e2f56cb6fd833fc2deb7023e5
2017-11-27 21:48:46 +00:00
Jeff Sharkey
f8590d1f79 Merge "Clarify docs, sanity check roaming state." am: 419ec05284
am: 63b5615b2a

Change-Id: If4f09f8a0e32c245552f025f1a61d67f842b1841
2017-11-27 21:39:56 +00:00
Jeff Sharkey
63b5615b2a Merge "Clarify docs, sanity check roaming state."
am: 419ec05284

Change-Id: Ic30d5aaadf2c59978162c53d7e7781847244ce52
2017-11-27 21:30:57 +00:00
TreeHugger Robot
41499dfe18 Merge "New Autofill API: SaveCallback.onSuccess(IntentSender)." 2017-11-27 21:06:52 +00:00
Jeff Sharkey
49bcd60a8d Clarify docs, sanity check roaming state.
Update public docs to hide the fact that NetworkCapabilities is only
used inside NetworkRequest as an implementation detail.

Take up less room on the wire when passing NetworkCapabilities around
via NetworkRequest.

Sanity check that the roaming state between NetworkInfo and
NetworkCapabilities is in agreement.

Test: bit FrameworksNetTests:android.net.,com.android.server.net.,com.android.server.connectivity.,com.android.server.ConnectivityServiceTest
Bug: 67040695
Change-Id: I982b4c3c41a140934bbad3b8ca8f12dc3814e86c
2017-11-27 12:47:14 -07:00
Bryce Lee
bc8c25a407 Merge "Store bounds in WindowConfiguration." 2017-11-27 19:15:06 +00:00
Felipe Leme
4bcb01a3b5 New Autofill API: SaveCallback.onSuccess(IntentSender).
This overloaded method is useful for cases where the service needs to launch
an activity (for example, to unlock the user's vault), in which case it's
launched from the context of the activity being filled.

Test: atest CtsAutoFillServiceTestCases:SimpleSaveActivityTest#testSave_launchIntent
Test: atest CtsAutoFillServiceTestCases
Fixes: 69458616

Change-Id: I41bf5fd4954c38051e3275f2e8500a00dcf24724
2017-11-27 10:52:50 -08:00
Fyodor Kupolov
3b946f43a4 Use the root case to set remote stack trace for
Otherwise it may cause ISE if a cause has already been set like
in ParcelableException.

Test: manual install/uninstall an app on secondary user
Bug: 69704045
Change-Id: Ia8631ea76d5acf38e60fc609eef65f010ade21b5
2017-11-27 10:40:46 -08:00
TreeHugger Robot
3971cdee9f Merge "Add meta-data constant for activity->slice" 2017-11-27 17:25:44 +00:00
Bryce Lee
f3c6a47bdd Store bounds in WindowConfiguration.
This changelist consolidates the usage of frame bounds in containers
into the WindowConfiguration. As a result, the bounds are now shared
across AM and WM. Any changes to the bounds on one side are
propagated to the other via override configuration changes. Previous
instrumentation to synchronize the two sides is no longer necessary.

This changelist does not attempt to consolidate common logic shared
between WM or AM components for setting bounds.

Bug: 68719294
Test: go/wm-smoke
Change-Id: Ia8978dba8525b83201640e159caefe16e626b7c1
2017-11-27 08:59:19 -08:00
Neil Fuller
f79a0db368 Merge "Fix checkapi for OpenJDK 9 builds" 2017-11-24 19:46:00 +00:00
Neil Fuller
57157fb310 Fix checkapi for OpenJDK 9 builds
This change explitly hides com.android.okhttp
from doclava. The public.txt generation was
previously relying on a package.html in
com.android to hide all subpackages, which
doesn't work with javadoc 9.

Test: make droid (with both OpenJDK 8 and OpenJDK 9)
Bug: 69709687
Change-Id: If61b69f913be044adb4cd34867459bde6330ea2c
2017-11-24 16:27:10 +00:00
Andrei Stingaceanu
d6644dcfea [Magnifier - 10] Make it public
* moves the Magnifier from com.android.internal.widget to
  android.widget
* removes useless public getters; useless for now because we have
  no magnifier configuration but the hardcoded one

Bug: 67839742
Bug: 63531115
Test: bit CtsWidgetTestCases:android.widget.cts.MagnifierTest
Change-Id: Ie6f474c4c781038650007a15937d61c650ee5fdd
2017-11-24 11:25:25 +00:00
Adrian Roos
e99bc0501a WM: Move WindowManagerPolicy, DisplayFrames and WindowManagerInternal into services
Splits WindowManagerPolicy into a framework and a services part, preventing concepts that are
internal to the window manager from leaking out into the framework.

Test: make droid
Change-Id: I7b6a54f55f76f6fbb5f27090981b8f1d4d8be88b
2017-11-23 17:23:26 +01:00
Peter Visontay
79af02db03 Merge "Fix outdated docs of permission protection levels." 2017-11-23 11:06:46 +00:00
TreeHugger Robot
a98bd9989e Merge "Captures metrics on disk when devices reboot and shutdown. Specifically," 2017-11-23 04:52:35 +00:00
TreeHugger Robot
e8ebb8cd8d Merge "Changed FillResponse so it can have only a client state." 2017-11-23 02:42:07 +00:00
yro
947fbce521 Captures metrics on disk when devices reboot and shutdown. Specifically,
1. Create intent receiver in StatsCompanionService to listen to shutdown
events.
2. Create StatsWriter class to handle disk writes and deleting files.
3. Update StatsLogProcessor, ConfigManager, and StatsService to handle
files on disk using StatsWriter.
4. Add a wrapper for ConfigMetricsReport.

Still TODO is to be able to add a guardrail to prevent accumulating
excessive amount files on disk, which will be followed up by another
change.

Test: statsd, statsd_test
Change-Id: Ia0b3af315af545daa8b0078b3700c600aa7c285f
2017-11-22 18:39:23 -08:00
Jeff Sharkey
90cbd7e4e5 Merge changes from topic "predicatez"
* changes:
  Emit all APIs using Predicates.
  Massage APIs for upcoming doclava change.
2017-11-23 02:00:06 +00:00
Amith Yamasani
5719bceb4e Merge "The job scheduler now backs off jobs based on standby bucketing" 2017-11-23 00:00:23 +00:00
Yifan Hong
6f813c6a98 Merge "android.os.HidlSupport: add getPidIfSharable() for HALs" am: e72b6f0d31 am: 8cf7761747
am: 523665a293

Change-Id: I901c938c2c56ab1c1649c218b37d4ab131cd3c7b
2017-11-22 23:28:56 +00:00
Yifan Hong
523665a293 Merge "android.os.HidlSupport: add getPidIfSharable() for HALs" am: e72b6f0d31
am: 8cf7761747

Change-Id: I842bf4791467620e597018ce0e9441cfb0732026
2017-11-22 23:18:46 +00:00
Felipe Leme
430a757ff0 Merge "Minor improvements on autofill javadocs and logging." 2017-11-22 23:14:56 +00:00
Yifan Hong
8cf7761747 Merge "android.os.HidlSupport: add getPidIfSharable() for HALs"
am: e72b6f0d31

Change-Id: I7ea5895cdfd09786732b597be600329a334c1cb4
2017-11-22 23:06:33 +00:00
Yifan Hong
e72b6f0d31 Merge "android.os.HidlSupport: add getPidIfSharable() for HALs" 2017-11-22 22:51:19 +00:00
Christopher Tate
a732f014c5 The job scheduler now backs off jobs based on standby bucketing
The default parameters here translate to roughly this rate limiting:

  ACTIVE:   run jobs whenever
  WORKING:  ~ hourly
  FREQUENT: ~ every 6 hours
  RARE:     ~ daily

Bug: 63527785
Test: cts & manual (WIP)
      atest CtsJobSchedulerTestCases
Change-Id: I58f8e53e5bdf40601823e5a10a9f2383a6f67ae5
2017-11-22 22:07:06 +00:00
Dianne Hackborn
08bd3ea8ca Fix issue #68002319: Allow current VoiceInteractionService to avoid...
...activity launch delays.

Activity manager now has a new private mechanism for other services
to report which apps are allowed to bypass the launch delay restriction,
which voice interaction service uses.

Test: manual

Bug: 68002319
Change-Id: I44e9b67411b5106b81e8363dc22d4e54caeb83c1
2017-11-22 13:59:17 -08:00
Evan Rosky
560d5f851e Merge "Revert "Don't allow 0-sized views to be focused."" 2017-11-22 21:31:54 +00:00
Peter Visontay
51fbad5a76 Fix outdated docs of permission protection levels.
1) Added deprecation notice to the 'system' and 'signatureOrSystem' protection levels.
These were deprecated in API Level 23:
https://developer.android.com/reference/android/content/pm/PermissionInfo.html#PROTECTION_SIGNATURE_OR_SYSTEM
https://developer.android.com/reference/android/content/pm/PermissionInfo.html#PROTECTION_FLAG_SYSTEM

2) Removed an outdated list of protection levels from PermissionInfo.protectionLevel's JavaDoc.
Its Javadoc has a link to an up-to-date list.

Test: Ran "make docs".
Change-Id: Ia6dc88ba3a66f248f60f010323d5ba40200c1cda
2017-11-22 20:31:14 +00:00
Felipe Leme
601d220074 Minor improvements on autofill javadocs and logging.
Test: m update-api
Bug: 69456547

Change-Id: I2cab6d7d6ecbe7c1842a5be37af923dd20355b73
2017-11-22 12:17:01 -08:00
Todd Kennedy
916c83d227 Merge "Make sense out of scan & parse flags" 2017-11-22 20:02:48 +00:00
Jeff Sharkey
b8b579e1b8 Emit all APIs using Predicates.
Generate APIs using updated doclava.

Test: manual inspection of API text files
Bug: 69505783
Change-Id: I2efd22998a64ebb57588b073c4a591242f4aef91
2017-11-22 12:34:08 -07:00
Dianne Hackborn
1edf09c99b Merge "Fix issue #67019445: Detect BATTERY_LOW/OKAY" 2017-11-22 18:27:59 +00:00
Eran Messeri
3daba14f25 Merge "DevicePolicyManager: Make installed keys user-selectable by default." 2017-11-22 17:12:29 +00:00
TreeHugger Robot
7430d8d896 Merge "Notify apps when channels/groups are blocked/unblocked" 2017-11-22 15:55:53 +00:00
TreeHugger Robot
8377006984 Merge "Show warning when app was compiled against incompatible preview SDK" 2017-11-22 15:54:05 +00:00
Todd Kennedy
232d29e0cd Make sense out of scan & parse flags
Parse flags are often used confusingly to control policy during
APK parsing. Additionally, some flags [such as PARSE_IS_PRIVILEGED
or PARSE_IS_SYSTEM] aren't always determined based upon APK location
[they change based upon which apps are installed]. This means we
have to perform some gymnastics to set them correctly _before_
parsing a package.

Instead, these should be scan flags that can be determined at a
later point during package parsing. Then, based upon the scan flag
we apply policy on the package object to create the resulting
data structures.

Bug: 63539144
Bug: 69663125
Test: Manual; it builds, runs and applications can be installed / removed
Test: bit FrameworksServicesTests:com.android.server.pm.
Change-Id: I53fb18e58544e0a39f35eb6fb53c950e5c696aee
2017-11-22 15:39:04 +00:00
Jason Monk
da34022d12 Add meta-data constant for activity->slice
Test: its a constant
Change-Id: I331358bd9619beb413dfa98525b0f2589eaea8ae
2017-11-22 10:15:25 -05:00
TreeHugger Robot
e19dc30bd3 Merge "Check camera permissions for any devices using the VIDEO class" 2017-11-22 12:50:19 +00:00
TreeHugger Robot
b57c3db714 Merge "Add static dependency between key_store_service and IKeyStoreService.aidl" 2017-11-22 07:36:49 +00:00
Hugo Benichi
90e68c6869 Merge "Light refactors to packet wakeup events." am: e887e2b9c1
am: c6dc6baf4f

Change-Id: I4c19f1cdfe7a9fb47aad23a21b0aa0ae8e03277a
2017-11-22 05:27:11 +00:00
Hugo Benichi
c6dc6baf4f Merge "Light refactors to packet wakeup events."
am: e887e2b9c1

Change-Id: I40f637114cbfc04bce4058af0a1f43f38bd461db
2017-11-22 05:19:01 +00:00
Hugo Benichi
e887e2b9c1 Merge "Light refactors to packet wakeup events." 2017-11-22 05:08:50 +00:00
Dmitry Dementyev
75b760799f Add static dependency between key_store_service and
IKeyStoreService.aidl

Test: manual
Bug: 69539820
Change-Id: I1b65b0355635bf4bc8b16a7fba48d48a77e0ca46
2017-11-21 20:20:36 -08:00
TreeHugger Robot
f8d6392430 Merge "Output doze mode power in BatteryStats" 2017-11-22 02:55:50 +00:00
Jonathan Basseri
66e6139b00 Merge "Javadoc cleanup of IpSecManager API." am: d09d106ec0 am: 2a82aa70b5
am: 9f6a3431a1

Change-Id: Id10e39da5495f9367332cbc5c754506fc64f3c75
2017-11-22 02:10:32 +00:00
Jonathan Basseri
9f6a3431a1 Merge "Javadoc cleanup of IpSecManager API." am: d09d106ec0
am: 2a82aa70b5

Change-Id: I53e9b3d18fda1122f6a8a6300185c743cc26dbf6
2017-11-22 02:00:53 +00:00