310816 Commits

Author SHA1 Message Date
TreeHugger Robot
acdd269915 Merge "Fixing bad refactoring of orientation calculation." 2017-03-15 18:32:53 +00:00
Evan Rosky
42794029ce Merge "Changing initial and default focus behavior" 2017-03-15 18:17:51 +00:00
Chad Brubaker
67383eda56 Merge "Expose settings provider to Instant Apps" 2017-03-15 18:11:59 +00:00
Paul Lawrence
76a40575e8 Change vold cryptkeeper permissions to be more sensible
Bug: 35851488
Test: Check boots with default encryption and password encryption
Change-Id: I4afd07619369ef2b3ec86056e5c154823c73b5fd
2017-03-15 11:08:04 -07:00
Romain Guy
d70532d123 Don't apply the sRGB OETF twice on RGBAF16 bitmaps
Bug: 36250591
Test: BitmapRGBAF16Test
Change-Id: I39ca9e4bb666ab85066b5d45934f5f10210f6999
2017-03-15 11:04:33 -07:00
Mady Mellor
81d406104a Enables drag to dismiss for PiP and adds a dark scrim when dismissing
- Adds a scrim that fades in as the PiP is dragged past the bottom movement
  bounds.
- Tweaks the values for minimizing the PiP and dismissing the PiP
- Fixes an issue where the PiP could be minimized in the bottom corners
  of the screen

Test: Manual - drag PiP to bottom of screen to dismiss or swipe down on
PiP when it's at the bottom of the screen
Bug: 35358768
Bug: 35358628
Change-Id: Ib4ad5ed7094fef76ea979b46ea7e03d746625d00
2017-03-15 11:00:32 -07:00
Matthew Ng
bf1d985cc6 Clipping before keyguard dismiss animation occurs
When the keyguard is going away or from wallpaper, the clipping will be
applied before the animation starts to avoid showing the docked app over
the area that should be clipped by the divider in splitscreen.

Change-Id: I2ca8f77a2b5d514f65a2032d4279dcb4996814e1
Fixes: 34095975
Test: manual
2017-03-15 10:52:14 -07:00
Jean-Michel Trivi
6b7a4f7b95 AudioRecord: more information in text of IllegalArgumentException
Add more debug information inside the IAEs thrown during
  audio parameter check.

Test: try invalid params for recording, read exception text
Bug: 34119793

Change-Id: Ic4f36fd6ef99c18107e3204ef5e25cc1bc9e704d
2017-03-15 10:40:08 -07:00
Clara Bayarri
ff221613ec Provide ApplicationContext to Typeface for font requests
We were using a generic context that caused crashes for
the content providers.

Bug: 34657204
Test: manual, calling getCallingPackage() from the provider
doesn't crash anymore.

Change-Id: I2b61e6510d8c6647007987373d03ee5dc97c0889
2017-03-15 17:38:56 +00:00
Andreas Gampe
108c7737da PackageManagerService: Fix ABI adjustment logging
Fix logging of "Adjusting ABI" to be tolerant to null
packages.

Bug: 36172429
Test: m
Test: manual
Change-Id: Ic6b9a8e09e58dce6be97e464fe3986c709f820de
2017-03-15 10:38:54 -07:00
TreeHugger Robot
402a384ac8 Merge "Pass FontCollection to doLayout's argument instead of ctor" 2017-03-15 17:34:21 +00:00
Shubang Lu
3ff3dde601 Merge "TIF: add cable detection for TV inputs" 2017-03-15 17:29:11 +00:00
Bryce Lee
310de9e5ee Fix AppWindowTokenTests#testLandscapeSeascapeRotationByPolicy
Previously this test was marked as blocked by b/35034729. This bug
has been fixed, however the test still fails due to other issues
addressed here.

Addressed issues are as follows:
1. Updating rotation by display manager requires a display with the
default display id present. This display is removed during setup. The
first id to be used by a display after this point is the
default id + 1. We already have logic in place to avoid collisions so
it is safe and correct to start out at the default id.
2. Without allowing the animator to complete its steps after a
rotation, future rotations will be deferred. We must simulate the
steps taken by the and resulting from the animtor. These include
marking the orientation change as complete and performing a surface
placement afterwards.

Bug: 35034729
Test: bit FrameworksServicesTests:com.android.server.wm.AppWindowTokenTests
Change-Id: Ib01c047ac49982a4a3c1debaa3cee1b7b9b53632
2017-03-15 10:18:21 -07:00
Abodunrinwa Toki
7d9b297f8c Fix selected entity type.
This should be the highest scoring one, not the first one.

Test: cts-tradefed run cts-dev -m CtsViewTestCases -t
android.view.textclassifier.cts.TextClassificationManagerTest

Change-Id: Ib790d8aa4aeccdd7a7972eaa6c04ed4fc69ad00e
2017-03-15 17:17:36 +00:00
Seigo Nonaka
ac873c9f25 Clean up public FontConfig APIs
This CL contains following clean up:

- Hide unnecessary constructors.
- Change List<XX> to XX[] since actually all fields are immutable.
- Change font's variant type from String to int.
- Decouple resource related members to FontResourcesParser.
- Add NonNull/Nullable to all fields.

Test: ran android.content.res.FontResourcesParserTest

Change-Id: If456266ffff86d41342572a19662cc8f3cd13181
2017-03-15 10:16:55 -07:00
Garfield Tan
9bd2f6c990 Update path in MediaStore when moving/renaming a file/folder.
Also fix a bug that doesn't trigger directory specific update for
removal.

Test: Manual tests.
Bug: 31001477
Change-Id: Ibae8a7aa5c72c82dc5e3cb4951fbc91ea6456964
(cherry picked from commit c574ec40640d83dfbbb0f022103c6dfa774bca40)
2017-03-15 17:14:44 +00:00
TreeHugger Robot
7d754b150f Merge "Fix duplicate status bars once and for all" 2017-03-15 17:07:39 +00:00
TreeHugger Robot
be4cf58436 Merge "Add API to mark apps that have an update available" 2017-03-15 17:04:22 +00:00
Winson Chung
521f0114bf Prevent minimized state changing from other transitions.
- When calling adjustFocusedActivityStackLocked(), prevent the home stack
  from being brought forward if the task is not over the home stack.  This
  was causing issues with the docked stack triggering minimized mode when
  a task was removed in the assistant stack.
- When checking the visibility of the docked stack, only base it on the
  visibility of the assistant stack when it is above the docked stack.
  This was causing issues with the docked stack reporting as visible even
  when behind the assistant stack due to the subsequent code being run.

Bug: 35363819
Test: android.server.cts.ActivityManagerAssistantStackTests
Change-Id: I48cc901cb6b6166697a4130cc4639ee8f9581f02
2017-03-15 10:03:15 -07:00
Winson Chung
60c1abaa59 Fixing bad refactoring of orientation calculation.
- The orientation needs to be calculated from the screen width/height,
  which are set below the current calculation of the orientation (whoops).
  This bug was introduced in ag/1905010 and causes extra configuration
  changes due to the configuration orientation being set correctly before
  it is corrected on the next change (at the end of the transition).

Bug: 36099204
Test: android.server.cts.ActivityManagerPinnedStackTests
Change-Id: Ieca1f73fe61fc1dcea106535c019b52d126b8743
2017-03-15 10:01:10 -07:00
Winson Chung
0727922781 Merge "Fixing crash when enforcing top stack." 2017-03-15 16:58:23 +00:00
Felipe Leme
2ac463e3f5 Allow users to manually request Autofill.
- Added a requestAutofill(view,flags) method, that when passed with
  FLAG_MANUAL_AUTOFILL triggers a manual request.
- Added same method for virtual views
- Overloaded existing AutofillService request methods to take a flag.
- Added an AUTOFILL context menu option on TextViews.
- Added a canRequestAutofill() that is used to enable the context menu.

BUG: 35708229
Test: manual verification
Test: existing CtsAutoFillServiceTestCases pass
Test: android.autofillservice.cts.LoginActivityTest#testManualAutofill pass

Change-Id: I1a64d40da3373774451d178b1cabf20f11120e9d
2017-03-15 09:37:10 -07:00
Dmitry Dementyev
538d5a3d07 Merge "Allows AccountManager to start exported activities." 2017-03-15 16:26:26 +00:00
Philip P. Moltmann
0ab7ad5839 Merge "Do not filter non text values." 2017-03-15 16:10:05 +00:00
TreeHugger Robot
13b13f0816 Merge "Remove qs_footer_dialog_network_logging_icon_alpha" 2017-03-15 15:47:03 +00:00
Derek Sollenberger
29cd3e9226 Modify createBitmap w/ crop and matrix to not rely on Canvas.setBitmap
Test: CtsGraphicsTestCases BitmapTest
Bug: 36218535
Change-Id: I972f3ed6d037f6cae7a36fd2e612df9ab40a8b2d
2017-03-15 11:28:50 -04:00
Jason Monk
0a7d9f275e Fix duplicate status bars once and for all
Save the state when the fragment is getting re-created so we come
back up in the same state we left in.

Fixes: 36082443
Test: Change density using "adb shell wm density"
Change-Id: I531de728b1f4bf59d4def7ebc5562b3a1ee6694b
2017-03-15 11:03:42 -04:00
Todd Kennedy
ab53289c59 Add API to mark apps that have an update available
Ostensibly for instant apps, we allow play to mark an app as having
an update available. This will trigger instant app resolution even
if the instant app is already installed on device.

Bug: 35143464
Test: Manual; launch URI of installed instant app, see it runs w/o resolution. set bit. launch URI of installed instant app, see it runs resolution
Change-Id: I511df2b2a3eab39377167c770255ccbe02d5dad2
2017-03-15 07:31:09 -07:00
Jason Monk
60c5cf2e69 Fix light status bar transition
It always thought the keyguard was going away which was messing with
a bunch of transitions.

Change-Id: Ie50fe71e3f75aa123db7e147ac0402d459b80536
Fixes: 34975365
Test: Open app with light status bar
2017-03-15 10:26:37 -04:00
Robin Lee
5760fd9b9c Remove qs_footer_dialog_network_logging_icon_alpha
This washes out the network logging icon in the network monitoring
dialog, making it look strange compared to the dark VPN key.

Fix: 35620542
Test: inspection of dialog
Change-Id: I72bc6337b88b16235dab7b48d11efee4410ede5e
2017-03-15 14:06:59 +00:00
Diego Perez
f33a037907 Merge "Workaround for broken BitmapShader in AdaptiveIconDrawable" 2017-03-15 12:43:24 +00:00
TreeHugger Robot
3c00239050 Merge "TextClassificationManager: Update model file reference." 2017-03-15 12:37:46 +00:00
Joachim Sauer
dd0f47a9da Merge "Change Czech Republic to Czechia" am: 027a67062e am: 14bcec27a0
am: 9b30497243

Change-Id: I78d646c5052e29662f523dc4ae6ce3ecb5d4768d
2017-03-15 12:07:40 +00:00
Joachim Sauer
9b30497243 Merge "Change Czech Republic to Czechia" am: 027a67062e
am: 14bcec27a0

Change-Id: Ia8b2bcf8d01aaad715f2bd4051fc7dc011735569
2017-03-15 12:02:27 +00:00
Joachim Sauer
14bcec27a0 Merge "Change Czech Republic to Czechia"
am: 027a67062e

Change-Id: I51fc6fde5647b1fd8ecc677da7f6ec7a248a3b38
2017-03-15 11:57:28 +00:00
Treehugger Robot
027a67062e Merge "Change Czech Republic to Czechia" 2017-03-15 11:45:45 +00:00
Narayan Kamath
bf07e2a1da LoadedApk: Notify cross-package use only when code is requested.
Cross-package use is quite common when only resources are being
considered. A common example is that any application that declares
itself <searchable /> will see cross package resource only use from
the system_server.

Test: manual instrumentation.
Change-Id: Ic7ad166c71a23c6026f4e12bb52309a50210aaaf
2017-03-15 11:37:32 +00:00
Erik Kline
af39244a34 Add blocking and retrying wrappers for INetd uses.
Test: as follows
    - built (bullhead)
    - flashed
    - booted
    - runtest frameworks-net passes

Change-Id: I1a8e15149bf9dbedc6a09c0d8ab6abb2ef4f8fee
2017-03-15 16:23:29 +09:00
TreeHugger Robot
d3b1def2eb Merge "Enable cache clearing v2 logic, fix bugs." 2017-03-15 07:16:43 +00:00
Hugo Benichi
ec27c4d9f3 Connectivity metrics: simplify ConnectivityMetricsEvent
Now that ConnectivityMetricsEvent is only used for core networking
metrics and is not @SystemApi anymore, remove unused fields and prepare
for additional new fields.

Test: updated unit tests, $ runtest frameworks-net passes
Bug: 34901696
Change-Id: I15abad19981d491f16f2a3afe401f1e833079907
2017-03-15 15:12:38 +09:00
Jeff Sharkey
e730ae877a Enable cache clearing v2 logic, fix bugs.
Now that we have CTS tests to verify the cache clearing v2 logic,
we're ready to enable it!

Switch storage APIs over to "usable space" to match implementation
down in installd.  Add a missing clearCallingIdentity(), and offer
better logging for missing appop permission.

Load quotas from disk right away at device boot instead of waiting.

Bug: 35685848, 35684969
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.StorageHostTest
Change-Id: I8167e0322b4662ca6c975da5c50715e2d71332a7
2017-03-14 23:39:03 -06:00
TreeHugger Robot
a98767ab7f Merge "Apply static RRO" 2017-03-15 04:30:33 +00:00
TreeHugger Robot
1809db5cb1 Merge "IP connectivity metrics: add new APF counters." 2017-03-15 04:24:30 +00:00
Hugo Benichi
22d9b2d430 IP connectivity metrics: add new APF counters.
This patch adds a few missing counters to APF events:
 - an actual lifetime duration to ApfProgramEvent.
 - counters for total number of updates to ApfStatistics.

ApfProgramEvents are now recorded at program removal in order to
populate the actual lifetime of the program. ApfProgramEvents whose
actual lifetime was less than 1 second are filtered out.

Finally, instance fields of ApfProgramEvent and ApfStats classes are
made mutable to allow for simple record-like creation. This was not
possible when these classes were tagged @SystemApi.

Test: - manually verified output of $ dumpsys connmetrics list
      - unit tests updated.
Bug: 34901696

Change-Id: I02694ebb9421ce1c2aa757fa6aa209d19a654dcd
2017-03-15 11:49:48 +09:00
Erik Kline
9f5e699093 Merge "Add comment with packet tracker debugging tip" am: 40aa5ee583 am: 17dd8723b7
am: 663269bae2

Change-Id: Iacf172a6b6e1b62bc84af8b5fcdd1745acfe987f
2017-03-15 02:47:52 +00:00
Erik Kline
663269bae2 Merge "Add comment with packet tracker debugging tip" am: 40aa5ee583
am: 17dd8723b7

Change-Id: I1d937d99d58ae031d6bf86f3407669bf47d5c037
2017-03-15 02:43:19 +00:00
TreeHugger Robot
2a22642567 Merge "Workaround for b/36228253" 2017-03-15 02:42:44 +00:00
Erik Kline
17dd8723b7 Merge "Add comment with packet tracker debugging tip"
am: 40aa5ee583

Change-Id: I0f5f139f81af23ddc33e37ddf489a477e37c394f
2017-03-15 02:38:51 +00:00
TreeHugger Robot
42abe23ae3 Merge "Block modifying channel IDs of preview programs" 2017-03-15 02:34:02 +00:00
Adam Lesinski
22b0d5dc6b Merge "AAPT2: Add -A (assets) support" 2017-03-15 02:30:37 +00:00