Commit Graph

335938 Commits

Author SHA1 Message Date
Jason Monk
e389d6e39e Don't auto-expand QS from detail panels
We don't have tiles that launch detail panels from collapsed state
anymore, and its getting in the way of animateExpandSettingsPanel.

Test: visual
Change-Id: I9e8049f775a7ed7a9fe1aac035a7527a997707bc
Fixes: 62912307
2017-08-30 18:47:09 -04:00
TreeHugger Robot
6a1dad9194 Merge "Fix tooltips for views in a popup window" into oc-mr1-dev 2017-08-29 19:08:30 +00:00
Sudheer Shanka
903dc2fdd2 Merge "KernelUidCpuFreqTimeReader: Put logs under debug flag." into oc-mr1-dev 2017-08-29 17:40:33 +00:00
Jakub Pawlowski
f507490404 Fix GATT client leakage when scan is throttled (1/2)
Currently, scan throttling happens after client is registered, but
before the scan is started. This might lead to scan client being leaked.
This patch fixed that by moving check before client registration.

Bug: 64887233
Test: manual
Change-Id: I22ae624a0c51110cb69679f796926e3b2b36d0ac
Merged-In: I22ae624a0c51110cb69679f796926e3b2b36d0ac
(cherry picked from commit ee02e1ce77)
2017-08-29 17:26:23 +00:00
Bryce Lee
02584a23b3 Merge "Remove activity from stopping activities once resumed." into oc-mr1-dev 2017-08-29 17:13:58 +00:00
Nick Desaulniers
a7e34096af Merge "DeviceInfoUtils.java: support to show kernel version compiled with clang" into oc-mr1-dev 2017-08-29 16:37:28 +00:00
Jean-Michel Trivi
c3fcd65e61 Merge "AudioService: log volume commands and origin" into oc-mr1-dev 2017-08-29 16:35:45 +00:00
Jorim Jaggi
54f40fa1e6 Merge changes I36ec1bf3,Ic5f11074 into oc-mr1-dev
* changes:
  Fix transition between two occluding activities
  Use Keyguard orientation when unoccluding
2017-08-29 11:32:07 +00:00
Sudheer Shanka
6b1396e8fe KernelUidCpuFreqTimeReader: Put logs under debug flag.
Bug: 63041570
Test: N/A
Change-Id: Ifdeacb227bb936de82af9c9505621b327de3a9d2
2017-08-28 23:06:38 -07:00
TreeHugger Robot
55309e79cf Merge "Hides the Save UI while handling a pending intent from CustomDescription." into oc-mr1-dev 2017-08-29 03:13:57 +00:00
Felipe Leme
c24a56ae06 Hides the Save UI while handling a pending intent from CustomDescription.
When the AutofillService sets a PendingIntent to launch an activity when
clicking a chield view (for example, to lauch a web page displayign the terms
and conditions of saving something), the system must hide the Save UI and
restore it after the new activity is dismissed.

That sounds simple in the surface, but it requires a huge refactoring behind
the scenes, such as injecting a token in the activity intent and using that
token to hide / cancel the UI during some activity lifecycle events.

Test: lotta of brand-new shinning tests on CtsAutoFillServiceTestCases
Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases

Change-Id: Ie8ec7aeb2c63cab68467046c1a9dcf85dbcc24ec
Fixes: 64309238
2017-08-28 18:04:15 -07:00
Svetoslav Ganov
25e5a3446e Merge "Grant location to default launcher" into oc-mr1-dev 2017-08-29 00:47:25 +00:00
Yongqin Liu
700fc55a92 DeviceInfoUtils.java: support to show kernel version compiled with clang
The kernel version displayed in settings is only shown correctly
when built with gcc, this change adds support for a kernel built
with clang.

Test: manually on hikey with following command:
adb shell am instrument -w -e class com.android.settings.DeviceInfoSettingsTest com.android.settings.tests.unit/android.support.test.runner.AndroidJUnitRunner

Fixes: 32547905
Test: manual inspection of clang and gcc build kernel Settings.
Change-Id: I9b7991681cb5abdf44e7d1d1bff84c7c866be2ed
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
2017-08-28 16:34:34 -07:00
Jean-Michel Trivi
cf17036a21 AudioService: log volume commands and origin
Add volume logger for volume events.
Move AudioService event definitions to separate file.

Test: change volume with volume buttons and dumpsys audio
Bug: 64470715

Change-Id: I25db849bffb4a41a737d226cfc40e2c6f7e0ecc0
2017-08-28 16:26:52 -07:00
TreeHugger Robot
61492c85ba Merge "Listen TRANSPORT_BLUETOOTH network change in GnssLocationProvider" into oc-mr1-dev 2017-08-28 23:20:18 +00:00
Zheng Zhang
626f3cabf8 Listen TRANSPORT_BLUETOOTH network change in GnssLocationProvider
TRANSPORT_BLUETOOTH is a essential network type for wearable device.

For non-master branch, only listen to Bluetooth on wearable device.

Bug: 64881794

Test: Trigger Bluetooth on/off on watch, check if UpdateNetworkState()
got called.

Merged-In: I30e39943220597987320ea7843d7d36827fdd0c7

Change-Id: I30e39943220597987320ea7843d7d36827fdd0c7
(cherry picked from commit d6886710b5)
2017-08-28 23:19:01 +00:00
TreeHugger Robot
b49fa21828 Merge "Low ram devices recents list is throwable" into oc-mr1-dev 2017-08-28 23:07:50 +00:00
TreeHugger Robot
f3f7a101fb Merge "Bump special windows layer adjustment" into oc-mr1-dev 2017-08-28 22:33:14 +00:00
Svet Ganov
5bb6bc6e52 Grant location to default launcher
Test: updated DefaultPermissionGrantPolicy test which passes

bug:62959599

Change-Id: Ifaac04758348049dd170a7e7b7ac234dced5f759
2017-08-28 15:12:05 -07:00
Bill Yi
156955898f Import translations. DO NOT MERGE
am: e0fec63824  -s ours

Change-Id: I6c1b10a7eef1aa0b75bff31db698d7601ae89ead
2017-08-28 20:29:53 +00:00
Eugene Susla
933108ed14 Merge "Avoid running hasCompanionDevices on main thread" into oc-mr1-dev 2017-08-28 19:43:31 +00:00
Nate Fischer
c233f44a26 Merge "WebView: require APKs to target OMR1" into oc-mr1-dev 2017-08-28 19:36:29 +00:00
TreeHugger Robot
619503b279 Merge "Add equal overloads to some MediaDescription and MediaQueue objects (2/3)" into oc-mr1-dev 2017-08-28 19:26:41 +00:00
Nate Fischer
220d86d142 WebView: require APKs to target OMR1
This disallows WebView/Monochrome APKs targeting O or below to be chosen
as WebView providers.

Bug: 65080651
Test: Open WebView shell with webview from system image, no crash
Test: Install Monochrome compiled for O, it's not in the webview provider list
Change-Id: I79162cedaa801ce227ad4c2eb3cbea9c08704da8
2017-08-28 12:15:56 -07:00
Fyodor Kupolov
30c565d399 Merge "Added tron metrics for shutdown time" into oc-mr1-dev 2017-08-28 18:41:52 +00:00
TreeHugger Robot
0fe2910c37 Merge "Remove extra horz padding on GlobalActions labels." into oc-mr1-dev 2017-08-28 17:52:08 +00:00
Jean-Michel Trivi
72cf1a4fa2 Merge "AudioManager: permission annotations" into oc-mr1-dev 2017-08-28 16:27:27 +00:00
TreeHugger Robot
b6cf707632 Merge "Don't autogrant permissions on managed profiles" into oc-mr1-dev 2017-08-28 15:00:48 +00:00
Jorim Jaggi
791ccc00aa Fix transition between two occluding activities
This fixes an issue when starting an activity that occldues
Keyguard with the window flag from an activity that is already
occluding Keyguard. Normally we wait until the transition starts
until the next activity had a chance to set its layout flag
(FLAG_SHOW_WHEN_LOCKED) with the UnknownVisibilityController.

Now, since setAppVisibility(false) was called after immediately
starting the activity, we removed the activity immediately from
the UnknownVisibilityController waiting list and then unoccluded
Keyguard.

We fix this by only removing the activity from the waiting list if
the app is actually hidden and not just because it's hidden by
Keyguard.

This regressed from I745e985766a1af97203e1d22b6443dabdd0c0363
because calling setVisible(true) was setting the token's visible
to true. Then, setVisible(false) was NOT ignored anymore.
Previously it was just ignored because the app wasn't made visible
yet from WM perspective.

Test: go/wm-smoke
Test: android.server.cts.KeyguardTransitionTests#testNewActivityDuringOccluded
Test: Launch camera from Keyguard with animation transition scale
set to 0. (regression test)

Change-Id: I36ec1bf335c48baf298e78620381bdd0be34aa1d
Fixes: 65061212
Bug: 37677242
2017-08-28 15:52:38 +02:00
Jorim Jaggi
75520d5cad Use Keyguard orientation when unoccluding
If we are about to unocclude Keyguard, we already use its
orientation spec such that if both Keyguard and the activity
going aways share the same orientation spec, there is no
unnecessary orientation change.

Test: Launch SHOW_WHEN_LOCKED portrait activity, hold device
in landscape, toggle power button twice, press home, make sure
no orientation change when animating to Keyguard.
Test: go/wm-smoke

Change-Id: Ic5f110747de5f5f7d73adf83f5f53c7fd56d860c
Fixes: 38146081
2017-08-28 15:52:21 +02:00
TreeHugger Robot
91f4071ff6 Merge "switch to native_handle_create() for passing ownership" into oc-mr1-dev 2017-08-28 06:47:52 +00:00
Bill Yi
e0fec63824 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Ida2b6138972c18c15b86e7822d010c4a675ab762
2017-08-27 11:43:06 -07:00
TreeHugger Robot
d7d9b8939e Merge "DO NOT MERGE Use CREATE instead of CREATE2 for 3.10 kernel" into oc-mr1-dev 2017-08-26 11:26:42 +00:00
TreeHugger Robot
3ea1e3d57d Merge "Add API to disallow entering PiP when launching a new activity" into oc-mr1-dev 2017-08-26 06:22:34 +00:00
Siarhei Vishniakou
388ca7feb0 DO NOT MERGE Use CREATE instead of CREATE2 for 3.10 kernel
CREATE2 structs were introduced after kernel 3.18,
so cannot compile user code with uapi headers from
newer 3.18+ kernels. If using CREATE structs then
compatibility is preserved.

Bug: 64981084
Test: bit
Change-Id: I97c7725918b09a817a51c13384ac2d55a6cfab25
CtsHardwareTestCases:android.hardware.input.cts.tests.GamepadTestCase
2017-08-26 05:05:19 +00:00
TreeHugger Robot
4ce5d83e52 Merge "Bluetooth: Add developer options to show devices without names" into oc-mr1-dev 2017-08-26 02:37:54 +00:00
TreeHugger Robot
d489d122f4 Merge "O MR1 is API 27" into oc-mr1-dev 2017-08-26 02:29:51 +00:00
Jean-Michel Trivi
26ae15f487 AudioManager: permission annotations
Add permission annotations on audio focus @SystemApi methods.
Ignore REQUIRE_PERMISSION error (125) for:
 - deprecated abandonAudioFocus() method: the check is on the
    request call
 - isHdmiSystemAudioSupported() method, it's not clear if it's
    being used.

Test: remove "-hide 125" in Android.mk and make, verify no errors\
    on AudioManager.java
Bug: 62343127

Change-Id: I62526db0c6dabcc34224c589506d611519de6abc
2017-08-25 19:20:49 -07:00
Eugene Susla
a25d17ff10 Avoid running hasCompanionDevices on main thread
Fixes: 63348899, 63309685
Test: Ensure b/63348899 doesn't reproduce
Change-Id: I93717bf7c3fab2ca32ec7cedf1cbd64fe1b6bbf2
2017-08-26 01:51:32 +00:00
TreeHugger Robot
77af296764 Merge "Revert "Support keyboard long-press on notifications"" into oc-mr1-dev 2017-08-26 01:00:38 +00:00
Fyodor Kupolov
291f63bb54 Added tron metrics for shutdown time
The metrics are persisted in /data/system/shutdown-metrics.txt file
property and logged after reboot. MetricsLogger API cannot be directly
used during shutdown since event log is cleared on reboot/power off.

Test: manual reboot/shutdown and verify that metrics are logged
Bug: 64815357
Change-Id: I7fa1af8be58a80a3d5bae26d55c1ed40bf98f4c0
2017-08-25 16:59:08 -07:00
Jack He
15134f2eaf Bluetooth: Add developer options to show devices without names
* Bluetooth developer can enable it to pair with and send file to
  devices without names

Bug: 34685932
Test: make, RunSettingsLibRoboTest, RunSettingsRoboTest, pair with
      devices

Change-Id: I529609008f9ba69bda47d8b6d8c434a70f9de491
2017-08-25 16:27:13 -07:00
TreeHugger Robot
071edf5b09 Merge "Create new trace object when logging from new thread" into oc-mr1-dev 2017-08-25 23:04:46 +00:00
TreeHugger Robot
e2a372075d Merge "Roll back nav bar interface to version 2" into oc-mr1-dev 2017-08-25 22:50:03 +00:00
Selim Cinek
464d0d9b1d Revert "Support keyboard long-press on notifications"
This reverts commit 2ca798932e.

Fixes: 65061056
Change-Id: I88bcb549b9e76958d280625a96796791b6f29060
2017-08-25 22:38:56 +00:00
TreeHugger Robot
9d656d0305 Merge "Use synchronization when accessing mPackages state" into oc-mr1-dev 2017-08-25 22:20:56 +00:00
Android Build Merger (Role)
4aefa37d9e Merge "Merge "Clarified that getAutofillValue() must return same value passed to autofill()." into oc-dev am: 7d29b6f2df am: da31220015" into oc-mr1-dev 2017-08-25 21:58:11 +00:00
TreeHugger Robot
9938901bbc Merge "Remove PIN/PUK keyguard when SIM is removed/ready" into oc-mr1-dev 2017-08-25 21:55:05 +00:00
Felipe Leme
ca03b3fbe6 Merge "Clarified that getAutofillValue() must return same value passed to autofill()." into oc-dev am: 7d29b6f2df
am: da31220015

Change-Id: I1ccd7b54c27ce65edcf9b1aceba7097bd8fc32e2
2017-08-25 21:54:45 +00:00
Adrian Roos
7835aad0f6 Merge "AOD: Only play wakeup animation when actually waking up" into oc-dr1-dev
am: feb69bf5a7

Change-Id: I3214a82b85f85f3ae23ae1cab22ece815020af1e
2017-08-25 21:39:16 +00:00