309611 Commits

Author SHA1 Message Date
Todd Kennedy
1fb3404b2b Refactor EphemeralResolverService
* Change name to InstantAppResolverService
* Left old service in place to handle existing client
  [to be removed prior to O launch]
* When resolving phase II, return a list instead of a single item

Bug: 34763730
Test: Build and verify resolution occurs w/ legacy & new resolver service
Change-Id: Ieccaf91538bd91c04f4be4e35d8264619d7cd6d7
2017-03-03 15:45:20 -08:00
TreeHugger Robot
870c26af90 Merge "Minor documentation fixes." 2017-03-03 23:44:05 +00:00
Roozbeh Pournader
46c6f4c5ea Frameworks support for hyphenation for various complex cases
This adds better support for Arabic script languages, Armenian,
Catalan, Hebrew, Kannada, Malayalam, Polish, Tamil, and Telugu by
adding various hyphenation types and edits appropriate for the
locales.

The actual implementations are in Minikin. This CL takes care of the
changes needed in frameworks, to support different end-of-line and
start-of-line hyphen edits.

Two bugs in TextLine.java are also fixed:

1. Where hyphen edits on non-spanned texts were not eliminated in
handleRun() when they should have. This had manifested itself in
double hyphenation in some bidi paragraphs.

2. Some no op assignments and comparions around the change for the
above bug are removed.

Test: thorough manual testing for various cases
Bug: 19756624
Bug: 19950445
Bug: 19955011
Bug: 25623243
Bug: 26154469
Bug: 26154471
Bug: 33387871
Bug: 33560754
Bug: 33752592
Bug: 33754204
Change-Id: I48c047d1f6a75c39a78a6ea38a0a3282f63326ec
2017-03-03 15:34:42 -08:00
Selim Cinek
c0ac4af13b Improved expand accessibility experience
The expand action is now on the notification itself
instead of the expand button, this way a user immediately
know if it is expanded.
It also improves the click feedback of the expand button

Test: add notifications, observe accessibility feedback
Change-Id: I9c397d839df52d5354d7ae16725ce3e595da19c7
Fixes: 32322410
Fixes: 35064589
2017-03-03 15:13:48 -08:00
TreeHugger Robot
c2c345d613 Merge "Fix crash in secondary user" 2017-03-03 23:10:32 +00:00
Todd Kennedy
04cc191c3c expose isSealed() from the installer session
Change-Id: I5232a012fbee8931b0e3f584d6bb2e273a789dee
Fixes: 35948628
Test: Manual
2017-03-03 15:03:30 -08:00
Nathan Harold
de02aeb92b Merge changes from topic 'sms-file-refactor'
* changes:
  Permit privileged system apps to send SMS without persisting.
  Move newFromRil() function to a utility class
  Remove dependency on telephony-common from services/core
  Move OTASP_* Consts from ServiceStateTracker to TelephonyManager
  Port Utility Functions from DefaultPhoneNotifier
  Remove dependency on IccConstants from SmsManager
  Merge branch 'stage-telephony-refactor' into master
2017-03-03 22:51:43 +00:00
Julia Reynolds
3fb989b1b6 Change group ranking.
Rank notification groups where the highest child ranks

Change-Id: Ia45455a34fc10ece75e11a7b58c60a6b2e59a7c3
Fixes: 34844490
Test: notificationtestlist
2017-03-03 17:47:39 -05:00
TreeHugger Robot
f1e54c9a1c Merge "Modify SurfaceView to use SurfaceFlinger child surfaces." 2017-03-03 22:45:24 +00:00
Felipe Leme
dbe07a587c Add forAutoFill suffix on ViewStructure methods that add children.
Change-Id: I36f7bd26b7d45fd809d7398cc86de3d2671f2b28
Fixes: 35764877
Test: m update-api
2017-03-03 14:33:07 -08:00
TreeHugger Robot
e096df0063 Merge "Adding support for passing arbitrary extras when requesting to pin a widget. Also defining an extra constant for widget preview which can be used by developers to provide a snapshot of the widget with the pin request" 2017-03-03 22:26:49 +00:00
TreeHugger Robot
bb80cfa7a7 Merge "Fix qs tiles disappearing when leaving edit" 2017-03-03 22:26:21 +00:00
Billy Lamberta
75dbc8f9c1 Set hdf var 'dac' to true in droiddoc options.
Allows for DAC template customizations in Doclava.

Test: make offline-sdk-docs
Change-Id: I11aa79eeba2f7440fa68ee92276eecec6db7f836
2017-03-03 14:25:58 -08:00
Adrian Roos
28d26a821f AOD: Refactor always on configuration
Moves the AOD configuration helper to the framework such that it is
available outside SystemUI

Bug: 30876804
Change-Id: Ic35bd3c04d150fd3eb85d76db0043880b31a011f
2017-03-03 14:25:36 -08:00
Alex Klyubin
1991f57230 Restrict access from apps to bluetooth_address setting
BluetoothManagerService for some reason leaks the Android's Bluetooth
MAC address via Settings.Secure which is normally readable by all
apps. This lets apps bypass the restriction on access to Bluetooth MAC
address from apps.

This commit fixes the issue by restricting access to bluetooth_address
secure setting (Settings.Secure). Only packages which hold the
android.permission.LOCAL_MAC_ADDRESS permission retain access.

This commit accordingly grants LOCAL_MAC_ADDRESS permission to the
system Shell app because a number of scripts (including Android CTS)
use "adb shell settings get secure bluetooth_address" as a convenient
way to query the device's Bluetooth MAC address over ADB. This is
acceptable because the user of the device can see the Bluetooth MAC
address and thus it's fine for shell to be able to see the address as
well.

Test: See CTS test added in the cts project in this topic.
Test: "adb shell settings get secure bluetooth_address" returns the
      Bluetooth MAC address of the Android.
Test: "adb shell settings list secure | grep bluetooth_address"
      returns the Bluetooth MAC address of the Android.
Test: Bluetooth works (toggling off/on, pairing, file transfer)
Bug: 33701414

Change-Id: I17b110b96eb3794b25c1661e93d29a7a003e3c9a
2017-03-03 14:25:14 -08:00
Amith Yamasani
1645203104 Mark ACTION_VOICE_ASSIST as SystemApi
.. since it is implemented by a system app. This allows the
CTS test that verifies android.* namespace intents to pass.

Change-Id: I083e1d12a79fa67e15158ca7390353303cd0e06e
Fixes: 35274957
Test: cts-tradefed run cts-dev -m CtsSignatureTestCases
2017-03-03 14:13:28 -08:00
Felipe Leme
de4d4c2083 Minor changes on AutoFill Save UI.
- Fixed subtitle layout.
- Added a Shell command to change snackbar lifetime (so CTS tests can verify
  it's dismissed).

BUG: 35727295
Test: CtsAutoFillServiceTestCases (with new tests) pass
Test: manual verification

Change-Id: Ie6d42c94599ad59a319ca6f6a1ab02882f8d5f81
2017-03-03 14:09:29 -08:00
Philip P. Moltmann
4461181f4b Don't run autoFill on detached view or mode=manual
We only run autoFill on views that are attached, auto-fillable, not
auto-fill blocked, resolvedMode=auto and focused. If any of the
conditions change we have to re-evaluate the auto-fill state.

This reverts commit e572989b3f838cc76b51699710d11aa2f992a474.

Test: Ran amended ViewAttributesTest, set a PIN for the device
      (previously crashed)
Bug: 35701500
Change-Id: Idcdf1fd7b7dee6bfbc800fb84fdc1c72dcb088f9
2017-03-03 14:02:43 -08:00
Adam Lesinski
136fd0764f AAPT2: Fix parsing ResTable_type
ResTable_type's size changes due to it containing
ResTable_config. Make sure we check for the minimum size
required to read it.

Bug: 35861796
Test: Manual (don't have an integration test harness setup yet)
Change-Id: Ifb0cd1d732625f59835c8ed0449adb78129636de
2017-03-03 14:01:09 -08:00
Ajay Panicker
467bc04b0d Bluetooth: Use content observer for airplane mode
We are making this switch as the airplane mode switch intent is going away.

Fix: 35256299
Test: Toggle Airplane Mode
Change-Id: I3b1e5bbdf689b0db98cfbb0ab377198d34f0ba05
2017-03-03 14:00:18 -08:00
TreeHugger Robot
06b11b7000 Merge "Move framework-specific portions of pathmap.mk into frameworks/base" 2017-03-03 21:59:28 +00:00
TreeHugger Robot
4bf70f5f43 Merge "Fix initial StatusBar wiping out disabled state" 2017-03-03 21:59:02 +00:00
Felipe Leme
235770d4ee Minor documentation fixes.
Test: m update-api
Bug: 33550221

Change-Id: I757f161eb78a5c0c662743f35a372c91130c5b34
2017-03-03 13:58:36 -08:00
TreeHugger Robot
638903002e Merge "OMS: Introduce default overlays" 2017-03-03 21:36:11 +00:00
Daniel Nishi
045d07b47f Merge "Persist the debug time correction flag." 2017-03-03 21:35:18 +00:00
Makoto Onuki
3303cd3f9a Fix crash in secondary user
Test: manual test
Change-Id: If406807094f216fd3cfd80db7c6498c954a3fc95
Fix: 35938801
2017-03-03 13:33:05 -08:00
Anton Philippov
fb887a69b6 Pass an empty list to PerformBackupTask constructor instead of null
Recent changes to PerformBackupTask made it expect empty list rather
than null for the ArrayList<String> pendingFullBackups argument.

Bug: 35420596
Test: manual
Change-Id: I8e1f69e78856b9bb8fc8aa9ab1adcac634314a36
2017-03-03 21:19:36 +00:00
TreeHugger Robot
eb9e80ad44 Merge "Use SkPaint.nothingToDraw instead of PaintUtils helper." 2017-03-03 21:09:46 +00:00
Paul Lawrence
ffad2adfa5 Make seccomp honor setenforce
Note: This code is in frameworks, since we might want to have tools
linked against seccomp_policy that continue to enforce seccomp

Bug: 35950093
Test: Builds, Seccomp: 2 is in zygote & zygote64 status
      Run setenforce 0 && stop && start
      Seccomp: 0 is in zygote & zygote64 status

Change-Id: I797a6c29f58725f84089c570f784125fb99f57ce
2017-03-03 13:08:08 -08:00
Robert Carr
cd4aeef880 Modify SurfaceView to use SurfaceFlinger child surfaces.
Here we have SurfaceView bypass the WindowManager and speak
directly to SurfaceFlinger using child surfaces. We also
implement some logic in the WM to handle child surfaces
in various Surface replacement scenarios.

For those following along in the revert Saga, this
also includes the follow up CLs to the original CL.
- Surface inset calculation
- Animation fixes.

The error causing revert was a deferTransactionUntil(-1)...-1
cast to uint, defer transaction until MAX_UINT.

Bug: 28858420
Bug: 31518219
Bug: 34888808
Bug: 35588318
Bug: 35396882
Test: Existing tests still pass (except for the ones that don't and will be deleted).
Change-Id: Ib37236950a1dd3c4f9f4b58fd41ef9003c0557ef
2017-03-03 13:06:59 -08:00
Winson Chung
d95687c3ef Removing check for launched-from package to expand PiP.
Bug: 35946309
Bug: 35927986
Test: android.server.cts.ActivityManagerPinnedStackTests
Change-Id: I71ed03dc664a080e93427c6e18a4c1e7ff99d726
2017-03-03 20:59:01 +00:00
Philip P. Moltmann
8f40508d81 Merge "Add autoFillHint property to view" 2017-03-03 20:53:43 +00:00
Paul Mclean
bfde1bea54 Merge "nativemidi: Prototype demonstrating native access to IMidiDeviceServer" 2017-03-03 20:51:48 +00:00
Mathias Agopian
df7707cb4f fallout of cleaning-up libutils includes
Test: run & compile
Bug: n/a
Change-Id: I0f6a0be03f4b120b1b5876aae0c0618c025d9f2b
2017-03-03 12:37:54 -08:00
Selim Cinek
fc0f937722 Waiting for reinflating the notifications until the user switched
Previously we would react to density changes immediately even if
we were still switching users, which could apply a new density
to the wrong notifications.
We're now waiting until we actually switched.

Test: add notifications on different user with different density, switch
Change-Id: Ieb0094ba6740bd5b9c53b275127bd128bc19236e
Fixes: 30839163
2017-03-03 12:36:42 -08: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
Jason Monk
00659bad38 Fix initial StatusBar wiping out disabled state
It was injecting some current disabled state before it actually
had any, which made us lose the disabled state.

Change-Id: Ie6947e72733212e3efcfaea09a59e586ae35fb1d
Fixes: 35767933
Test: Set pin, go to bouncer, look at home
2017-03-03 20:19:23 +00:00
Srinivas Visvanathan
dc4115baab Merge "Defining extras for New Unread-Message Broadcast" 2017-03-03 20:09:41 +00:00
TreeHugger Robot
e8f090d7c8 Merge "Allow resid notification channel group labels." 2017-03-03 19:45:45 +00:00
Jason Monk
99f8f8050f Merge "QS: Fix up non-dual target touches" 2017-03-03 19:38:50 +00:00
Daniel Nishi
b52ba99d00 Merge "Save/load calculated cache quotas to a file." 2017-03-03 19:35:26 +00:00
Derek Sollenberger
792fb3252f Use SkPaint.nothingToDraw instead of PaintUtils helper.
The PaintUtils helper is now shared between all pipelines and was
missing a quick reject test for drawLoopers which are used in
view.setShadowLayer and supported in the Skia pipelines.

Bug: 35809097
Test: added hwui unit test and verified in DocumentsUI app
Change-Id: I3c4a988f1c42b7f421f78ac3659af1daee910ea2
2017-03-03 14:24:58 -05:00
Peter Qiu
fa308f3257 Merge "wifi: WifiConfiguration: update documentation for isHomeProviderNetwork" am: 6ac19c0d23 am: be39334afb
am: 8cf05dfe92

Change-Id: Iecbe5a8d084302a2fa8ca49495ef93df78607428
2017-03-03 19:22:10 +00:00
Peter Qiu
8cf05dfe92 Merge "wifi: WifiConfiguration: update documentation for isHomeProviderNetwork" am: 6ac19c0d23
am: be39334afb

Change-Id: I922cadda8d9becd391dbaffc0da7e098bdda89f6
2017-03-03 19:16:14 +00:00
Peter Qiu
be39334afb Merge "wifi: WifiConfiguration: update documentation for isHomeProviderNetwork"
am: 6ac19c0d23

Change-Id: Ia4966b2d8109a85a94f59d7ec57b387a8f6f612e
2017-03-03 19:10:46 +00:00
Treehugger Robot
6ac19c0d23 Merge "wifi: WifiConfiguration: update documentation for isHomeProviderNetwork" 2017-03-03 19:02:28 +00:00
TreeHugger Robot
9635fbd7c5 Merge "handle case where user == USER_ALL" 2017-03-03 19:00:51 +00:00
Mikhail Naganov
c276c59eb5 nativemidi: Prototype demonstrating native access to IMidiDeviceServer
Framework changes and a demo app
Comment and finalized Native MIDI API
Replaced fixed PortRegistry tables with std::map.
more error handling.
Removed not-very-useful MidiDeviceManager class.
Made Java API functions @hide.

Bug: 30252756

Test: Manual
Change-Id: Iae98e589f38ef6d625ff0842401193fe98c5d881
2017-03-03 12:00:33 -07:00
Mathias Agopian
1e92e7fbfc Merge "Revert "Remove AHardwareBuffer_ API from libandroid"" 2017-03-03 18:47:52 +00:00
Yang Ni
45438c9402 Removed close guards for Element and Type objects
Bug: 28053769

These objects are tiny and unlikely to cause memory issues.

In addition, llvm-rs-cc auto-generated code contains such objects, which are
not visibible to developers and impossible to manually destroy, leaving
distracting warnings in Strict Mode.

Test: RsTest with StrictMode on and CTS tests

Change-Id: Iec68cca4f1259124b9f503a230c1a28b97ede1f3
2017-03-03 10:44:30 -08:00