OSDN Git Service

android-x86/frameworks-base.git
7 years agoMerge "Correct the formula of battery capacity estimation. am: c800ddc824 am: d4d4769...
Ying Wai (Daniel) Fan [Tue, 31 Jan 2017 21:03:04 +0000 (21:03 +0000)]
Merge "Correct the formula of battery capacity estimation. am: c800ddc824 am: d4d476943f" into nyc-mr2-dev-plus-aosp
am: c820fe9b16

Change-Id: I67798476c055da8f7ace2f0cc55071b66b4e9273

7 years agoCorrect the formula of battery capacity estimation. am: c800ddc824 am: d4d476943f
Ying Wai (Daniel) Fan [Tue, 31 Jan 2017 21:02:57 +0000 (21:02 +0000)]
Correct the formula of battery capacity estimation. am: c800ddc824 am: d4d476943f
am: ab03a2f033

Change-Id: I3ffab388aaa1e06954a0e0ede2dce95c5454e55c

7 years agoCorrect the formula of battery capacity estimation. am: c800ddc824 am: ac655b5a7c
Ying Wai (Daniel) Fan [Tue, 31 Jan 2017 21:01:28 +0000 (21:01 +0000)]
Correct the formula of battery capacity estimation. am: c800ddc824 am: ac655b5a7c
am: c95ecb5ed8

Change-Id: Ib23b58f4139dc80dcdafa1089c90fb7ac9ce3abd

7 years agoMerge "Correct the formula of battery capacity estimation. am: c800ddc824 am: d4d4769...
Android Build Merger (Role) [Tue, 31 Jan 2017 20:58:14 +0000 (20:58 +0000)]
Merge "Correct the formula of battery capacity estimation. am: c800ddc824 am: d4d476943f" into nyc-mr2-dev-plus-aosp

7 years agoCorrect the formula of battery capacity estimation. am: c800ddc824
Ying Wai (Daniel) Fan [Tue, 31 Jan 2017 20:57:29 +0000 (20:57 +0000)]
Correct the formula of battery capacity estimation. am: c800ddc824
am: ac655b5a7c

Change-Id: Ifa298b57e62e4238740b177a7e4a346671d56987

7 years agoCorrect the formula of battery capacity estimation. am: c800ddc824
Ying Wai (Daniel) Fan [Tue, 31 Jan 2017 20:57:24 +0000 (20:57 +0000)]
Correct the formula of battery capacity estimation. am: c800ddc824
am: d4d476943f

Change-Id: I097f2f5a610f2cef639a4c6e7e003bcbd2fd44c5

7 years agoMerge "WebView: Revise the behavior of crash handle API"
Tao Bai [Tue, 31 Jan 2017 20:55:14 +0000 (20:55 +0000)]
Merge "WebView: Revise the behavior of crash handle API"

7 years agoCorrect the formula of battery capacity estimation.
Ying Wai (Daniel) Fan [Tue, 31 Jan 2017 20:53:27 +0000 (20:53 +0000)]
Correct the formula of battery capacity estimation.
am: c800ddc824

Change-Id: Idf0396fdac7e0cedbac39da98b2fe97e26dce64e

7 years agoCorrect the formula of battery capacity estimation.
Ying Wai (Daniel) Fan [Tue, 31 Jan 2017 20:53:26 +0000 (20:53 +0000)]
Correct the formula of battery capacity estimation.
am: c800ddc824

Change-Id: Ia0a16cd15fc71f6ff2af89d7ecbb7a319b5ece92

7 years agoMerge "Remove unneeded parameters"
Julia Reynolds [Tue, 31 Jan 2017 20:46:13 +0000 (20:46 +0000)]
Merge "Remove unneeded parameters"

7 years agoMerge "Two digit call support for Claro" am: c74d60a69e am: 7f8a08a772 am: 950c564646
Yong Shi [Tue, 31 Jan 2017 19:56:35 +0000 (19:56 +0000)]
Merge "Two digit call support for Claro" am: c74d60a69e am: 7f8a08a772 am: 950c564646
am: 0574c9c9a6

Change-Id: Ib35d7f4ee570356d1c7ec4ef1e9184a7e4f4dd5b

7 years agoMerge "Don't copy NoCopySpans in SpannableStringInternal"
Siyamed Sinir [Tue, 31 Jan 2017 19:54:34 +0000 (19:54 +0000)]
Merge "Don't copy NoCopySpans in SpannableStringInternal"

7 years agoMerge "Two digit call support for Claro" am: c74d60a69e am: 7f8a08a772
Yong Shi [Tue, 31 Jan 2017 19:51:26 +0000 (19:51 +0000)]
Merge "Two digit call support for Claro" am: c74d60a69e am: 7f8a08a772
am: 950c564646

Change-Id: Icae8f52eb9348884b1b6b1aa1407d3d043793f3a

7 years agoMerge "Two digit call support for Claro" am: c74d60a69e
Yong Shi [Tue, 31 Jan 2017 19:47:01 +0000 (19:47 +0000)]
Merge "Two digit call support for Claro" am: c74d60a69e
am: 7f8a08a772

Change-Id: I294b83c86708708f95352bb019a032fabc1c4ed5

7 years agoMerge "Two digit call support for Claro"
Yong Shi [Tue, 31 Jan 2017 19:42:26 +0000 (19:42 +0000)]
Merge "Two digit call support for Claro"
am: c74d60a69e

Change-Id: I18548618853aa37f43114ed7ffdca73c1fc0effc

7 years agoMerge "Two digit call support for Claro"
Treehugger Robot [Tue, 31 Jan 2017 19:30:23 +0000 (19:30 +0000)]
Merge "Two digit call support for Claro"

7 years agoMerge "Update the A2DP Codec Config API" am: ccd60f7cbe am: f0096fb868 am: 91707989c4
Pavlin Radoslavov [Tue, 31 Jan 2017 19:25:11 +0000 (19:25 +0000)]
Merge "Update the A2DP Codec Config API" am: ccd60f7cbe am: f0096fb868 am: 91707989c4
am: 1ef3c9888e

Change-Id: If69bfe9839a35dc141d741695a217fa4805d46cc

7 years agoMerge "Update the A2DP Codec Config API" am: ccd60f7cbe am: f0096fb868
Pavlin Radoslavov [Tue, 31 Jan 2017 19:18:27 +0000 (19:18 +0000)]
Merge "Update the A2DP Codec Config API" am: ccd60f7cbe am: f0096fb868
am: 91707989c4

Change-Id: I0d58681de89b82ffdce57d3381cd2397b9ade3e7

7 years agoMerge "Update the A2DP Codec Config API" am: ccd60f7cbe
Pavlin Radoslavov [Tue, 31 Jan 2017 19:13:05 +0000 (19:13 +0000)]
Merge "Update the A2DP Codec Config API" am: ccd60f7cbe
am: f0096fb868

Change-Id: Ibc7d4b500adc4451978f366557b93dc6b6d3da63

7 years agoMerge "Update the A2DP Codec Config API"
Pavlin Radoslavov [Tue, 31 Jan 2017 19:07:58 +0000 (19:07 +0000)]
Merge "Update the A2DP Codec Config API"
am: ccd60f7cbe

Change-Id: Idc54b85eb096ec0116395332c7bc0b543a59a7d5

7 years agoMerge "Update the A2DP Codec Config API"
Pavlin Radoslavov [Tue, 31 Jan 2017 19:02:35 +0000 (19:02 +0000)]
Merge "Update the A2DP Codec Config API"

7 years agoWebView: Revise the behavior of crash handle API
Tao Bai [Tue, 31 Jan 2017 00:54:28 +0000 (16:54 -0800)]
WebView: Revise the behavior of crash handle API

To make backward compatible, kills application when render process
is killed by system.

Bug: 30824898
Test: No test, this is document revision.
Change-Id: I12862ee9ed1986ec274fe627782542e8d8414856

7 years agoUpdate the A2DP Codec Config API
Pavlin Radoslavov [Thu, 26 Jan 2017 00:54:07 +0000 (16:54 -0800)]
Update the A2DP Codec Config API

Previously, the JNI upcall would contain only the current codec config.
In the new API, the upcall contains:
 1. The current codec config
 2. The list of codecs containing the local codecs capabilities
 3. The list of codecs containing the selectable codecs capabilities.
    This list is the intersection of the local codecs capabilities
    and the capabilities of the paired device.

Also, refactored the Java internals to accomodate the extra information:
 * Added new class BluetoothCodecStatus that contains the extra info:
   current codec config, local codecs capabilities and selectable
   codecs capabilities
 * Renamed method getCodecConfig() to getCodecStatus() and return the
   corresponding BluetoothCodecStatus object.
 * Updates to class BluetoothCodecConfig:
   new methods isValid(), getCodecName(), and updated toString()
   so it is more user friendly
 * Removed BluetoothCodecConfig.EXTRA_CODEC_CONFIG and
   EXTRA_PREVIOUS_CODEC_CONFIG.
   The former is superseded by BluetoothCodecStatus.EXTRA_CODEC_STATUS;
   the latter is not really used.

Test: A2DP streaming with headsets and switching the codecs
Change-Id: Ia1af2c22e521e863e28a360610aca49f7e62d31b

7 years agoMerge "Add UiModeManager commands to adb"
TreeHugger Robot [Tue, 31 Jan 2017 18:50:20 +0000 (18:50 +0000)]
Merge "Add UiModeManager commands to adb"

7 years agoMerge "Primary navigation fragments"
TreeHugger Robot [Tue, 31 Jan 2017 18:40:40 +0000 (18:40 +0000)]
Merge "Primary navigation fragments"

7 years agoMerge "hotspot2: enclose conditional statement in parenthesis" am: 161ac8b006 am...
Peter Qiu [Tue, 31 Jan 2017 18:35:24 +0000 (18:35 +0000)]
Merge "hotspot2: enclose conditional statement in parenthesis" am: 161ac8b006 am: ea14632665 am: 77095c33d3
am: e7e2dc148c

Change-Id: Ib6a5a5bac5886099581e7027af74e90fa98eb35f

7 years agoMerge "hotspot2: enclose conditional statement in parenthesis" am: 161ac8b006 am...
Peter Qiu [Tue, 31 Jan 2017 18:29:49 +0000 (18:29 +0000)]
Merge "hotspot2: enclose conditional statement in parenthesis" am: 161ac8b006 am: ea14632665
am: 77095c33d3

Change-Id: Ib0ee84bf185ac7b492029eae791436ae30c246e2

7 years agoMerge "wifi: WifiConfiguration: add isHomeProviderNetwork field"
TreeHugger Robot [Tue, 31 Jan 2017 18:28:28 +0000 (18:28 +0000)]
Merge "wifi: WifiConfiguration: add isHomeProviderNetwork field"

7 years agoMerge "hotspot2: enclose conditional statement in parenthesis" am: 161ac8b006
Peter Qiu [Tue, 31 Jan 2017 18:25:48 +0000 (18:25 +0000)]
Merge "hotspot2: enclose conditional statement in parenthesis" am: 161ac8b006
am: ea14632665

Change-Id: I5511f4d323761edf5eab149894a7a1b2acee4e07

7 years agoMerge "Replace invalidateChild/invalidateChildInParent"
Chris Craik [Tue, 31 Jan 2017 18:23:17 +0000 (18:23 +0000)]
Merge "Replace invalidateChild/invalidateChildInParent"

7 years agoMerge "hotspot2: enclose conditional statement in parenthesis"
Peter Qiu [Tue, 31 Jan 2017 18:21:27 +0000 (18:21 +0000)]
Merge "hotspot2: enclose conditional statement in parenthesis"
am: 161ac8b006

Change-Id: I2da11aee68e52f9e868ca23cbd913703ef0585e3

7 years agoMerge "Add a home intent category for VR headset UI mode."
TreeHugger Robot [Tue, 31 Jan 2017 18:15:02 +0000 (18:15 +0000)]
Merge "Add a home intent category for VR headset UI mode."

7 years agoMerge "Enabling low storage notification on Android TV"
Dmitri Plotnikov [Tue, 31 Jan 2017 18:14:49 +0000 (18:14 +0000)]
Merge "Enabling low storage notification on Android TV"

7 years agoMerge "hotspot2: enclose conditional statement in parenthesis"
Treehugger Robot [Tue, 31 Jan 2017 18:12:56 +0000 (18:12 +0000)]
Merge "hotspot2: enclose conditional statement in parenthesis"

7 years agoMerge "Fix NotificationGuts tests"
Mady Mellor [Tue, 31 Jan 2017 17:58:31 +0000 (17:58 +0000)]
Merge "Fix NotificationGuts tests"

7 years agoMerge "Fix crash in TextView getFont"
TreeHugger Robot [Tue, 31 Jan 2017 17:56:06 +0000 (17:56 +0000)]
Merge "Fix crash in TextView getFont"

7 years agoMerge "Added a new wifi_badging_thresholds setting to Settings.Global"
William Mee [Tue, 31 Jan 2017 16:54:44 +0000 (16:54 +0000)]
Merge "Added a new wifi_badging_thresholds setting to Settings.Global"

7 years agoAdd UiModeManager commands to adb
Alan Viverette [Mon, 30 Jan 2017 15:36:54 +0000 (10:36 -0500)]
Add UiModeManager commands to adb

Change-Id: I0480bf92e6a8e9adee99a0013d70d39550a52611
Fixes: 30096205
Test: adb shell cmd uimode night yes

7 years agoMerge "don't require 'O' for instant apps"
TreeHugger Robot [Tue, 31 Jan 2017 16:22:35 +0000 (16:22 +0000)]
Merge "don't require 'O' for instant apps"

7 years agoMerge "Migrate Tron logs for power to multimetric format."
TreeHugger Robot [Tue, 31 Jan 2017 15:56:11 +0000 (15:56 +0000)]
Merge "Migrate Tron logs for power to multimetric format."

7 years agoRemove unneeded parameters
Julia Reynolds [Tue, 31 Jan 2017 14:44:26 +0000 (09:44 -0500)]
Remove unneeded parameters

Test: cts-verifier
Change-Id: Ifaddd71aa44898c7c16f28f1715fd035861e3be6

7 years agoMerge "Fix for endless loop in RelativeLayout."
Yura [Tue, 31 Jan 2017 15:18:09 +0000 (15:18 +0000)]
Merge "Fix for endless loop in RelativeLayout."

7 years agodon't require 'O' for instant apps
Todd Kennedy [Tue, 31 Jan 2017 14:51:28 +0000 (06:51 -0800)]
don't require 'O' for instant apps

It's unclear if we need this check; esp if we want to support
running legacy instant apps [i.e. instant apps that run pre-O
under the supervisor].

Test: Build and install instant app
Change-Id: I241f97e7960635af933e8fe1ddd86675789ec26c

7 years agoMerge "Use TVExtender channel on tv platforms."
Julia Reynolds [Tue, 31 Jan 2017 14:06:03 +0000 (14:06 +0000)]
Merge "Use TVExtender channel on tv platforms."

7 years agoFix crash in TextView getFont
Clara Bayarri [Tue, 31 Jan 2017 12:15:50 +0000 (12:15 +0000)]
Fix crash in TextView getFont

The wrong TypedArray was being used to retrieve the value.

Bug: 34818260
Test: run cts -m CtsWidgetTestCases -t
android.widget.cts.TextViewTest#testFontResources_setInXmlStyle

Change-Id: I09334710b9b21f1397bc02d92d14b41fbc96178f

7 years agoMerge "Import translations. DO NOT MERGE" into nyc-mr2-dev am: 21e0ccb1a6 -s ours
Bill Yi [Tue, 31 Jan 2017 08:42:40 +0000 (08:42 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev am: 21e0ccb1a6  -s ours
am: eccb4c5045  -s ours

Change-Id: I1132a94369c09f75e1f961ffe9ee90a71996c013

7 years agoImport translations. DO NOT MERGE am: 652182376c -s ours
Bill Yi [Tue, 31 Jan 2017 08:41:41 +0000 (08:41 +0000)]
Import translations. DO NOT MERGE am: 652182376c  -s ours
am: 1b49042a6a  -s ours

Change-Id: I511fbfdc62022fd75a5690e789c8e19c51ad5ced

7 years agoMerge "Import translations. DO NOT MERGE" into nyc-mr2-dev
Bill Yi [Tue, 31 Jan 2017 08:37:44 +0000 (08:37 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev
am: 21e0ccb1a6  -s ours

Change-Id: I12a3340aaa49277aba78c7dcc51b063458113262

7 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 31 Jan 2017 08:37:39 +0000 (08:37 +0000)]
Import translations. DO NOT MERGE
am: 652182376c  -s ours

Change-Id: I45c84e6031609830111e915ab692906fc48ff0d6

7 years agoMerge "Import translations. DO NOT MERGE" into nyc-mr2-dev
TreeHugger Robot [Tue, 31 Jan 2017 08:31:11 +0000 (08:31 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev

7 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Tue, 31 Jan 2017 08:02:40 +0000 (08:02 +0000)]
Merge "Import translations. DO NOT MERGE"

7 years agoMerge "Import translations. DO NOT MERGE" into nyc-mr2-dev am: f3db881c0c -s ours
Bill Yi [Tue, 31 Jan 2017 07:39:56 +0000 (07:39 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev am: f3db881c0c  -s ours
am: b02ba73c7d  -s ours

Change-Id: Id437d7da4c74788afe857ea09ae9974cf77c8132

7 years agoImport translations. DO NOT MERGE am: 85f7e3989c -s ours
Bill Yi [Tue, 31 Jan 2017 07:39:01 +0000 (07:39 +0000)]
Import translations. DO NOT MERGE am: 85f7e3989c  -s ours
am: c90971e335  -s ours

Change-Id: I5dd2cda575ce68aaf7a188a1b75f02191a40fefd

7 years agoImport translations. DO NOT MERGE am: e924e16c3d -s ours
Bill Yi [Tue, 31 Jan 2017 07:38:09 +0000 (07:38 +0000)]
Import translations. DO NOT MERGE am: e924e16c3d  -s ours
am: c207d2686e  -s ours

Change-Id: I76243ce4d943a2e01740260d84c1c0b04a415b4a

7 years agoMerge "Import translations. DO NOT MERGE" into nyc-mr2-dev
Bill Yi [Tue, 31 Jan 2017 07:34:40 +0000 (07:34 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev
am: f3db881c0c  -s ours

Change-Id: I86910f68247dbb886e7f3b4b646cf0d8fd8e686a

7 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 31 Jan 2017 07:34:33 +0000 (07:34 +0000)]
Import translations. DO NOT MERGE
am: 85f7e3989c  -s ours

Change-Id: Ibcafecde0ae6b531d5e6c1f379372ad8c73e41fa

7 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 31 Jan 2017 07:33:35 +0000 (07:33 +0000)]
Import translations. DO NOT MERGE
am: e924e16c3d  -s ours

Change-Id: I90ef4192992b588b600f76c90b8744fc52eeb9e8

7 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Tue, 31 Jan 2017 07:30:44 +0000 (07:30 +0000)]
Merge "Import translations. DO NOT MERGE"

7 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Tue, 31 Jan 2017 07:30:04 +0000 (07:30 +0000)]
Merge "Import translations. DO NOT MERGE"

7 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Tue, 31 Jan 2017 07:29:27 +0000 (07:29 +0000)]
Merge "Import translations. DO NOT MERGE"

7 years agoMerge "Import translations. DO NOT MERGE" into nyc-mr2-dev
TreeHugger Robot [Tue, 31 Jan 2017 07:28:41 +0000 (07:28 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev

7 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 31 Jan 2017 06:39:49 +0000 (22:39 -0800)]
Import translations. DO NOT MERGE

Change-Id: I0ef2e2fb59b03df8ce1c4ebb29154ef815b6154b
Auto-generated-cl: translation import

7 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 31 Jan 2017 06:29:14 +0000 (22:29 -0800)]
Import translations. DO NOT MERGE

Change-Id: I0f109486ea3b8c2c2fb21d796aa1d546e8fc3f68
Auto-generated-cl: translation import

7 years agoMerge "ApfTest: fix flaky testApfFilterRa." am: c2e8588396 am: 60e1375f79 am: 811f6c86da
Hugo Benichi [Tue, 31 Jan 2017 06:16:43 +0000 (06:16 +0000)]
Merge "ApfTest: fix flaky testApfFilterRa." am: c2e8588396 am: 60e1375f79 am: 811f6c86da
am: 488ffdc784

Change-Id: Ib4223b548b434211dda4e750f660eb68a30a9d96

7 years agoMerge "ApfTest: fix flaky testApfFilterRa." am: c2e8588396 am: 60e1375f79
Hugo Benichi [Tue, 31 Jan 2017 06:11:35 +0000 (06:11 +0000)]
Merge "ApfTest: fix flaky testApfFilterRa." am: c2e8588396 am: 60e1375f79
am: 811f6c86da

Change-Id: Idd738e1a4c9f0a865f5b84270535a94c492341ce

7 years agoMerge "ApfTest: fix flaky testApfFilterRa." am: c2e8588396
Hugo Benichi [Tue, 31 Jan 2017 06:07:08 +0000 (06:07 +0000)]
Merge "ApfTest: fix flaky testApfFilterRa." am: c2e8588396
am: 60e1375f79

Change-Id: Ied249e20ffc80728d20ac1e5442d45f5cb767776

7 years agoMerge "ApfTest: fix flaky testApfFilterRa."
Hugo Benichi [Tue, 31 Jan 2017 06:01:58 +0000 (06:01 +0000)]
Merge "ApfTest: fix flaky testApfFilterRa."
am: c2e8588396

Change-Id: I79c3ec0ba35973cc0dd32709447b2cc30e790d08

7 years agoMerge "ApfTest: fix flaky testApfFilterRa."
Hugo Benichi [Tue, 31 Jan 2017 05:53:51 +0000 (05:53 +0000)]
Merge "ApfTest: fix flaky testApfFilterRa."

7 years agoMerge "Introduce set/getFontVariationSettings."
TreeHugger Robot [Tue, 31 Jan 2017 05:46:23 +0000 (05:46 +0000)]
Merge "Introduce set/getFontVariationSettings."

7 years agoMerge "Pass application packagename to drm plugin."
Edwin Wong [Tue, 31 Jan 2017 05:03:40 +0000 (05:03 +0000)]
Merge "Pass application packagename to drm plugin."

7 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 31 Jan 2017 04:45:03 +0000 (20:45 -0800)]
Import translations. DO NOT MERGE

Change-Id: Icf17a6fb6b941caea8a843c0cac96f0b1883d4f3
Auto-generated-cl: translation import

7 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 31 Jan 2017 04:36:40 +0000 (20:36 -0800)]
Import translations. DO NOT MERGE

Change-Id: Ifb3e58e4528c1d7ea44bac121b7e210672aa6a7f
Auto-generated-cl: translation import

7 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 31 Jan 2017 03:41:51 +0000 (19:41 -0800)]
Import translations. DO NOT MERGE

Change-Id: I8898f88d0454aa0065faa8e0cbc737a5dc2cc055
Auto-generated-cl: translation import

7 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 31 Jan 2017 03:21:33 +0000 (19:21 -0800)]
Import translations. DO NOT MERGE

Change-Id: I51010554d0b8e46a3b4541bdce9323cfb01e107d
Auto-generated-cl: translation import

7 years agoMerge "Add instant cookie APIs"
TreeHugger Robot [Tue, 31 Jan 2017 03:17:45 +0000 (03:17 +0000)]
Merge "Add instant cookie APIs"

7 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 31 Jan 2017 03:13:28 +0000 (19:13 -0800)]
Import translations. DO NOT MERGE

Change-Id: If8563cdf20d35e212c7c1a25636973b1da634e12
Auto-generated-cl: translation import

7 years agoMerge "Add new api ClipDescription.getTimestamp."
TreeHugger Robot [Tue, 31 Jan 2017 02:54:35 +0000 (02:54 +0000)]
Merge "Add new api ClipDescription.getTimestamp."

7 years agoMerge "Add user picker for anchored window. Test: CtsAutoFillServiceTestCases"
TreeHugger Robot [Tue, 31 Jan 2017 02:47:25 +0000 (02:47 +0000)]
Merge "Add user picker for anchored window. Test: CtsAutoFillServiceTestCases"

7 years agoDon't copy NoCopySpans in SpannableStringInternal
Siyamed Sinir [Thu, 26 Jan 2017 02:28:26 +0000 (18:28 -0800)]
Don't copy NoCopySpans in SpannableStringInternal

Bug: 34712634
Test:
Added new tests to cts.SpannableStringTest and cts.SpannedStringTest
android.text.cts.SpannableStringTest
android.text.cts.SpannedStringTest
android.text.cts.SpannableStringBuilderTest
android.text.SpannableStringTest
android.text.SpannedTest

Change-Id: I34e4ef4798b8d26fa8770c0021acb52b4047095e

7 years agoApfTest: fix flaky testApfFilterRa.
Hugo Benichi [Mon, 19 Dec 2016 05:50:52 +0000 (14:50 +0900)]
ApfTest: fix flaky testApfFilterRa.

testApfFilterRa is failing with probabiliy 1/10 ~ 1/15 on the following
assert: assertDrop(program, packet, lifetime/6), for lifetime values
that are multiple of 6, where 6 is the hardcoded fraction of RA lifetime
to filter in ApfFilter.java.

When the lifetime is not a multiple of 6, the remainder of 1 to 5
seconds gives enough margin so that when the APF program is simulated
the faked lifetime of the program is less than lifetime/6 away and the
packet is dropped.

However for lifetimes which are exact multiples of 6, this margin is
always 0s and that result in nondeterminism in the result. This is
consistent with the obervation that the only failed assert was for a
lifetime of 300s, the only multiple of 6.

This can be observed by detecting the age limit at which the filter
stops dropping packet oscillating between lifetime/6 and lifetime/6 + 1
for lifetimes which are multiple of 6.

This patch fixes the flakyness by freezing the flow of time in tests so
that the expected filter age threshold is consistent and stable.

Test: no failure observed in 1000 runs.
Bug: 32561414
Change-Id: I5251d047039f34b82ce8a5d20ae46563e1e0cce8

7 years agoMerge "Remove some unused code around process state reporting."
Dianne Hackborn [Tue, 31 Jan 2017 01:55:54 +0000 (01:55 +0000)]
Merge "Remove some unused code around process state reporting."

7 years agoMerge "Minor updates to reflect libbinder changes."
TreeHugger Robot [Tue, 31 Jan 2017 01:53:13 +0000 (01:53 +0000)]
Merge "Minor updates to reflect libbinder changes."

7 years agoAdd instant cookie APIs
Svetoslav Ganov [Tue, 31 Jan 2017 00:34:13 +0000 (16:34 -0800)]
Add instant cookie APIs

This change adds APIs for instant apps to store cookie data
that is presisted across instant installs and across the
upgrade from an instant to a standard app. Standard apps
can use the cookie APIs but when they are uninstalled the
cookie is also deleted. The cookies are kept longer than
the instant apps as they are much smaller - 16KB by default.
We can change the cookie size via a system setting i.e.
after we ship we can increase size if needed.

We also add internal APIs to surface information about
installed and uninstalled instant apps which should be
used for showing them in the UI. For this puporse we store
the icon, permissions, and label of uninstalled apps. If
the app is re-installed we drop this meta-data but keep
the cookie around. If we have cookie data stored and the
signing cert of the app changes when it gets re-intalled
we wipe the cookie.

Test: CTS tests pass; hiddent APIs tested manually

Change-Id: If145c0440cc61a5303e2cbb70228d235d36037a5

7 years agohotspot2: enclose conditional statement in parenthesis
Peter Qiu [Tue, 31 Jan 2017 01:47:53 +0000 (17:47 -0800)]
hotspot2: enclose conditional statement in parenthesis

Couple unit tests are failing due to conditional statements
not enclosed in the parenthesis, which causes unexpected
returned value for the equals function.  So fix it.

Bug: 34764955
Test: frameworks/base/wifi/tests/runtests.sh
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Change-Id: Iaf0151803cb62eb8af308e5de40558617f84cd2f

7 years agoMerge "[AWARE] Minor hardening of manager." am: d0f1c9d1d3 am: 155d9ba6fc am: 3e8f90a62b
Etan Cohen [Tue, 31 Jan 2017 01:45:23 +0000 (01:45 +0000)]
Merge "[AWARE] Minor hardening of manager." am: d0f1c9d1d3 am: 155d9ba6fc am: 3e8f90a62b
am: 4717b99a9d

Change-Id: Ia87571d271f0dd271b40445b14bba9d05f5b34f1

7 years agoMerge "[AWARE] Minor hardening of manager." am: d0f1c9d1d3 am: 155d9ba6fc
Etan Cohen [Tue, 31 Jan 2017 01:40:49 +0000 (01:40 +0000)]
Merge "[AWARE] Minor hardening of manager." am: d0f1c9d1d3 am: 155d9ba6fc
am: 3e8f90a62b

Change-Id: Ia909905095094f33c536774235d49060ca2d63c3

7 years agoMerge "[AWARE] Minor hardening of manager." am: d0f1c9d1d3
Etan Cohen [Tue, 31 Jan 2017 01:36:18 +0000 (01:36 +0000)]
Merge "[AWARE] Minor hardening of manager." am: d0f1c9d1d3
am: 155d9ba6fc

Change-Id: I222a30730ec6199a53c91fb6c3fd4b96846ac7d3

7 years agoMerge "[AWARE] Minor hardening of manager."
Etan Cohen [Tue, 31 Jan 2017 01:30:24 +0000 (01:30 +0000)]
Merge "[AWARE] Minor hardening of manager."
am: d0f1c9d1d3

Change-Id: I182e8c10eea318cf1fd3d3fe4da3275df01f851d

7 years agoMerge "Read SystemConfig on a worker thread"
Fyodor Kupolov [Tue, 31 Jan 2017 01:19:51 +0000 (01:19 +0000)]
Merge "Read SystemConfig on a worker thread"

7 years agoMerge "[AWARE] Minor hardening of manager."
Etan Cohen [Tue, 31 Jan 2017 01:19:48 +0000 (01:19 +0000)]
Merge "[AWARE] Minor hardening of manager."

7 years agoAdd new api ClipDescription.getTimestamp.
Sudheer Shanka [Wed, 18 Jan 2017 21:37:02 +0000 (13:37 -0800)]
Add new api ClipDescription.getTimestamp.

ClipDescription.getTimestamp can be used to know the time
at which the associated ClipData is copied to global clipboard.

Bug: 30873580
Test: cts-tradefed run singleCommand cts-dev --module CtsContentTestCases -t \
      android.content.cts.ClipDescriptionTest
Change-Id: I9486ab3fe0696959d42f6b4c98e40f5becee3019

7 years agoAdd user picker for anchored window.
Jason Long [Fri, 27 Jan 2017 23:21:12 +0000 (15:21 -0800)]
Add user picker for anchored window.
Test: CtsAutoFillServiceTestCases

Bug: 34633695
Change-Id: I274264846358941983183a32f07cade3b26c8c05

7 years agoMerge "Merge changes I8eca5f24,I9d79c67c am: 54604d9143 am: 276672d192 am: 5445bdda28...
Android Build Merger (Role) [Tue, 31 Jan 2017 01:16:32 +0000 (01:16 +0000)]
Merge "Merge changes I8eca5f24,I9d79c67c am: 54604d9143 am: 276672d192 am: 5445bdda28 am: b67f853f6f"

7 years agoMerge changes I8eca5f24,I9d79c67c am: 54604d9143 am: 276672d192 am: 5445bdda28
Jerry Zhang [Tue, 31 Jan 2017 01:15:55 +0000 (01:15 +0000)]
Merge changes I8eca5f24,I9d79c67c am: 54604d9143 am: 276672d192 am: 5445bdda28
am: b67f853f6f

Change-Id: I841123c2ba343a1ff1d0205c239ada0b54622988

7 years agoMerge changes from topic 'am-7c11f830c3cc4f4994e740cad00a8e97'
Android Build Merger (Role) [Tue, 31 Jan 2017 01:15:24 +0000 (01:15 +0000)]
Merge changes from topic 'am-7c11f830c3cc4f4994e740cad00a8e97'

* changes:
  Check and send usb state broadcast when devices boots am: af6d473ab0 am: 061bceafee am: df1df40f91 am: 307a387f38
  Only send usb disconnect intents after boot. am: c1bc0a844d am: dc9c094deb am: 9877c70d9d am: 1064ee66d5

7 years agoMerge "Define targetSandboxVersion"
TreeHugger Robot [Tue, 31 Jan 2017 01:14:40 +0000 (01:14 +0000)]
Merge "Define targetSandboxVersion"

7 years agoCheck and send usb state broadcast when devices boots am: af6d473ab0 am: 061bceafee...
Badhri Jagan Sridharan [Tue, 31 Jan 2017 01:14:33 +0000 (01:14 +0000)]
Check and send usb state broadcast when devices boots am: af6d473ab0 am: 061bceafee am: df1df40f91
am: 307a387f38

Change-Id: Icf4b4e4f48fea450b71bd7ccd88db7d089ea286e

7 years agoOnly send usb disconnect intents after boot. am: c1bc0a844d am: dc9c094deb am: 9877c70d9d
Jerry Zhang [Tue, 31 Jan 2017 01:13:20 +0000 (01:13 +0000)]
Only send usb disconnect intents after boot. am: c1bc0a844d am: dc9c094deb am: 9877c70d9d
am: 1064ee66d5

Change-Id: If501641b5a7cbb4264f40f3bcf2add35e0851f78

7 years agoEnabling low storage notification on Android TV
Dmitri Plotnikov [Sat, 28 Jan 2017 00:42:12 +0000 (16:42 -0800)]
Enabling low storage notification on Android TV

Bug: 34471528
Test: Test apk attached to the bug
Change-Id: Idc96b913f1d2b67a4c52a2ecd762ee4056802d56

7 years agoMerge changes I8eca5f24,I9d79c67c am: 54604d9143 am: 276672d192
Jerry Zhang [Tue, 31 Jan 2017 01:09:09 +0000 (01:09 +0000)]
Merge changes I8eca5f24,I9d79c67c am: 54604d9143 am: 276672d192
am: 5445bdda28

Change-Id: I6f17910b547553571b3b92c60deb5ee8acf6af2a