Commit Graph

309172 Commits

Author SHA1 Message Date
Christine Franks
7b83b42858 Increase Night Display transition to 3 seconds
Bug: 34287165
Test: manual - Night Display transitions to amber/transparent over
three seconds.

Change-Id: Ia39d162ffdafb5e8920a0e392dc913d849453169
2017-01-23 17:32:13 -08:00
TreeHugger Robot
e1c8372fb6 Merge "Fix NPE in LockPatternUtils" 2017-01-24 01:26:44 +00:00
TreeHugger Robot
24454ca4b8 Merge "Add an 'am crash' shell command" 2017-01-24 01:25:12 +00:00
Romain Guy
6d228c2589 Expose colorimetry capabilities on Display
Test: CtsDisplayTestCases
Bug: 32984164
Change-Id: I11e6a85a27959c578eeac276ac0e2c8ab8db70bf
2017-01-23 17:17:32 -08:00
Badhri Jagan Sridharan
823287d28e Refactor UsbPortManager to use the binderised USB HAL
Move to a USB HAL to handle type-c ports as upstream is
considering in merging a generic type-c interface to mainline
kernel. However, the new sysfs interface can see minor changes
in the future as the sysfs interface is sitll going to land
in testing and it is still under review.

Bug: 31015010
Test: Manually tested on Angler and sailfish for type-c role switches.
Change-Id: I26771074c4b4f79a133e519bc6d35a4864a696d8
2017-01-23 17:13:15 -08:00
Fyodor Kupolov
1cd8508ba8 [DO NOT MERGE] Do not log boot times for secondary users and upgrades
Do not log framework_boot_completed/framework_locked_boot_completed
for secondary users, runtime restarts or first boot/upgrade.

First boot/upgrade also applies to boot_system_server_ready/
boot_package_manager_init_ready

Cherry-picked from commit 4ba91b9a87

Test: Manual update with fingerprint change
Test: runtime restart - not logged

Bug: 34516002
Bug: 32807863
Change-Id: I64b960c96a0e45b4fefaf05547ea5ac5c701c765
2017-01-23 17:00:29 -08:00
Andrew Sapperstein
63db9254cf Add Settings.Global configs to high temp warning.
Test: manual
Bug: 34480261
Merged-In: Icfd08c1c7dae456920b3978918ee01469e1dec95
Change-Id: I9ed444dfb89f86d94f3a0db699324318f5bf78d0
2017-01-23 16:50:58 -08:00
Hongming Jin
7439b7cb61 Merge "Test: AccountManagerService APCT test." 2017-01-24 00:50:22 +00:00
Chris Tate
a89f76fb7e Merge "Send USB_STATE broadcast to manifest receivers" 2017-01-24 00:49:30 +00:00
Andrew Sapperstein
e33525615e Add Settings.Global configs to high temp warning.
Test: manual
Bug: 34480261
Change-Id: Icfd08c1c7dae456920b3978918ee01469e1dec95
2017-01-23 16:43:35 -08:00
Svetoslav Ganov
4fa94da34b Add an accidentally removed call to update libs
Disabled system package may define a lib which its
update does not. When the update is uninstalled we
need to upate the libs so ppl can use the lib in
the now restored sys package.

Change-Id: I22e6aafde86838fa76aa74eda8dfe2c528f998aa
2017-01-23 16:36:43 -08:00
fionaxu
72ee500527 support suw and post-suw cases for default app
- our default carrier actions might not compatible with suw since data might be disabled
without surfacing users with an option to activate inside SuW.
- instead, skip carrier actions during setupwizard and schedule a job to resume carrier actions if needed when exit suw.
- use jobscheduler to monitor provision bit instead of keep the app running and listen for content change asynchronously.

Bug: 30958215
Test: Manual

Change-Id: Ie4004b46405b914158f585059d332f4e694053f3
2017-01-23 16:28:39 -08:00
Jeff Sharkey
56f0368fb7 Introduce RecoverableSecurityException.
This takes advantage of the recently added behavior that offers to
send Parcelable exception types across Binder calls.

Certain SecurityException can be resolved if we involve the end user,
such as when a password has expired, or a user challenge is required
to proceed.  This new subclass of SecurityException provides
user-visible messaging and convenience methods for quickly rendering
that messaging as a notification or dialog.

Test: builds, boots, throws, shows as notification and dialog
Bug: 33749182
Change-Id: Iba66c7466b8fabca9e3f83c60db5a4ab849a256f
2017-01-23 17:23:17 -07:00
Chris Craik
540dbd08ad Merge "Use @CriticalNative in Canvas" 2017-01-24 00:15:02 +00:00
TreeHugger Robot
8e9a42e84b Merge "light HAL uses "default" service name" 2017-01-24 00:14:34 +00:00
Dongwon Kang
824413871a TIF: Add new TvContract fields for guide view on launcher
Test: cts-tradefed run cts -m CtsTvTestCases
Bug: 34160270
Change-Id: Ifaa0ef4bdc52623a6c686f1017340fdfab74872e
2017-01-23 16:10:44 -08:00
Dmitri Plotnikov
d11b9e77e4 Merge "Adding TvExtender channel override" 2017-01-24 00:07:42 +00:00
Dianne Hackborn
5f1a2a34d9 Merge "Optimize bg check flow." 2017-01-24 00:05:38 +00:00
Chris Phoenix
e9d42decca light HAL uses "default" service name
The getService() and registerAsService() methods of interface objects
now have default parameters of "default" for the service name. HALs
will not have to use any service name unless they want to register
more than one service.

Test: builds

Bug: 33844934
Change-Id: Id22d27d7e401de426b1a236067c1b4c7f6c99a3e
2017-01-23 23:56:38 +00:00
Rubin Xu
4929a5d3b4 Fix NPE in LockPatternUtils
mDevicePolicyManager field can be null if getDevicePolicyManager()
is never called. A previous refactor removed an apparent unused call
to getDevicePolicyManager(), leading to NPE when mDevicePolicyManager
is accessed. We should always use getDevicePolicyManager() to access
DevicePolicyManager instance.

Test: manual
Bug: 34612758
Change-Id: Ic964b4ee4e3c56301295b8f0629bd005c732c5c4
2017-01-23 23:55:28 +00:00
TreeHugger Robot
2ba96eced0 Merge "Add tests for b/34598346" 2017-01-23 23:46:00 +00:00
Alison Cichowlas
38c4680aae Tron - Omit overlong lines and warn when doing so.
Test: updated LogBuilderTest

Change-Id: I0218acfacca53598a546cea5b3adeecd0d639031
2017-01-23 18:36:59 -05:00
Jason Parks
841cb0a37f Allow the profile owner to enforce auto time.
Test: runtest -c com.android.server.devicepolicy.DevicePolicyManagerTest frameworks-services

Change-Id: I1cb04cce5d232fba668535dd391459a050d62dd7
2017-01-23 17:32:53 -06:00
TreeHugger Robot
70a1a72eff Merge "PhoneStatusBar: Add test for executeRunnableDismissingKeyguard with null runnable" 2017-01-23 23:27:59 +00:00
Yohei Yukawa
7924782c00 Delay tasks from IMMS constructor to later phase
This is	a preparation CL for Bug 32343335.

This CL basically addresses the concern raised in a previous CL [1]
that added several synchnonized blocks in the constructor of
InputMethodManagerService (IMMS).

After hours of code reading and investigation, it is concluded to be
safe IMMS to behave as if there was no IME available until
SystemService.PHASE_ACTIVITY_MANAGER_READY phase. This allows IMMS to
register callbacks not in the constructor but in the later phase to
addresses the concern that object references to IMMS could be leaked
into different threads before IMMS object is properly constructed.

As far as performance is concerned, basically the amount of tasks
to be done in the main thread remains same, or could be reduced a bit
if some unnecessary callback events were skipped. To confirm this, we
can check the total number of the following performance metrics.
 - StartInputMethodManagerLifecycle
 - StartActivityManagerReadyPhase

 [1]: I9d4d3d7232c984432185c10c13fb726a6158cac8
      8f202f82fd86a3b40bc5e7d62779eddff21096b1

Bug: 32343335
Test: Manual: pre-installed IME on Direct-Boot disabled device
Test: Manual: pre-installed IME on Direct-Boot enabled device
Test: Manual: user-installed IME on Direct-Boot enabled device
Test: Manual: user-installed IME on Direct-Boot disabled device
Test: Manual: user switching scenario on Direct-Boot enabled device
Test: Manual: user switching scenario on Direct-Boot disabled device
Test: Manual: device unlocking scenario on Direct-Boot enabled device
Change-Id: I5b37c450db4b25b3e635b6d634293a34eec8b9d4
2017-01-23 15:26:15 -08:00
Chris Phoenix
f9133783ae gnss HAL uses "default" service name
The getService() and registerAsService() methods of interface objects
now have default parameters of "default" for the service name. HALs
will not have to use any service name unless they want to register
more than one service.

Test: builds

Bug: 33844934
Change-Id: Ie6d52854ef3cf0695e3c57292683183bab008f2d
2017-01-23 23:24:53 +00:00
Ta-wei Yen
a132bbd5a8 Merge "Extend carrier configs for visual voicemail" 2017-01-23 23:22:34 +00:00
Hongming Jin
c1a892a967 Test: AccountManagerService APCT test.
Add tests for startUpdateCredentials, finishSession and isCredentialsUpdateSuggested.

Bug: 31346530
Change-Id: I8c93b6b0db50086a83894eadfcf6a2398be81b6c
2017-01-23 15:20:54 -08:00
Adrian Roos
500263a9bc AOD: Delay wakeup until interaction with notification
Instead of immediately waking upon touching the screen, the
wakeup now happens when interacting with the notification.

Also adds feedback for the first tap of the double tap gesture
on the content view.

Bug: 30876804
Fixes: 34498705
Fixes: 34500641
Fixes: 34500802
Test: manual
Change-Id: I75ea86a6009dd7efab480738584c96bb8743b2ba
2017-01-23 15:02:34 -08:00
TreeHugger Robot
19655fc019 Merge "SysUI fragments: Integrate new support for constructing" 2017-01-23 23:01:09 +00:00
Sanket Agarwal
c8399321e9 Change HFP Client API to support multi device
- Adds BluetoothDevice as a parameter where required
- Gets rid of device management APIs that can be done via
  BluetoothProfiles instead

Test: Manual sanity tests
Bug: b/33554547
Bug: b/30984220
Change-Id: I3485ac5bfe1fcb29c774ad040fdd608e1cacb8df
(cherry picked from commit 039eeb81b5)
2017-01-23 22:53:58 +00:00
Ta-wei Yen
70f920fa0c Merge "Fix typo in the IS_OMPT_VOICEMAIL field." into nyc-mr2-dev 2017-01-23 22:40:40 +00:00
Siyamed Sinir
4234144a2b Make SpannableStringBuilder.getSpans thread-safe
Add cached int buffers for sorting.

Test: All CtsTextTestCases

Merged-In: Ice0b3c3fffc541b26aca94c93fd01e30e13efe2e

Bug: 33609774
Change-Id: Ib728654a384cfc072d1c190611e4553aa8957fa8
2017-01-23 14:39:35 -08:00
Christopher Tate
4ca071da28 Send USB_STATE broadcast to manifest receivers
Bug 34594920

Change-Id: I5d026f469710960b792dcf1bfebc1c07f90c6182
2017-01-23 14:35:28 -08:00
Siyamed Sinir
1bcdcebf68 Make SpannableStringBuilder.getSpans thread-safe
Add cached int buffers for sorting.

Test: All CtsTextTestCases

Bug: 33609774
Change-Id: Ice0b3c3fffc541b26aca94c93fd01e30e13efe2e
2017-01-23 14:35:27 -08:00
Svetoslav Ganov
4bd54c70fa Merge "Allow shared lib and package name to match" 2017-01-23 22:25:48 +00:00
Chris Craik
bfa0b29883 Use @CriticalNative in Canvas
Bug: 33460152
Test: ViewShowHidePerfTests

Switches non-drawing @FastNative methods to @CriticalNative, except
where out arguments prevent it.

Performance in ViewShowHidePerfTests not significantly impacted.

Change-Id: I3edc963accb4f87f73d175c7b2534868602a7db3
2017-01-23 14:25:06 -08:00
TreeHugger Robot
6500b1450d Merge "Do not allow ephemeral apps to access ShortcutManager" 2017-01-23 22:24:48 +00:00
Svetoslav Ganov
5733d9de2c Allow shared lib and package name to match
The old package manager implementation was guarding for
shared libs to not match any package name but due to a
bug this was not enfroced and as a result we have apps
where the package and lib match, e.g. GCore. The new
static shared lib support properly enforced the rule
breaking apps. So, this CL relexes the constraint.

Test: CTS test in the topic passes

bug:34598313

Change-Id: I15d22fd1c3a44a27c4b9b8379de3992ae553dd05
2017-01-23 22:23:05 +00:00
Vladislav Kaznacheev
3da84b4e3c Remove View.setTooltip/getTooltip
The last step in renaming setTooltip/getTooltip to
setTooltipText/getTooltipText

Bug: 34454987
Test: make checkbuild
Change-Id: I2472e6b8cc319c856ec1595989368ee35d681068
2017-01-23 14:21:44 -08:00
Adrian Roos
5304e89dfd Merge "KeyguardManager: Fix user resolution of isDeviceSecure/Locked" 2017-01-23 22:21:07 +00:00
Dianne Hackborn
c3af19a87d Optimize bg check flow.
No longer need to look up the application info, target SDK is
explicitly passed in to the check.  For the external method, we
change this to just checked to see if background is completely
disabled, which doesn't need a target SDK check (and is the only
thing any of the current clients care about).

Now allow SystemUI to put targets of notification pending intents
on the temporary whitelist when they fire, so developers can avoid
dealing with background restrictions in this case (if the user
interacts with their notification, they will temporarily be
considered in the foreground).

Remove any thoughts of enforing restrictions on registerReceiver(),
so we don't need to deal with target SDK versions there (which can't
be done all that efficiently).

Also bring back the old "allow starts coming from foreground apps"
only for the MODE_IGNORE app op, since it should provide some
better compatibility.

Test: ran them.

Change-Id: Id4ea7f992d12ce4bd8e54f1dbaeb4a460a3dee59
2017-01-23 14:18:33 -08:00
John Reck
47aa8d1477 Add tests for b/34598346
Test: unit test passes
Bug: 34598346
Change-Id: I7e5144aa875e42487718059cc06b86e32db28702
2017-01-23 14:07:53 -08:00
Nancy Zheng
6111e23d30 Merge commit '12562abcd47de4aee3b0469cb04bf771c2072113' into manual_merge_12562abcd47d
Test: manually tested upstream

Change-Id: I8ca2eebcb468f73bf609ed09dc141a2bf40b8697
2017-01-23 14:06:38 -08:00
Todd Kennedy
e9d0d2758b add "splitName" attribute
Attribute is availble on activity, provider and service components. Allows
specifying which split contains that component.

Test: built test app with attribute
Change-Id: Ibc615321035f76a71d0dce5a6fae3f3ef4c3e762
2017-01-23 13:56:10 -08:00
Adrian Roos
ef7a402268 PhoneStatusBar: Add test for executeRunnableDismissingKeyguard with null runnable
Adds a regression test for NPEs around executeRunnableDismissingKeyguard when
a null runnable is passed.

The bug was fixed in I89477a8a0067e285e5d0122e918fac45274c57ad.

Fixes: 33489225
Test: runtest systemui
Change-Id: Ia8981bc4c2a1a0f6d8c48e6d66e2af801d6cddac
2017-01-23 13:43:59 -08:00
Jeremy Joslin
577aac1385 Merge "Mark the INetworkScoreCache as oneway." am: edadb3efc3 am: 4fcc44dc9a
am: ea65f9d392

Change-Id: I54af428743c036da20a0adbaa38d00ca348364fc
2017-01-23 21:42:00 +00:00
Nancy Zheng
60e03c36b7 Merge "Query for the settings package in KeyguardManager instead of hardcoding it." into cw-f-dev am: 8ac1bff7e2
am: 20d79203be

Change-Id: I35ff614a3c37736913f4731f978802c2f0fb12ae
2017-01-23 21:38:43 +00:00
Nancy Zheng
52b8412742 Query for the settings package in KeyguardManager instead of hardcoding it. am: e256a18dcd
am: 11bdbd1145

Change-Id: I946ee02b4d1b5b1286754b2cf233237cbd3b0f31
2017-01-23 21:37:38 +00:00
Nancy Zheng
7a86073718 Merge "Query for the settings package in KeyguardManager instead of hardcoding it." into cw-f-dev am: 8ac1bff7e2
am: d0c5f0047f

Change-Id: I96db2a0bf55871df53f6f7220bac2cdd262cee4b
2017-01-23 21:35:41 +00:00