14581 Commits

Author SHA1 Message Date
Keyvan Amiri
00a981e522 Merge "Added min support to ProgressBar and SeekBar" 2016-10-11 21:53:41 +00:00
Jordan Liu
9011f8f926 Merge "Add key for carrier_volte_provisioned" 2016-10-11 18:24:49 +00:00
Nick Kralevich
44761c81eb Delete "Show CPU usage" am: fc4a5c2d85 am: f0c0188a8a
am: 34547a8dc2

Change-Id: I410846d3ff6856e5f9dee2efd551af8b9d1d94dc
2016-10-11 18:21:32 +00:00
Nick Kralevich
34547a8dc2 Delete "Show CPU usage" am: fc4a5c2d85
am: f0c0188a8a

Change-Id: If33e6687d3ec83904ab6ddbeb008c7b9c8130e7a
2016-10-11 18:15:23 +00:00
Nick Kralevich
fc4a5c2d85 Delete "Show CPU usage"
This functionality hasn't worked since Lollipop.

Bug: 21388590
Change-Id: Ie4388d88f6e06f3e2d2e84e9c4515b3ebc6a0ea5
2016-10-11 09:01:38 -07:00
Chet Haase
49a513b571 Add API to query whether animators are enabled
Animators can be scaled to have zero duration globally in any device.
This can happen either via Developer Options (an uncommon path) or
Battery Saver mode (much more common for real users).
In general, this works fine; it just causes app animations to be jump-cuts
instead (which is the desired effect, either to make transitions faster
(Developer Options setting) or to optimize battery usage by rendering
fewer frames (Battery Saver mode).

But sometimes, choreographed animations can have undesired artifacts. For
example, an animation that calls an end listener to restart itself
will end up doing this almost constantly due to this effect. Other artifacts
can also occur, such as intermediate results in a complex choreography of
multiple animations can show several intermediate results in a way that is
confusing to the user.

For these cases, there is nothing that the platform can do to automatically
determine how to best handle the result. Instead, we surface this new
API to help developers discover this behavior and compensate accordingly.

Bug: 31052471 Animation playback is abnormally fast during Battery saver mode
Test: unit tests, CTS test upcoming

Change-Id: Id7ef1a9652ac5c6cdaca0c126756e82582d49b1c
2016-10-10 19:52:07 +00:00
TreeHugger Robot
85153a12eb Merge "Allow print services to read advanced options." 2016-10-05 16:54:40 +00:00
Philip P. Moltmann
8f6feec73f Allow print services to read advanced options.
Test: Ran adjusted test that is subitted along side
Change-Id: Ic662c6a6e56c3184611b30947fd715b57df196c0
Fixes: 28913410
2016-10-04 17:19:33 -07:00
Jordan Liu
c82d113279 Add key for carrier_volte_provisioned
Add the key to CarrierConfigManager and remove old configs.

Bug: 29873049
Change-Id: Icf3075fe39d3466732ea81738cb29c512f840401
2016-10-04 15:50:10 -07:00
Nate Fischer
ad64a12bd1 Merge "Add APIs to get WebViewClient and WebChromeClient" 2016-10-04 20:31:39 +00:00
Keyvan Amiri
86fb2a2b67 Added min support to ProgressBar and SeekBar
ProgressBar, AbsSeekBar, and SeekBar now support min attributes for the
lower range of the progress bar. It used to be 0 by default.

Change-Id: I3308eff80f4c7f58a940dec9cc517dcdff4a1d83
2016-10-04 12:56:47 -07:00
Nate Fischer
6e585844a0 Add APIs to get WebViewClient and WebChromeClient
Add getWebViewClient and getWebChromeClient to WebView and WebViewProvider.
These APIs both return null if the client is not yet set.

Change-Id: I22044713a43ab09a9a5a63138247bfecb60f2522
Test: N/A
Bug: 31843416
2016-10-04 11:12:47 -07:00
Hangyu Kuang
6c08cfff6b Merge "media: Unhide mpeg2ts format for streaming output format support." 2016-10-04 17:10:23 +00:00
Yi Kong
a6222f6cdb Merge "Track libcore change 7f8ab8179829c1eb74ff785d55f24e09f560662e" 2016-10-03 15:33:08 +00:00
Tobias Thierer
9fb141c333 Merge "API changes for Locale to OpenJDK8u60 (part 1/2)" am: 01614e4e7f am: abc432fd09 am: 19e46f91fa
am: 041bb95132

Change-Id: I3804fa96bf222f0931c04dd8f0de1487e4f3358b
2016-10-03 14:12:00 +00:00
Tobias Thierer
041bb95132 Merge "API changes for Locale to OpenJDK8u60 (part 1/2)" am: 01614e4e7f am: abc432fd09
am: 19e46f91fa

Change-Id: I55ae235e9f1aa0e1442549408206fb9dcc0b6d91
2016-10-03 14:05:33 +00:00
Tobias Thierer
01614e4e7f Merge "API changes for Locale to OpenJDK8u60 (part 1/2)" 2016-10-03 13:41:48 +00:00
Hangyu Kuang
5b168a0c54 media: Unhide mpeg2ts format for streaming output format support.
Test: Run the camera recorder and output correct mpeg2ts stream.

Bug: 21620607
Change-Id: Ic79758d568e984d55e822d4b6af8716b856dd7da
2016-09-30 13:25:22 -07:00
Przemyslaw Szczepaniak
0053ff7e01 Merge "Add new StrictMode thread policy - DETECT_UNBUFFERED_IO" am: c60c70dcf9 am: 8297d74de5
am: 61eb1615a6

Change-Id: I00de82b6e9d12b7f6bd602515c21f6922d8d1983
2016-09-30 09:01:52 +00:00
Przemyslaw Szczepaniak
c60c70dcf9 Merge "Add new StrictMode thread policy - DETECT_UNBUFFERED_IO" 2016-09-30 08:43:17 +00:00
Neil Fuller
e451105dca Merge "Fix AnnotatedElement.getDeclaredAnnotation() generic signature" am: bd32321b4f am: 125a273e8a am: cc1cf38749
am: ff2f0dae1b

Change-Id: Ie367eabde7b2d8d5685f77ab741235817125af7e
2016-09-30 00:35:35 +00:00
Neil Fuller
32ed4a14ec Merge "Unhide constants related to type annotations" am: 8ac0f45384 am: 505b90ad5c am: de1db61758
am: 9a33f3408e

Change-Id: Iaf3c083849d4712e5245f4cc62b403dded17a9be
2016-09-30 00:33:15 +00:00
Neil Fuller
ff2f0dae1b Merge "Fix AnnotatedElement.getDeclaredAnnotation() generic signature" am: bd32321b4f am: 125a273e8a
am: cc1cf38749

Change-Id: I9bd88a090617a9570197e7e7416cbfe2f86444d1
2016-09-29 23:45:04 +00:00
Neil Fuller
9a33f3408e Merge "Unhide constants related to type annotations" am: 8ac0f45384 am: 505b90ad5c
am: de1db61758

Change-Id: I435010db7eda813b36221090cc1e10a27e79480e
2016-09-29 23:43:45 +00:00
TreeHugger Robot
c2370dfdd6 Merge "Add app op name string for a runtime permission" 2016-09-29 19:11:46 +00:00
Shubham Ajmera
c95b2c85f3 Add new StrictMode thread policy - DETECT_UNBUFFERED_IO
This will enable the developers to check if they could replace an unbuffered
I/O operation with a corresponding buffered I/O operation.

The policy can be set as follow:
     StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder()
        .detectUnbufferedIO().build());

Test: vogar BlockGuardTest
Bug: 3018772
Change-Id: Ib804a8e9980ae40abfd216f8b87c250fd413bd5c
(cherry picked from commit 9b7184a8fd6c940872f1526667dd7933db4bdd5f)w
2016-09-29 16:36:12 +01:00
Neil Fuller
bd32321b4f Merge "Fix AnnotatedElement.getDeclaredAnnotation() generic signature" 2016-09-29 13:08:30 +00:00
Jordan Liu
4a54638a68 Add editable_voicemail_number key to CarrierConfig
Add KEY_EDITABLE_VOICEMAIL_NUMBER_BOOL and default value to
CarrierConfigManager, and remove the references to the old config in
core/res/res/values/[config.xml/symbols.xml]

This value exists to fix http://b/14093735. If a SIM card has no
voicemail number available, since the default number is empty, we allow
users to edit the voicemail number when this flag is true.

Bug: 29873049
Change-Id: I68a494e2176306e4e9181a8ccb0aa818f3e08154
2016-09-28 15:26:07 -07:00
Neil Fuller
4c1d37b2a0 Unhide constants related to type annotations
Type annotations are supported in the compiler, but not the
Android runtime. Unhiding these is therefore still
reasonable.

Bug: 30391692
Test: make droid
Change-Id: I39db1099918fe3bd6321f2d755a988cb73f657c6
2016-09-28 16:57:59 +01:00
Neil Fuller
0543f71b82 Fix AnnotatedElement.getDeclaredAnnotation() generic signature
To match upstream OpenJDK 8.

Bug: 31108290
Test: make droid
Change-Id: Icdf54eb65b8d89ee474ec51eab552ceb3fc6d8ec
2016-09-28 16:56:49 +01:00
Neil Fuller
b36fad8a5f Rerun of update-api with no changes
Picks up a small change to Parameter.

Looks like it was caused by a mid-air collision between
commit 3ead539c0129e6dd82df301e2652f1c0524a3b82, which
introduced Parameter, and commit
b4fcc6136e25d46af460d4cb99b8f5f279bfb5db which
introduced improvements to generics in the .txt file.

Test: make droid
Change-Id: If1c11e9303d17854ab1e5559c9a412cc6de54685
2016-09-28 16:51:03 +01:00
John Reck
463d85cd92 Merge "Expose SurfaceTexture(boolean) constructor" 2016-09-28 14:07:09 +00:00
Alex Klyubin
5e86d951a7 Remove android.net.PskKeyManager
android.net.PskKeyManager does not work with upcoming TLS 1.3.
The class does not appear to be used by any Android apps and is thus
likely to be completely removed in the future.

Bug: 30978706
Test: make && make cts
Change-Id: Id9bae20362c5909e4621cdb00102bfee09d970ec
2016-09-27 11:24:32 -07:00
Tobias Thierer
f8ecb7d0d0 Merge "API: Update ResourceBundle to OpenJDK8u60" am: 9d16a441a6 am: 29319829fb am: 49d903dac4
am: e44534ddc8

Change-Id: I69b6b3a6b91cb7c5c6932664d456d684e879ac3e
2016-09-27 14:31:09 +00:00
Tobias Thierer
e44534ddc8 Merge "API: Update ResourceBundle to OpenJDK8u60" am: 9d16a441a6 am: 29319829fb
am: 49d903dac4

Change-Id: Iaeab7c7c8d24b68d2be75ddd3f6055ba78be906d
2016-09-27 14:22:08 +00:00
Tobias Thierer
49d903dac4 Merge "API: Update ResourceBundle to OpenJDK8u60" am: 9d16a441a6
am: 29319829fb

Change-Id: I02fba9b316fed6ee248c69f97570da8d1f1ac531
2016-09-27 14:16:28 +00:00
Tobias Thierer
29319829fb Merge "API: Update ResourceBundle to OpenJDK8u60"
am: 9d16a441a6

Change-Id: I90e0bb992f002718c5f509c226fdc0d57e651aff
2016-09-27 14:11:45 +00:00
Tobias Thierer
9d16a441a6 Merge "API: Update ResourceBundle to OpenJDK8u60" 2016-09-27 14:03:45 +00:00
Nate Fischer
2cab2fd3ff Merge "Deprecate WebView#{get,set}HttpAuthUsernamePassword" 2016-09-26 23:14:42 +00:00
Tobias Thierer
45716d6539 API changes for Locale to OpenJDK8u60 (part 1/2)
Bug: 29935305

Test: make update-api

Change-Id: I11f22dba5c795f7016c6dac950166ab749a7423d
2016-09-26 22:16:51 +01:00
Nate Fischer
c7edfb02bd Deprecate WebView#{get,set}HttpAuthUsernamePassword
Deprecate these methods and move them to WebViewDatabase.

BUG: 31318603
Test: N/A
Change-Id: Ie4613e8de9c6120fa1d21263b15ef2467c6ccdef
2016-09-26 13:45:09 -07:00
Michael Wright
091ffac018 DO NOT MERGE Actually track generics in API definition.
Bug: 24265043
Test: make
Change-Id: Id5544c0f0cf32655f9c00a5cc3eca1cabb70170f
2016-09-26 19:38:14 +01:00
TreeHugger Robot
6f1b29ef67 Merge "DO NOT MERGE Track generics in API definition." into nyc-mr1-dev 2016-09-26 15:29:17 +00:00
Michael Wright
515bf17cd2 Track generics in API definition.
Bug: 24265043
Test: make
Change-Id: Ida05c3eeb069a1e8db02cf024cec11536636b68d
2016-09-26 15:20:17 +01:00
Treehugger Robot
fe9357f6e7 Merge changes from topic 'aosp-generics-api'
* changes:
  DO NOT MERGE Track generics in API definition.
  DO NOT MERGE Fix issue #29871385: Need JobScheduler.scheduleAsPackage to be system API
2016-09-26 14:04:57 +00:00
Kirill Grouchnikov
4b1983a379 Merge "Mark a hidden MotionEvent method to be visible for tests" 2016-09-26 13:07:14 +00:00
Andreas Gampe
50309b4644 resolve merge conflicts of 6e37f8a to master
Change-Id: I4fdcce7554977a56fd0f7e4ad4804929112d5599
2016-09-25 15:13:06 -07:00
John Reck
6c12392f17 Expose SurfaceTexture(boolean) constructor
Fixes: 31709954
Test: 'cts-tradefed run singleCommand cts-dev --module CtsUiRenderingTestCases --test android.uirendering.cts.testclasses.TextureViewTests' passes

Change-Id: I358ae97aa90b27ee5757271d83c8a5b96a31a3f0
2016-09-23 13:27:55 -07:00
Alan Viverette
6e37f8a077 Allow developer to override Material-style modes in picker dialogs am: 8817aa9339
am: 010ab618af

Change-Id: I0d68842adb7097f4d32977f31d80a10bc166c045
2016-09-23 19:43:39 +00:00
Svet Ganov
e8e8942dff Add app op name string for a runtime permission
Change-Id: Iaf2d06212cef5e394034ea99f742fedb144a924d
2016-09-22 19:56:50 -07:00