Commit Graph

73266 Commits

Author SHA1 Message Date
Jeff Sharkey
cdee83a614 Disable RescueParty in debug/lab environments.
We need to strike a balance between rescuing devices of real users
in the field, while also not interfering with debugging or testing
use-cases.

This change uses "charging via USB" as a signal that the device is
under active development, or is in a lab environment.  We could try
checking for an adb connection, but UsbDebuggingManager isn't
started until much later in the boot, so BatteryManager is our best
chance of detecting this case.

Note that we continue to always recover "user" builds, and we never
recover "eng" builds.

Test: builds, boots, skips when plugged in over USB
Bug: 34722552
Change-Id: Ib095482a2ed84e8c5dfb3c71d5f9b88457c2b5e6
2017-01-26 15:29:42 -07:00
TreeHugger Robot
9e77aefe9c Merge "[Frameworks] Add an 'am' cmd option to enable streaming in profiling." 2017-01-26 18:08:40 +00:00
Mady Mellor
3b10dcd2ca Update PIP minimize to edge gesture
Updates gesture to match prototype:
- If you fling towards the current edge the PIP is on it is minimized
- Dragging far enough to left or right edge minimizes PIP

Test: manual
Change-Id: I56664e16505b461ad37b181cbb89ee4c6e371aa2
2017-01-26 06:47:08 -08:00
Mady Mellor
e7c8aeefb4 Merge "Adjustments to PIP heuristics to snapping along edges of screen" 2017-01-26 14:36:51 +00:00
Geoffrey Pitsch
60eef134af Merge "New constructor for Notification.Builder takes a channelId." 2017-01-26 14:15:16 +00:00
TreeHugger Robot
132dffbc83 Merge "Animate starting work challenge from work lock" 2017-01-26 12:49:27 +00:00
Dmitry Dementyev
7b5bbb5509 Merge "Implement Account Discovery API." 2017-01-26 07:53:59 +00:00
TreeHugger Robot
35089c466e Merge "Revert "Revert "Remove View.setTooltip/getTooltip""" 2017-01-26 07:39:51 +00:00
TreeHugger Robot
bcf3b70371 Merge "Adding an api for apps to check whether they can install apps" 2017-01-26 07:35:33 +00:00
TreeHugger Robot
eb30016ad4 Merge "Implement pointer capture API" 2017-01-26 07:22:24 +00:00
TreeHugger Robot
6cc3e76ad9 Merge "Do not remove file_cache when exiting demo mode" 2017-01-26 06:43:14 +00:00
Doris Liu
d5bb985188 Merge "Refine the comparator for the animation event sorting" 2017-01-26 06:38:33 +00:00
Android Build Merger (Role)
cefb76ad2e Merge "Fix @links in reference docs. am: 54de77470d am: ab978c035e am: 28ba4722a9 am: 9b21265b2c" 2017-01-26 04:50:16 +00:00
Elliot Waite
0ce4b0e4c3 Fix @links in reference docs. am: 54de77470d am: ab978c035e am: 28ba4722a9
am: 9b21265b2c

Change-Id: If246ebdb36cf2832d5a6c42cbe752e290b6fb6e8
2017-01-26 04:49:33 +00:00
TreeHugger Robot
de3b86e73e Merge "Add notification channel groups." 2017-01-26 04:49:31 +00:00
Elliot Waite
9b21265b2c Fix @links in reference docs. am: 54de77470d am: ab978c035e
am: 28ba4722a9

Change-Id: I98177a8cf0a20677e140406bb7371474ca259e5b
2017-01-26 04:44:54 +00:00
Elliot Waite
28ba4722a9 Fix @links in reference docs. am: 54de77470d
am: ab978c035e

Change-Id: If0d0613362e0ea95cf48eaf9a16d3eea48b589ea
2017-01-26 04:39:57 +00:00
Elliot Waite
a54b54f50c Merge "Fix @see tag." 2017-01-26 04:37:37 +00:00
Elliot Waite
ab978c035e Fix @links in reference docs.
am: 54de77470d

Change-Id: Id38c30bad13d6b61ed504a06471b9f197b360f7b
2017-01-26 04:34:57 +00:00
Doris Liu
40e8469789 Refine the comparator for the animation event sorting
BUG: 34719156
Test: manual
Change-Id: Iad96967c8ee6a3b3b661fb9de4e750d7b935b3f7
2017-01-25 19:40:51 -08:00
Ta-wei Yen
51a403525f Merge "Add getVisualVoicemailPackageName() Make NMR2 voicemail columns public" 2017-01-26 03:33:33 +00:00
Jorim Jaggi
c710accde0 Merge "Flip task snapshot flag" 2017-01-26 02:24:44 +00:00
TreeHugger Robot
ca19e3278b Merge changes I818e8db9,Ie24468be
* changes:
  Added a new API to colorize notifications
  Modified the interpolators when opening an ambient notification
2017-01-26 02:06:06 +00:00
Hakan Seyalioglu
2a27b2ca7c Merge "Mark two test methods public so they can be mocked" 2017-01-26 02:02:32 +00:00
Dmitry Dementyev
01985ff6d2 Implement Account Discovery API.
Inludes temporary flow for notifications filtered by accountType
Bug: 33046496
Test: cts tests, manual tests.
Change-Id: I2d767030e851579a0666efd7e243a1239af740c7
2017-01-25 17:59:47 -08:00
TreeHugger Robot
b66cfe8a88 Merge "Added support to authentication." 2017-01-26 01:35:39 +00:00
Suprabh Shukla
aef2513c71 Adding an api for apps to check whether they can install apps
Some apps may want to check whether they are trusted to install apps on
the device, so they can prompt the user to go to settings and mark them
as trusted before they do an intensive operation like downloading an
apk.

Test: cts-tradefed run cts -m CtsExternalSourcesTestCases

Bug: 31002700
Change-Id: Icd9d04daa157e6733decba245ec251ce4acd4122
2017-01-25 17:26:02 -08:00
Philipp Weiß
ca0034296b Merge "Create public API for policy transparency outside of Settings" 2017-01-26 01:25:24 +00:00
Elliot Waite
d5ed3bc5f3 Fix @see tag.
Test: make ds-docs

Change-Id: Iefdc92a7139155eccca11a5393da6f31d8603322
2017-01-25 17:23:29 -08:00
TreeHugger Robot
ef756c3a34 Merge "camera: Add enableZsl key" 2017-01-26 01:23:28 +00:00
Elliot Waite
54de77470d Fix @links in reference docs.
Change-Id: I40cea46efd80c448640ff69753698fe8404da40b
2017-01-25 17:00:55 -08:00
TreeHugger Robot
dc4ffdabc6 Merge "Create an API for retrieving a badged wifi icon." 2017-01-26 00:59:20 +00:00
Shukang Zhou
6ffd4f9bab [Frameworks] Add an 'am' cmd option to enable streaming in profiling.
Add option '--streaming' to 'am start' and 'am profile' commands.
If the option is given, the output of method trace profiling
will be streamed into the specified file, so the output is no
longer limited by the buffer size.

Test: m -j48 test-art-host;
m -j48 ART_TEST_TRACE=true ART_TEST_TRACE_STREAM=true test-art-host;
I also tested manually. Tried all 8 combinations of
    sampling/instrumention
    streaming/non-streaming
    'am start --start-profiler' / 'am profile start'
The output files are all in expected shape.

Bug: 33300765

Change-Id: I8a5136a1c7330c8260b7c6c8da63f42a73aee275
2017-01-25 16:54:27 -08:00
Julia Reynolds
59e152e92e Add notification channel groups.
Test: runtest systemui-notification, cts
Change-Id: I3ed82f2b20d3f791b7cae379a49373cb41231739
2017-01-26 00:01:06 +00:00
Selim Cinek
7b9605b79c Added a new API to colorize notifications
Ongoing notifications can now be colorized.
This will use the color provided as the background
and invert most text colors

Test: runtest -x cts/tests/app/src/android/app/cts/NotificationTest.java
Bug: 34469375
Change-Id: I818e8db96c868d8bcde8f28c253efd581eeccaa2
2017-01-25 15:31:53 -08:00
John Reck
04b926a68b Merge "Overhaul RenderNode's DisplayList management" 2017-01-25 23:11:30 +00:00
phweiss
73145f4e60 Create public API for policy transparency outside of Settings
The new DPM.createAdminSupportIntent() returns an intent that shows the
"This action was disabled by your admin"-dialog from settings.
This enables apps to inform the user about the cause of restricted
functionality.

A new extra for the intent allows to specialize the dialog for different
restricted features, instead of a generic message for all features.

Bug: 31215663
Test: runtest -c com.android.server.devicepolicy.DevicePolicyManagerTest frameworks-services

Change-Id: I3de7aeec0f88b8f013a63957aec803cd123fbedc
2017-01-25 22:20:46 +01:00
Vladislav Kaznacheev
3787de16d2 Implement pointer capture API
When in pointer capture mode, mouse pointer disappears and
further mouse events are dispatched to the focused view
in the window which has requested capture.

The captured events have the source SOURCE_MOUSE_RELATIVE
belonging to SOURCE_CLASS_TRACKBALL. They are
dispatched through dispatchCapturedPointerEvent /
onCapturedPointerEvent. There is also a new listener.

Pointer capture mode may only be granted to a currently
focused window, and will be canceled upon a window focus change.

Test: cts-tradefed ... --test android.view.cts.PointerCaptureTest
Bug: 30897034
Change-Id: I6e5934aa415ac2b6dda1cee173d0f23e5021af84
2017-01-25 13:13:45 -08:00
Dianne Hackborn
c5d458930c Merge "Add some new experiment constants for activity and power manager." 2017-01-25 21:12:12 +00:00
Shuzhen Wang
b44dee8e22 Merge "Camera2: Handle (0, 0) size for deferred OutputConfiguration" 2017-01-25 21:05:45 +00:00
Abodunrinwa Toki
e363f427f8 Merge "Implement TextClassifierImpl.getLinks" 2017-01-25 21:05:03 +00:00
Felipe Leme
436ab6a91d Added support to authentication.
AutoFillService can now require user authentication, both at
FillResponse and Dataset levels;
- FillResponse authentication is typically used when the user data
  need to be unlocked before the first use.
- Dataset authentication is typically used to unlock sensitive data
  such as credit card info.

The authentication can be handled by the service itself (for example,
when it uses the credit card CVV to unlock it) or by the Android
system (when the service asks for fingerprint authentication).

Bug: 31001899

Test: manual verification
Test: CtsAutoFillServiceTestCases passes

Change-Id: If62f42f697ab5ef0d14d991ff1077d1c38808e61
2017-01-25 13:03:32 -08:00
Fyodor Kupolov
6e68706f67 Do not remove file_cache when exiting demo mode
When clearing /data/preloads directory, keep files in file_cache directory.
The content there will only be removed if systems runs low on storage.

Test: manual + RetailDemoModeServiceTest
Bug: 31008665
Change-Id: Id335d84940ee829617986f5345f169271a333de1
2017-01-25 12:33:47 -08:00
John Reck
2de950d5a8 Overhaul RenderNode's DisplayList management
* Move mValid to native
* Have destroyHardwareResources destroy everything
* Remove flaky mParentCount checks in setStaging
* All tree updates have an internal observer to
  ensure onRemovedFromTree() is a reliable signal
* onRemovedFromTree() immediately releases resources
  to avoid displaylist "leaks"

Test: Unit tests for validity added & pass, manually
verified that b/34072929 doesn't repro

Bug: 34072929

Change-Id: I856534b4ed1b7f009fc4b7cd13209b97fa42a71c
2017-01-25 12:24:40 -08:00
Shuzhen Wang
e56e606f82 Camera2: Handle (0, 0) size for deferred OutputConfiguration
We need to handle below sequence of events:
1. OutputConfiguration(Size(0, 0), klass)
2. addSurface(surface)
3. createCameraCaptureSession

In this case, allow the addSurface() to succeed.

Test: camera works in keep/hangouts/contacts
Bug: 34697112
Change-Id: I726c60cce9a11c69b050aad47f4ed4a0a7a0870e
2017-01-25 12:22:01 -08:00
Mark Rathjen
8bd8564a18 Merge "Resolve Android security comments for Android ID migration." 2017-01-25 20:20:29 +00:00
TreeHugger Robot
a92c180107 Merge "Also parse "1" as true for ContentValues#getAsBoolean" 2017-01-25 20:19:11 +00:00
Ruchi Kandoi
2a13fbae73 Merge "nfc: Make NDEF validation stricter" am: f3a6269fed am: e6cb2aa614 am: 40c14a83d0
am: deac669a53

Change-Id: I208e9c5d6fbbfa9f3a6c0d43f38fcacc040ccb92
2017-01-25 20:12:06 +00:00
Ruchi Kandoi
deac669a53 Merge "nfc: Make NDEF validation stricter" am: f3a6269fed am: e6cb2aa614
am: 40c14a83d0

Change-Id: I7ef55eddac20d58e9184056e85c9b49e733fd38d
2017-01-25 20:07:23 +00:00
Ruchi Kandoi
40c14a83d0 Merge "nfc: Make NDEF validation stricter" am: f3a6269fed
am: e6cb2aa614

Change-Id: Ib069a18f16850d419b6c10c3b80e80115d9d8fc8
2017-01-25 20:03:00 +00:00