Commit Graph

309172 Commits

Author SHA1 Message Date
Nicolas Geoffray
1852c380e0 Merge "Introduce DEBUG_JAVA_DEBUGGABLE." am: 4df43ad959
am: 27ffe754a4

Change-Id: I24d3eed3d6172fdff79a74945ecadea7b0d76590
2017-01-30 15:21:17 +00:00
Nicolas Geoffray
27ffe754a4 Merge "Introduce DEBUG_JAVA_DEBUGGABLE."
am: 4df43ad959

Change-Id: Iebecb5b77d07bf91820044eda8923b2b30ebfe60
2017-01-30 15:15:10 +00:00
Nicolas Geoffray
4df43ad959 Merge "Introduce DEBUG_JAVA_DEBUGGABLE." 2017-01-30 15:09:45 +00:00
Alan Viverette
775b9dc89f Binary compatibility stubs for get/setTooltip()
Change-Id: I8784ccfd48d8c809b70d7c5c977bcbf44e3f4d47
Fixes: 34798233
Test: n/a
2017-01-30 10:02:11 -05:00
Julia Reynolds
619a69f722 Add audio attributes to notificationchannel
Test: runtest systemui-notification, cts, manual
Change-Id: I33b5a67190409fe2fc2bc7e2cbbd67ea38bc0655
2017-01-30 08:55:31 -05:00
Chet Haase
b64e777f6c Add methods to query animation state
Testing utilities want the ability to know whether things in the UI
are in flux and they need to wait before testing on-screen values.
These changes (a subset of what's needed, but will have to do for
a start) allow querying of ActivityTransitions and ProgressBar, two
common/difficult pieces in the puzzle.

Test: CTS tests at ag/1835467
Bug: 30978257 Provide view transition Api to prevent flaky tests

Change-Id: If63b3d0dde2178d826ac1dbfad0fc50e5ed9a780
2017-01-30 12:57:43 +00:00
Esteban Talavera
b3231029b5 Merge "Profile owners on a user can communicate with device owners" 2017-01-30 11:33:38 +00:00
Seigo Nonaka
9ff994d988 Introduce set/getFontVariationSettings.
This is 2nd attempt of I249d464f8cdaa56017a987588b94ed685aadeb58.
The original CL was reverted due to conflicting with another CL submitted
before.
Nothing has changed except for following class name changes.

Here is the original commit message of reverted change.

This CL enables developers to specify axis values to the underlying
font collection. The specification of the font variation settings is
the same as the CSS font-variation-settings attribute in CSS working
draft as of 2016-11-30.

Code example: Here is an example to set width 100 and weight 1.5.

  TextView tv = (TextView) findViewById(R.id.textView);
  tv.setFontVariationSettings("'wdth' 100, 'wght' 1.5");

Bug: 33062398
Test: Manually done. Ran FrameworksGraphicsTests, CtsGraphicsTestCases
      and CtsWidgetTestCases

Change-Id: I9cdfbdecc87c995d805096883ef2652768c6c21e
2017-01-30 20:22:41 +09:00
Bryan Mawhinney
1c639f2b9a Merge "Test to encourage new settings to be backed up" 2017-01-30 10:32:02 +00:00
TreeHugger Robot
fe98ad919b Merge "Implement .xml font resource support" 2017-01-30 09:37:13 +00:00
Robin Lee
95204e0be7 Reinstate USER_PRESENT for ConnectivityService
Reverts half of commit 89e7a696f0
Reverts parts of commit 9a5f48535d

Lockdown VPN still needs this to start properly on devices without FBE,
such as phones upgraded from M. Without listening to USER_PRESENT the
first unlock of keystore may get missed, since USER_UNLOCKED is sent too
soon to be useful.

Bug: 34587043
Change-Id: If7a2f5a3173b0f6856244a5f7904bf00c9a5b5e7
2017-01-30 09:19:46 +00:00
Manu Cornet
a96a617a4e 2D Recents: fix toggling behavior
This changes the toggling behavior so that a quick double tap on
the Recents button still does the same thing as Alt-Tab, but if
the second tap is slow, we go back to the most recent task.

Bug: 34636734
Test: Checked toggle and alt-tab behavior on local sw600dp device.
Change-Id: Idb6f30a370192be2490c74c04d9ea81f223ecfb1
2017-01-30 04:59:49 +00:00
TreeHugger Robot
881ba34ba7 Merge "Remove a redundant param in getDefaultEnabledImes" 2017-01-30 02:58:12 +00:00
Hugo Benichi
2b7c408501 Define Network notification proto constants.
This patch defines 4 new constants in metrics_constants.proto
corresponding to the 4 network notifications shown by
NetworkNotificationManager.

Estimates for the average number of notifications:
  - SIGN_IN:        3/day/device
  - NO_INTERNET:    5/day/device
  - LOST_INTERNET:  5/day/device
  - NETWORK_SWITCH: 3/day/device (turned off right now)

Test: no functional change
Bug: 32198726
Bug: 33030620

(cherry picked from commit e1cbf15f1a)

Change-Id: I6020c283329f752170cef451725b4e5287509bc5
2017-01-30 11:51:58 +09:00
TreeHugger Robot
ac2d178578 Merge "Minor code clean-ups with no behavior change" 2017-01-30 02:16:09 +00:00
Yohei Yukawa
af5cee8d26 Remove a redundant param in getDefaultEnabledImes
With the previous CL [1], systemReady parameter in
InputMethodUtils.getDefaultEnabledImes() is guaranteed to be true.
Hence this CL removes that parameter. There should be no behavior change
in this CL.

 [1]: I5b37c450db4b25b3e635b6d634293a34eec8b9d4
      7924782c00

Test: adb shell am instrument -w -e class com.android.internal.inputmethod.InputMethodUtilsTest com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner
Bug: 32343335
Change-Id: Ia14d12a4e21d0e2e22bfe0bd8d496f48058c5525
2017-01-30 00:24:29 +00:00
Yohei Yukawa
06b4be771c Minor code clean-ups with no behavior change
As another preparation CL to work on Bug 7254002, this CL cleans up
miscellaneous minor coding style issues that do not cause any
user-visible problems.

 - Add final keyboard to classes that are not intended to be extended.
 - Add static keyboard to nested classes if possible.
 - Fix a typo in log message.
 - Remove a redundant synchronized keyword in method signature.
 - Remove unused class fields.

Test: checkbuild
Bug: 7254002
Change-Id: I3b54179116a74cafc99a3dfd3f2a429a7111c12e
2017-01-29 14:08:17 -08:00
Thecrazyskull
071db34e78 Merge "KeySetManagerService: prevent NPE" am: c66327149a am: 51ad0f67d2 am: 7adb348796
am: 8734438320

Change-Id: I8618393edf8c2c41663dfb457588ac4f9511239c
2017-01-29 17:35:23 +00:00
Thecrazyskull
8734438320 Merge "KeySetManagerService: prevent NPE" am: c66327149a am: 51ad0f67d2
am: 7adb348796

Change-Id: Icc4d2d025c03cc71557e359bf8f4f230d38ef595
2017-01-29 17:30:47 +00:00
Thecrazyskull
7adb348796 Merge "KeySetManagerService: prevent NPE" am: c66327149a
am: 51ad0f67d2

Change-Id: I72d62e1d1f3d2b6db616762e724c1608a1e487c8
2017-01-29 17:26:47 +00:00
Thecrazyskull
51ad0f67d2 Merge "KeySetManagerService: prevent NPE"
am: c66327149a

Change-Id: I09d6fb3e2644ab9330b10bd67c44e61a204e589b
2017-01-29 17:22:13 +00:00
Treehugger Robot
c66327149a Merge "KeySetManagerService: prevent NPE" 2017-01-29 17:14:40 +00:00
Yohei Yukawa
c2410cb9e5 Merge "Simplify stub TextServicesManager in layoutlib" 2017-01-29 02:49:35 +00:00
Chen Xu
349969e988 Merge "add an API for sending secret dialer code" 2017-01-28 17:00:58 +00:00
Andrii Kulian
5f5aaa8142 Merge "Rename flag that enables showing display content with keyguard" 2017-01-28 04:08:35 +00:00
Calin Juravle
b109741102 Save package dex usage info after secondary dex reconciliation
Bug: 1833991
Test: add a bogus entry to /syste/data/package-dex-usage.list
      adb shell cmd package reconcile-secondary-dex-files
com.android.google.gms
      wait a bit and check the bogus entry is gone

Change-Id: Ic07126bfb8730933081a5e010e3c357d338786e8
2017-01-27 19:31:41 -08:00
Calin Juravle
51f521c3bf Compile secondary dex files during background dexopt job
Extend the backgound dexopt job to compile secondary dex files when
"dalvik.vm.deopt.secondary" system property is set to true.

Test: adb shell cmd package bg-dexopt-job
Bug: 32871170
Change-Id: If3a4b77f785e92c7f2f7869e25ff9b99904f165a
2017-01-27 19:31:32 -08:00
Hassan Shojania
0b52e95c3f Modular DRM for MediaPlayer
Bug:  34559906
Test: Manual through the test app

Change-Id: If76e2898e6064c5661193872b907b1720838c678
2017-01-27 19:03:09 -08:00
Calin Juravle
cb5f41ea11 Add a shell command to force the background dexopt job
Add 'bg-dexopt-job' command to 'adb shell cmd package' which will force
the background  dexopt job to run the optimizations immediately.

Note that the command only runs the background optimizer logic. It may
overlap with the actual job but the job scheduler will not be able to
cancel it. It will also run even if the device is not in the idle
maintenance mode.

Test: adb shell cmd package bg-dexopt-job
Bug: 32871170
Change-Id: I8b0112074220b2e09baf13d842401ee1cf306a89
2017-01-27 18:56:27 -08:00
Calin Juravle
c660475aaf A bit more refactoring in BackgroundDexOptService
Extract convenient methods to help with:
- adding a shell command to run the background dexopt job
- extending idleOptimizations to cover secondary dex files

Test: device boots, background job run.
Bug: 32871170
Change-Id: I18fde62a1cb05c030a620722d5f217589beaefb1
2017-01-27 18:54:41 -08:00
Calin Juravle
1aa5f88e35 [PM] Clean up logic for secondary dex oat files
Add logic in DexManager to reconcile secondary dex records with the
actual files on disk. If secondary dex files are moved or removed then
DexManager will remove the generated oat files during the call to
reconcileSecondaryOdex() and update its internal state.

Add 'adb shell cmd package reconcile-secondary-dex packageName' which
will force DexManager to sync its data with the actual secondary dex
files.

Test: devices bots
      runtest -x .../PackageDexUsageTests.java
      runtest -x .../DexManagerTests.java
      adb shell cmd package reconcile-secondary-dex
com.android.google.gms (after artificially/temporarily renaming some
dex files)

Bug: 32871170

Change-Id: Id2d72dc89995f89cf1ddf79ae4e992afd3f3c127
2017-01-27 18:54:35 -08:00
Calin Juravle
c22c30ed1c Compile secondary dex files in DexManager
Add logic for secondary dex compilation in DexManager. Also, extend the
`cmd package compile` command with '--secondary-dex' option which will
compile all used secondary dex files for the given package.

Test: flash & boot,
      cmd package compile --secondary-dex -f -m speed
com.google.android.gms
Bug: 32871170

Change-Id: Ia2b95cb70d26c4ead5cb650047641b0881ca84ae
2017-01-27 18:53:10 -08:00
Marie Janssen
23a4833157 Bluetooth: add getDiscoveryEndMillis() call
Method to tell when the adapter finished (or will finish) being in
discovery mode.

Test: compiles and still can scan
Bug: 34395439
Change-Id: I41b48c2b934c0a1d5e1727cec08f3f762e3cb309
2017-01-27 18:48:11 -08:00
Paul Stewart
4267c48ce4 Merge changes from topic 'enterprise-client-chain' am: c71b5dab72 am: fc5430a39c am: a377b026f6
am: 1a05097d04

Change-Id: Ib0f72608343b217a97c46a06a8065e821d7a17c4
2017-01-28 02:20:16 +00:00
Android Build Merger (Role)
59b3558dac Merge changes from topic 'am-febb6164619c46f681eb6dc8a6c58e06'
* changes:
  Test passing null cert/keys to WifiEnterpriseConfig am: 88b3c589ad am: cb79016b16 am: 3bac61ac86 am: 96c87f7a9b
  Account for null client certificate am: 1ca57a1d10 am: 4ad314b463 am: 25eff7731a am: b35b219516
  Add a client chain to WifiEnterpriseConfig am: 291ddaef78 am: cd463ff269 am: 80b5793645 am: 9c9d4f6f6d  -s ours
2017-01-28 02:16:40 +00:00
TreeHugger Robot
b41e016fb9 Merge "Moves layout code from java files to layout xml" 2017-01-28 02:16:30 +00:00
Paul Stewart
36828f5406 Test passing null cert/keys to WifiEnterpriseConfig am: 88b3c589ad am: cb79016b16 am: 3bac61ac86
am: 96c87f7a9b

Change-Id: Iddf9cb68c3026d6fdec0550a4b7f1a6c84f6139d
2017-01-28 02:15:08 +00:00
Paul Stewart
706792a7ed Account for null client certificate am: 1ca57a1d10 am: 4ad314b463 am: 25eff7731a
am: b35b219516

Change-Id: Ic773470d1b47779d6049d422a372c847b94ad766
2017-01-28 02:14:09 +00:00
Paul Stewart
15abb99355 Add a client chain to WifiEnterpriseConfig am: 291ddaef78 am: cd463ff269 am: 80b5793645
am: 9c9d4f6f6d  -s ours

Change-Id: I29a271bf5db7cede0caa4b38a15162de002af167
2017-01-28 02:12:51 +00:00
Paul Stewart
1a05097d04 Merge changes from topic 'enterprise-client-chain' am: c71b5dab72 am: fc5430a39c
am: a377b026f6

Change-Id: I80d26378aa4e82aec5a79054ad59f3385ac0e8d0
2017-01-28 02:06:10 +00:00
Paul Stewart
96c87f7a9b Test passing null cert/keys to WifiEnterpriseConfig am: 88b3c589ad am: cb79016b16
am: 3bac61ac86

Change-Id: I5c8af5dcd505002d815886f4a1ea30496411a35f
2017-01-28 02:01:40 +00:00
Paul Stewart
b35b219516 Account for null client certificate am: 1ca57a1d10 am: 4ad314b463
am: 25eff7731a

Change-Id: I2bd868e534ca1a5960ac9855bd40a91f705b9772
2017-01-28 02:00:50 +00:00
Paul Stewart
9c9d4f6f6d Add a client chain to WifiEnterpriseConfig am: 291ddaef78 am: cd463ff269
am: 80b5793645

Change-Id: I11310cfd06db4357ec1ee94139ebdb2e2f40f771
2017-01-28 01:59:40 +00:00
Paul Stewart
a377b026f6 Merge changes from topic 'enterprise-client-chain' am: c71b5dab72
am: fc5430a39c

Change-Id: I2850cbafd7800284d259e04e2889af68d3272ab5
2017-01-28 01:59:39 +00:00
TreeHugger Robot
b46df69a77 Merge "Move autofill focus triggers from TextView to View." 2017-01-28 01:54:48 +00:00
Paul Stewart
3bac61ac86 Test passing null cert/keys to WifiEnterpriseConfig am: 88b3c589ad
am: cb79016b16

Change-Id: Ib96c9b9034d5fd6fb0477ca274e4cbce86677d0e
2017-01-28 01:54:47 +00:00
Paul Stewart
25eff7731a Account for null client certificate am: 1ca57a1d10
am: 4ad314b463

Change-Id: I50138c766a4ca1f697bbe4c2285bc0bc8c2985f4
2017-01-28 01:53:52 +00:00
Paul Stewart
80b5793645 Add a client chain to WifiEnterpriseConfig am: 291ddaef78
am: cd463ff269

Change-Id: I3625766bb97cf2bf4ab8a6a0d518c2b876069e23
2017-01-28 01:52:43 +00:00
Paul Stewart
fc5430a39c Merge changes from topic 'enterprise-client-chain'
am: c71b5dab72

Change-Id: Icfae9ac89759cd4d18f63dd2da17587bb7fdf96d
2017-01-28 01:52:41 +00:00
Paul Stewart
cb79016b16 Test passing null cert/keys to WifiEnterpriseConfig
am: 88b3c589ad

Change-Id: Ia92c2ad4b7562250aa69d3e8dbb3b8d8607d4136
2017-01-28 01:46:52 +00:00