OSDN Git Service

android-x86/frameworks-base.git
7 years agoMerge "Nat464Xlat: internal state guards cleanup + state enum" am: aee703e7e4
Hugo Benichi [Mon, 28 Aug 2017 23:01:36 +0000 (23:01 +0000)]
Merge "Nat464Xlat: internal state guards cleanup + state enum" am: aee703e7e4
am: 20d4df8cc1

Change-Id: Ic2246a97618c596dbdbf48cda39c2f5b66e3bfb6

7 years agoMerge "Nat464Xlat: internal state guards cleanup + state enum"
Hugo Benichi [Mon, 28 Aug 2017 22:49:50 +0000 (22:49 +0000)]
Merge "Nat464Xlat: internal state guards cleanup + state enum"
am: aee703e7e4

Change-Id: I188ac4c367db11cb33b67fe92df3a120e3c6fbce

7 years agoMerge "Fixed mimetype error of PPT file" am: 3c28e2b280
bokyung.kim [Mon, 28 Aug 2017 22:37:39 +0000 (22:37 +0000)]
Merge "Fixed mimetype error of PPT file" am: 3c28e2b280
am: 148414cd2c

Change-Id: I73f527fd006a39f00dafbe0b8c85cd583cf283f7

7 years agoMerge "Nat464Xlat: internal state guards cleanup + state enum"
Hugo Benichi [Mon, 28 Aug 2017 22:30:27 +0000 (22:30 +0000)]
Merge "Nat464Xlat: internal state guards cleanup + state enum"

7 years agoMerge "Fixed mimetype error of PPT file"
bokyung.kim [Mon, 28 Aug 2017 22:27:38 +0000 (22:27 +0000)]
Merge "Fixed mimetype error of PPT file"
am: 3c28e2b280

Change-Id: I24b9dcf6506c53e26b901f74442f64bb28198611

7 years agoMerge "Fixed mimetype error of PPT file"
Treehugger Robot [Mon, 28 Aug 2017 22:12:37 +0000 (22:12 +0000)]
Merge "Fixed mimetype error of PPT file"

7 years agoImport translations. DO NOT MERGE
Bill Yi [Mon, 28 Aug 2017 20:23:48 +0000 (20:23 +0000)]
Import translations. DO NOT MERGE
am: e0fec63824  -s ours

Change-Id: Iac255ef2407c7e3ff393fb01124d9a052bcde728

7 years agoFixed mimetype error of PPT file
bokyung.kim [Wed, 26 Jul 2017 01:18:39 +0000 (10:18 +0900)]
Fixed mimetype error of PPT file

Change mimetype of PPT file to match MS specification.
(MimeUtils.java matched the MS specification)

Test: Check mimetype of DB after saving PPT file.

Change-Id: Ie559499ae39bc527fcc656ba37f28845af209e6c
Signed-off-by: bokyung.kim <bokyung.kim@lge.com>
7 years agoMerge "Ensure the generation is not changed before put value to cache" am: 11ae580f81
xulicheng [Mon, 28 Aug 2017 20:11:08 +0000 (20:11 +0000)]
Merge "Ensure the generation is not changed before put value to cache" am: 11ae580f81
am: 489f2c2c48

Change-Id: Idab1a2d1f4ee8cc28a38c3c82ea9a8ad7f9d3bf4

7 years agoMerge "Ensure the generation is not changed before put value to cache"
xulicheng [Mon, 28 Aug 2017 19:58:06 +0000 (19:58 +0000)]
Merge "Ensure the generation is not changed before put value to cache"
am: 11ae580f81

Change-Id: I5bf2c557f6f46f1455204761a9045b8b90d7ea32

7 years agoMerge "Ensure the generation is not changed before put value to cache"
Treehugger Robot [Mon, 28 Aug 2017 19:42:11 +0000 (19:42 +0000)]
Merge "Ensure the generation is not changed before put value to cache"

7 years agoMerge "Trivial change to test expectations." am: c0d8300b32
Lorenzo Colitti [Mon, 28 Aug 2017 12:58:30 +0000 (12:58 +0000)]
Merge "Trivial change to test expectations." am: c0d8300b32
am: 3dd0137ee5

Change-Id: I40e6535b22688b47845e6c57d3f13963bc8a6201

7 years agoMerge "Trivial change to test expectations."
Lorenzo Colitti [Mon, 28 Aug 2017 12:49:29 +0000 (12:49 +0000)]
Merge "Trivial change to test expectations."
am: c0d8300b32

Change-Id: I58155e3edb424ea6918a3d2bb8e284e61346765f

7 years agoMerge "Trivial change to test expectations."
Treehugger Robot [Mon, 28 Aug 2017 12:39:29 +0000 (12:39 +0000)]
Merge "Trivial change to test expectations."

7 years agoMerge "Nat464Xlat: clat management cleanup" am: 81b179cfdd
Hugo Benichi [Mon, 28 Aug 2017 12:11:28 +0000 (12:11 +0000)]
Merge "Nat464Xlat: clat management cleanup" am: 81b179cfdd
am: b6805dc02f

Change-Id: I1a19e6fbb0cb13262e90b171d861062469078fb6

7 years agoMerge "Nat464Xlat: clat management cleanup"
Hugo Benichi [Mon, 28 Aug 2017 12:01:25 +0000 (12:01 +0000)]
Merge "Nat464Xlat: clat management cleanup"
am: 81b179cfdd

Change-Id: Ic3808a1afe48efac745b1b378fb12cc5678918ec

7 years agoMerge "Nat464Xlat: clat management cleanup"
Hugo Benichi [Mon, 28 Aug 2017 11:47:08 +0000 (11:47 +0000)]
Merge "Nat464Xlat: clat management cleanup"

7 years agoTrivial change to test expectations.
Lorenzo Colitti [Thu, 24 Aug 2017 03:40:07 +0000 (12:40 +0900)]
Trivial change to test expectations.

(cherry picked from commit 0fee732ca579bbc4320ade35f238bdfa1aa500f5)

Bug: 32163131
Test: runtest frameworks-net
Change-Id: Iec8af5191b4da495e47ef97d70a03a5d2e75cfe2

7 years agoMerge "switch to native_handle_create() for passing ownership" am: 5fe8e51904
Lorenzo Colitti [Mon, 28 Aug 2017 08:20:15 +0000 (08:20 +0000)]
Merge "switch to native_handle_create() for passing ownership" am: 5fe8e51904
am: 639808f1c7

Change-Id: I3bd8f99cc3c1a6bc435721c7dc18e061f61fc175

7 years agoMerge "switch to native_handle_create() for passing ownership"
Lorenzo Colitti [Mon, 28 Aug 2017 08:11:20 +0000 (08:11 +0000)]
Merge "switch to native_handle_create() for passing ownership"
am: 5fe8e51904

Change-Id: I101de0e7e76f61bd3f05183f4a13ac94c79ae1aa

7 years agoMerge "switch to native_handle_create() for passing ownership"
Lorenzo Colitti [Mon, 28 Aug 2017 08:02:19 +0000 (08:02 +0000)]
Merge "switch to native_handle_create() for passing ownership"

7 years agoNat464Xlat: internal state guards cleanup + state enum
Hugo Benichi [Thu, 29 Jun 2017 05:04:13 +0000 (14:04 +0900)]
Nat464Xlat: internal state guards cleanup + state enum

This patch does some cleanup of Nat464Xlat internal state guards
against the Nat464Xlat state Idle | Started | Running, which reduces
code nesting.

It also replaces introspection of internal state for distinguishing
between different stages in 464xlat lifecycle with an enum explicitly
introducing these three Idle | Started | Running states.

Bug: 62997041
Bug: 64571917
Test:  runtest frameworks-net
       manually connected to ipv6 network and went to test-ipv6.com
Change-Id: I6efc9fed2420ca488731a2b9b9c3c025b16eca10

7 years agoNat464Xlat: clat management cleanup
Hugo Benichi [Tue, 27 Jun 2017 06:13:20 +0000 (15:13 +0900)]
Nat464Xlat: clat management cleanup

This patch does some minor refactoring of clat starting/stopping code:
 - remove unused LinkProperties arguments in updateClat
 - remove unused Context argument in Nat464Xlat ctor
 - introduce ensureClatIsStarted and ensureClatIsStopped methods and
   simplify updateClat
 - add clatd to NetworkAgentInfo toString() method
 - clarify some comments

This changes prepare for moving BaseNetworkObserver callbacks to
ConnectivityService.

Bug: 62997041
Bug: 64571917
Test: runtest frameworks-net
      manually connected to IPv6 only network and went to test-ipv6.com
Change-Id: Idb204784614cfe700f73255a7a7b78c5e9ee6eca

7 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 27 Aug 2017 18:43:06 +0000 (11:43 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Ida2b6138972c18c15b86e7822d010c4a675ab762

7 years agoMerge "DeviceInfoUtils.java: support to show kernel version compiled with clang"...
Yongqin Liu [Sat, 26 Aug 2017 00:46:07 +0000 (00:46 +0000)]
Merge "DeviceInfoUtils.java: support to show kernel version compiled with clang" am: b5b1308f2f
am: c54162d3ff

Change-Id: Ie9225108f7ac354212a186d2e26d1f278d9fb7e8

7 years agoMerge "DeviceInfoUtils.java: support to show kernel version compiled with clang"
Yongqin Liu [Sat, 26 Aug 2017 00:36:54 +0000 (00:36 +0000)]
Merge "DeviceInfoUtils.java: support to show kernel version compiled with clang"
am: b5b1308f2f

Change-Id: I05f37f0ca0a18bd291aea8d49e2747b40d30b572

7 years agoMerge "DeviceInfoUtils.java: support to show kernel version compiled with clang"
Treehugger Robot [Sat, 26 Aug 2017 00:24:23 +0000 (00:24 +0000)]
Merge "DeviceInfoUtils.java: support to show kernel version compiled with clang"

7 years agoMerge "Clarified that getAutofillValue() must return same value passed to autofill...
Felipe Leme [Fri, 25 Aug 2017 21:55:40 +0000 (21:55 +0000)]
Merge "Clarified that getAutofillValue() must return same value passed to autofill()." into oc-dev am: 7d29b6f2df
am: da31220015

Change-Id: I2a928f1e1c0e7fba03c1ebc8c61a182ecebb32c0

7 years agoMerge "AOD: Only play wakeup animation when actually waking up" into oc-dr1-dev
Adrian Roos [Fri, 25 Aug 2017 21:45:36 +0000 (21:45 +0000)]
Merge "AOD: Only play wakeup animation when actually waking up" into oc-dr1-dev
am: feb69bf5a7

Change-Id: I14d244bc7cc413ff204d37dee6d621af9e0e8e29

7 years agoMerge "Clarified that getAutofillValue() must return same value passed to autofill...
Felipe Leme [Fri, 25 Aug 2017 21:36:04 +0000 (21:36 +0000)]
Merge "Clarified that getAutofillValue() must return same value passed to autofill()." into oc-dev
am: 7d29b6f2df

Change-Id: Ibfabc9d32aa0da80e636a27eebf1b50bdd9692b3

7 years agoMerge "Clarified that getAutofillValue() must return same value passed to autofill...
TreeHugger Robot [Fri, 25 Aug 2017 21:27:56 +0000 (21:27 +0000)]
Merge "Clarified that getAutofillValue() must return same value passed to autofill()." into oc-dev

7 years agoMerge "AOD: Only play wakeup animation when actually waking up" into oc-dr1-dev
TreeHugger Robot [Fri, 25 Aug 2017 21:25:02 +0000 (21:25 +0000)]
Merge "AOD: Only play wakeup animation when actually waking up" into oc-dr1-dev

7 years agoMerge "Emergency redial implementation" am: b3b09849bc
Brad Ebinger [Fri, 25 Aug 2017 20:45:04 +0000 (20:45 +0000)]
Merge "Emergency redial implementation" am: b3b09849bc
am: f5a457244c

Change-Id: Ied2aa7255546df647b01884b6c1689c6192e1d67

7 years agoMerge "Emergency redial implementation"
Brad Ebinger [Fri, 25 Aug 2017 20:31:26 +0000 (20:31 +0000)]
Merge "Emergency redial implementation"
am: b3b09849bc

Change-Id: If7fe179da4eb4c639dad1e2957f091bbee9e54f9

7 years agoMerge "Emergency redial implementation"
Brad Ebinger [Fri, 25 Aug 2017 20:05:53 +0000 (20:05 +0000)]
Merge "Emergency redial implementation"

7 years agoMerge "Minor Autofill javadoc fixes." into oc-dev am: 560221752e
Felipe Leme [Fri, 25 Aug 2017 19:47:23 +0000 (19:47 +0000)]
Merge "Minor Autofill javadoc fixes." into oc-dev am: 560221752e
am: 948e9ff4d3

Change-Id: I90a42739dfa01c49fdbf799c49e3d569abcedf11

7 years agoMerge "Minor Autofill javadoc fixes." into oc-dev
Felipe Leme [Fri, 25 Aug 2017 19:36:56 +0000 (19:36 +0000)]
Merge "Minor Autofill javadoc fixes." into oc-dev
am: 560221752e

Change-Id: Ib2924dae99bfe132a56a1583ecf4a88f833d3937

7 years agoMerge "Minor Autofill javadoc fixes." into oc-dev
TreeHugger Robot [Fri, 25 Aug 2017 19:12:22 +0000 (19:12 +0000)]
Merge "Minor Autofill javadoc fixes." into oc-dev

7 years agoMerge "Add new error code in SmsManager" am: 387ed22fef
Shuo Qian [Fri, 25 Aug 2017 18:35:16 +0000 (18:35 +0000)]
Merge "Add new error code in SmsManager" am: 387ed22fef
am: 782395561d

Change-Id: I12924c377167e11889942f2bfba555a07b45d9ac

7 years agoMerge "Add new error code in SmsManager"
Shuo Qian [Fri, 25 Aug 2017 18:15:12 +0000 (18:15 +0000)]
Merge "Add new error code in SmsManager"
am: 387ed22fef

Change-Id: Iff96995b90ecd6ae7fcceebf6b2017344038be72

7 years agoMerge "Add new error code in SmsManager"
Shuo Qian [Fri, 25 Aug 2017 18:01:18 +0000 (18:01 +0000)]
Merge "Add new error code in SmsManager"

7 years agoEmergency redial implementation
Srikanth Chintala [Thu, 4 May 2017 15:28:34 +0000 (20:58 +0530)]
Emergency redial implementation

Define connection event to notify
Telecom/InCallUi about change in
account handle after redial and extra
for emergency phone handle.

Bug: 27059146
Change-Id: Ie72ab2901ec05d972204ed11f115a05b79173c1d

7 years agoMerge "Switch /data/misc/reboot/last_reboot_reason to persistent property" am: 0172ce8dbf
Mark Salyzyn [Fri, 25 Aug 2017 14:37:35 +0000 (14:37 +0000)]
Merge "Switch /data/misc/reboot/last_reboot_reason to persistent property" am: 0172ce8dbf
am: cf5fa80fbf

Change-Id: Ica26cd9240a977d9140c72f5606c8b9d874001d9

7 years agoMerge "Switch /data/misc/reboot/last_reboot_reason to persistent property"
Mark Salyzyn [Fri, 25 Aug 2017 14:25:41 +0000 (14:25 +0000)]
Merge "Switch /data/misc/reboot/last_reboot_reason to persistent property"
am: 0172ce8dbf

Change-Id: I69a9c17fc8594dee564e8c64e9d85f2afe60607b

7 years agoMerge "Switch /data/misc/reboot/last_reboot_reason to persistent property"
Mark Salyzyn [Fri, 25 Aug 2017 14:16:12 +0000 (14:16 +0000)]
Merge "Switch /data/misc/reboot/last_reboot_reason to persistent property"

7 years agoswitch to native_handle_create() for passing ownership
Erik Kline [Thu, 24 Aug 2017 05:21:57 +0000 (22:21 -0700)]
switch to native_handle_create() for passing ownership

Test: builds
Bug: 29337859
Bug: 32163131
Bug: 64976634
Change-Id: Ifd064736c9fcb633b72e56e93b7baa5f4a5ff051

7 years agoEnsure the generation is not changed before put value to cache
xulicheng [Thu, 24 Aug 2017 03:29:03 +0000 (11:29 +0800)]
Ensure the generation is not changed before put value to cache

It may get old value from mValues, so check the generation
is not changed before update cache

Bug: https://issuetracker.google.com/issues/64995655
Test: Build
Change-Id: Ia7ae18baa269d0590e36f186e2f14b0bfbab3504
Signed-off-by: xulicheng <xulicheng@xiaomi.com>
7 years agoMerge "Track conference start in system elapsed time." am: 3b166fba8a
Tyler Gunn [Thu, 24 Aug 2017 23:08:07 +0000 (23:08 +0000)]
Merge "Track conference start in system elapsed time." am: 3b166fba8a
am: 49042dc67c

Change-Id: I90aa59e2889973dd1bd1d443b7bf5a11cbf46695

7 years agoMerge "Track conference start in system elapsed time."
Tyler Gunn [Thu, 24 Aug 2017 22:58:02 +0000 (22:58 +0000)]
Merge "Track conference start in system elapsed time."
am: 3b166fba8a

Change-Id: I8b78aaa447adcc1bfce0fec8f50857daa37d0575

7 years agoMerge "Track conference start in system elapsed time."
Tyler Gunn [Thu, 24 Aug 2017 22:24:16 +0000 (22:24 +0000)]
Merge "Track conference start in system elapsed time."

7 years agoMerge "Add new telephony disconnect causes for low battery scenario." am: 573948c49c
Tyler Gunn [Thu, 24 Aug 2017 22:10:54 +0000 (22:10 +0000)]
Merge "Add new telephony disconnect causes for low battery scenario." am: 573948c49c
am: 3da596d291

Change-Id: I9c9f4898b74d7f0a4cbef0a8f85d94deb683b9dc

7 years agoMerge changes from topic "bt-fix-checkstyle-errors" am: 838ab94a0f
Jack He [Thu, 24 Aug 2017 21:54:51 +0000 (21:54 +0000)]
Merge changes from topic "bt-fix-checkstyle-errors" am: 838ab94a0f
am: 8ae5462199

Change-Id: I44636b8f052b6e48f562f53869dcdfeffbcc0fc9

7 years agoMerge "Add new telephony disconnect causes for low battery scenario."
Tyler Gunn [Thu, 24 Aug 2017 21:53:57 +0000 (21:53 +0000)]
Merge "Add new telephony disconnect causes for low battery scenario."
am: 573948c49c

Change-Id: I73255cdc492992b03633831a2d9240b933f21064

7 years agoMerge changes from topic "bt-fix-checkstyle-errors"
Jack He [Thu, 24 Aug 2017 21:43:08 +0000 (21:43 +0000)]
Merge changes from topic "bt-fix-checkstyle-errors"
am: 838ab94a0f

Change-Id: I4e619cb17582a6cc954814654820cd945f66e1cc

7 years agoAdd new error code in SmsManager
sqian [Wed, 9 Aug 2017 22:28:41 +0000 (15:28 -0700)]
Add new error code in SmsManager

Design doc: https://docs.google.com/a/google.com/document/d
/1YPTNoM2Atjz8oISGAsRYlFVSA1NcYP8MbqYQIzLcJ9E/edit?usp=sharing

Test: compile/flash code; test locally
Bug: 34773406
Change-Id: I0b227e76048dd46d9c8023d37647db763e1e38e1
Merged-In: I0b227e76048dd46d9c8023d37647db763e1e38e1

7 years agoMerge "Add new telephony disconnect causes for low battery scenario."
Treehugger Robot [Thu, 24 Aug 2017 21:33:55 +0000 (21:33 +0000)]
Merge "Add new telephony disconnect causes for low battery scenario."

7 years agoMerge changes from topic "bt-fix-checkstyle-errors"
Treehugger Robot [Thu, 24 Aug 2017 21:25:49 +0000 (21:25 +0000)]
Merge changes from topic "bt-fix-checkstyle-errors"

* changes:
  Fix checkstyle errors (2/2)
  Fix checkstyle errors (1/2)

7 years agoAdd new telephony disconnect causes for low battery scenario.
Tyler Gunn [Tue, 22 Aug 2017 18:13:05 +0000 (11:13 -0700)]
Add new telephony disconnect causes for low battery scenario.

LOW_BATTERY is for disconnect mid-call due to low battery.
DIAL_LOW_BATTERY is for failure while dialing due to low battery.

Test: Manual.
Merged-In: Ife7a4ca5645b3fb42ab20effb4d8d4a8fef8116b
Change-Id: Ife7a4ca5645b3fb42ab20effb4d8d4a8fef8116b
Fixes: 63936576

7 years agoFix checkstyle errors (2/2)
Jack He [Wed, 23 Aug 2017 04:21:23 +0000 (21:21 -0700)]
Fix checkstyle errors (2/2)

* Manual style corrections with IDE assistance
* Variable name refactors are done through IDE
* Corrected general style errors such as:
  - "final private var" -> "private final var"
  - "&&", "+", "||" should not be at the end of line
  - Non-static private variable should be like "mVar"
  - Private static variable should be like "sVar"
  - Code file should always end with newline
  - Inherited methods should be annotated with @Override
    and no @hide tags
  - Public methods should always have a JavaDoc entry
  - "int[] array" is preferred over "int array[]"
  - private methods should be accessed without "this."
    when there is no name collisions.
  - "boolean ? true : false" -> boolean
  - "boolean ? false : true" -> !boolean
  - "boolean == true" OR "boolean != false" -> boolean
  - "boolean != true" OR "boolean == false" -> !boolean

Bug: 63596319
Test: make checkbuild, no functional changes
Change-Id: Iabdc2be912a32dd63a53213d175cf1bfef268ccd

7 years agoFix checkstyle errors (1/2)
Jack He [Tue, 22 Aug 2017 23:06:54 +0000 (16:06 -0700)]
Fix checkstyle errors (1/2)

* Automatic style corrections through IDE

Bug: 63596319
Test: make checkbuild, no manual changes, no functional changes
Change-Id: I2397d55abc34c9b7a9b748bec6137778df3421a7

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dr1-dev
Bill Yi [Thu, 24 Aug 2017 16:11:23 +0000 (16:11 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dr1-dev
am: 7175b7b929  -s ours

Change-Id: I45956469aa428467ffb7039288cd99a177566083

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dr1-dev
TreeHugger Robot [Thu, 24 Aug 2017 16:01:06 +0000 (16:01 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dr1-dev

7 years agoDeviceInfoUtils.java: support to show kernel version compiled with clang
Yongqin Liu [Thu, 8 Jun 2017 08:15:29 +0000 (16:15 +0800)]
DeviceInfoUtils.java: support to show kernel version compiled with clang

The kernel version displayed in settings is only shown correctly
when built with gcc, this change adds support for a kernel built
with clang.

Test: manually on hikey with following command:
adb shell am instrument -w -e class com.android.settings.DeviceInfoSettingsTest com.android.settings.tests.unit/android.support.test.runner.AndroidJUnitRunner

Change-Id: I9b7991681cb5abdf44e7d1d1bff84c7c866be2ed
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
7 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 24 Aug 2017 11:18:53 +0000 (04:18 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import

Bug: 64712476
Change-Id: Ied6de9cbe69d8c72f9ba8c0095451a175f02d4dd

7 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 24 Aug 2017 07:50:24 +0000 (07:50 +0000)]
Import translations. DO NOT MERGE
am: b4f16b10af  -s ours

Change-Id: I0b3cf2e8204f78f342754b06988bd63344e72fa7

7 years agoMerge changes from topic "offload_cherrypick" am: b09cf3fbf1
Erik Kline [Thu, 24 Aug 2017 05:44:58 +0000 (05:44 +0000)]
Merge changes from topic "offload_cherrypick" am: b09cf3fbf1
am: df2a880775

Change-Id: I3db23fef19fc66a4eee158fb3367f45078b30872

7 years agoMerge changes from topic "offload_cherrypick"
Erik Kline [Thu, 24 Aug 2017 05:33:44 +0000 (05:33 +0000)]
Merge changes from topic "offload_cherrypick"
am: b09cf3fbf1

Change-Id: Icb4332b34bc8b940a2c30beab143f7136e0178de

7 years agoMerge changes from topic "offload_cherrypick"
Treehugger Robot [Thu, 24 Aug 2017 05:18:23 +0000 (05:18 +0000)]
Merge changes from topic "offload_cherrypick"

* changes:
  Send add/removeDownstream info to offload HAL
  Don't completely stop offload if setting data limit fails.

7 years agoMerge "Make NetworkManagementServiceTest pass again." am: 29b1826ff2
Hugo Benichi [Thu, 24 Aug 2017 03:57:38 +0000 (03:57 +0000)]
Merge "Make NetworkManagementServiceTest pass again." am: 29b1826ff2
am: d3d6ddea94

Change-Id: I3bd2e7242a8100590311cca40369adf45b06e52f

7 years agoSend add/removeDownstream info to offload HAL
Erik Kline [Thu, 6 Jul 2017 10:49:35 +0000 (19:49 +0900)]
Send add/removeDownstream info to offload HAL

Test: as follows
    - built
    - flashed
    - booted
    - "runtest frameworks-net" passed
Bug: 29337859
Bug: 32163131

Merged-In: I0cb81ac054fc2bf6c8b8bfe658e9404a15091d7a
Merged-In: I7abcdcc2d7d967179c47081a6db2b417164891f3
Change-Id: I6c59aa7cb80b54f376f294b24c1409710c553d74
(cherry picked from commit ed962a84122ab950a103fbbc0bf911f61b6b9500)

7 years agoDon't completely stop offload if setting data limit fails.
Lorenzo Colitti [Mon, 21 Aug 2017 03:34:50 +0000 (12:34 +0900)]
Don't completely stop offload if setting data limit fails.

Currently, if setting a data limit fails, we completely stop
offload in order to avoid data overages. However, the next thing
we do is try to fetch the stats and crash, because once offload
is stopped all our local state is cleared.

Fix this by fetching stats before we stop offload.

Bug: 29337859
Bug: 32163131
Bug: 64867836
Test: OffloadControllerTest passes
Test: no crash when disabling wifi tethering with BT tethering active
Merged-In: I7fc47e60b2da5f39c26fb22c1325618f9948dd38
Merged-In: I464dd2a6d1996b1cfb8bbf82b6ee453fd0747569
Change-Id: I260f5450f8b67f055983af68fb23a5f3cfc0bc69
(cherry picked from commit d743601a002ac12c02da58e92ebd0544ab0b77ea)

7 years agoMerge "Make NetworkManagementServiceTest pass again."
Hugo Benichi [Thu, 24 Aug 2017 03:46:07 +0000 (03:46 +0000)]
Merge "Make NetworkManagementServiceTest pass again."
am: 29b1826ff2

Change-Id: If7fafa0922fdbc499c0c911a3f88ede9c8a26c1d

7 years agoMerge "Make NetworkManagementServiceTest pass again."
Hugo Benichi [Thu, 24 Aug 2017 03:36:20 +0000 (03:36 +0000)]
Merge "Make NetworkManagementServiceTest pass again."

7 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 24 Aug 2017 03:13:10 +0000 (20:13 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import

Bug: 64712476
Change-Id: Ifc65484d51405de737a5b269fe6b6036638d0df1

7 years agoMerge "Tethering offload stats updates are eventually consistent" am: ff12ba9376
Hugo Benichi [Thu, 24 Aug 2017 03:02:47 +0000 (03:02 +0000)]
Merge "Tethering offload stats updates are eventually consistent" am: ff12ba9376
am: bbadcfd315

Change-Id: I3ad83ee73bded3b3987bbc86d776852e6ef20f28

7 years agoMerge "Tethering offload stats updates are eventually consistent"
Hugo Benichi [Thu, 24 Aug 2017 02:52:42 +0000 (02:52 +0000)]
Merge "Tethering offload stats updates are eventually consistent"
am: ff12ba9376

Change-Id: I3a8ddc928b60c666faab2991defe8fb7afd0801e

7 years agoMerge "Tethering offload stats updates are eventually consistent"
Hugo Benichi [Thu, 24 Aug 2017 02:37:03 +0000 (02:37 +0000)]
Merge "Tethering offload stats updates are eventually consistent"

7 years agoMerge "Embms adjustments for 7/28" am: 3f6a95e8b0
Hall Liu [Wed, 23 Aug 2017 22:22:48 +0000 (22:22 +0000)]
Merge "Embms adjustments for 7/28" am: 3f6a95e8b0
am: aeb64f7f98

Change-Id: I88b9f6fb07b9e7e10bb375d2e8bef968da51c20c

7 years agoMerge "Embms adjustments for 7/28"
Hall Liu [Wed, 23 Aug 2017 22:10:09 +0000 (22:10 +0000)]
Merge "Embms adjustments for 7/28"
am: 3f6a95e8b0

Change-Id: I925a0a894098071a3d092d953e4d545a58531a69

7 years agoMerge "Embms adjustments for 7/28"
Hall Liu [Wed, 23 Aug 2017 20:18:15 +0000 (20:18 +0000)]
Merge "Embms adjustments for 7/28"

7 years agoMerge "power: throttle interaction hints" into oc-dev am: 78701217fd -s ours
Tim Murray [Wed, 23 Aug 2017 20:01:05 +0000 (20:01 +0000)]
Merge "power: throttle interaction hints" into oc-dev am: 78701217fd  -s ours
am: dd028e7c26

Change-Id: Ie7dae1e15d80fa422fed47efb21a5d388c5be3b2

7 years agoMerge "power: throttle interaction hints" into oc-dev
Tim Murray [Wed, 23 Aug 2017 19:48:14 +0000 (19:48 +0000)]
Merge "power: throttle interaction hints" into oc-dev
am: 78701217fd  -s ours

Change-Id: I5135ddb75679ff6e4ffe5bb8daff97daf05deb34

7 years agoMerge "power: throttle interaction hints" into oc-dev
TreeHugger Robot [Wed, 23 Aug 2017 19:25:47 +0000 (19:25 +0000)]
Merge "power: throttle interaction hints" into oc-dev

7 years agoEmbms adjustments for 7/28
Hall Liu [Thu, 27 Jul 2017 22:33:31 +0000 (15:33 -0700)]
Embms adjustments for 7/28

* Move some vendor intents and extras into a VendorIntents class
* Add a download result RESULT_IO_ERROR
* Add documentation noting that repeated calls to
setTempFileRootDirectory will not throw an error if the parameter is the
same.
* Add getTempFileRootDirectory method for app
* Hide AIDL classes from the public/system API surfaces for download
* Remove size and md5hash from FileInfo

Change-Id: I8c968a7d68db2588ee550167ed2693fe89c5925a

7 years agoMerge "Embms API adjustments for 7/21" am: 489dcb7cca am: 488d3bf786
Hall Liu [Wed, 23 Aug 2017 17:05:57 +0000 (17:05 +0000)]
Merge "Embms API adjustments for 7/21" am: 489dcb7cca am: 488d3bf786
am: 7754e25694

Change-Id: I2724aab757b94957dd9174e4b86c48952a59ebdc

7 years agoMerge "Embms API adjustments for 7/21" am: 489dcb7cca
Hall Liu [Wed, 23 Aug 2017 16:56:26 +0000 (16:56 +0000)]
Merge "Embms API adjustments for 7/21" am: 489dcb7cca
am: 488d3bf786

Change-Id: I03ca7bd2734b5410c37b23ba2e8d33d722ad7ebf

7 years agoMerge "Embms API adjustments for 7/21"
Hall Liu [Wed, 23 Aug 2017 16:44:01 +0000 (16:44 +0000)]
Merge "Embms API adjustments for 7/21"
am: 489dcb7cca

Change-Id: Ia0b3e9908878c2053c25753b8d393070c2c48a0e

7 years agoAOD: Only play wakeup animation when actually waking up
Adrian Roos [Mon, 21 Aug 2017 15:17:20 +0000 (17:17 +0200)]
AOD: Only play wakeup animation when actually waking up

Fixes an issue where the wake up animation could play when going to sleep,
if the screen turning on for AOD happened after the finishing going to sleep.

Change-Id: I6b00aaefb672a630f43ca229d6cc66d12bc4205c
Fixes: 64814671
Test: Pull up app launcher, turn off screen, verify AOD does not blink.
(cherry picked from commit b9afae2e50c0240ee103ab44fad13b75aef985b6)

7 years agoMerge "Embms API adjustments for 7/21"
Hall Liu [Wed, 23 Aug 2017 16:37:50 +0000 (16:37 +0000)]
Merge "Embms API adjustments for 7/21"

7 years agoTethering offload stats updates are eventually consistent
Hugo Benichi [Tue, 22 Aug 2017 04:57:41 +0000 (13:57 +0900)]
Tethering offload stats updates are eventually consistent

This patch removes the call to runWithScissors() in
OffloadController#getTetherStats() that was causing a deadlock when
NetworkStatsService would be polled for stats in certain threading
contexts.

Instead of trying to query the tethering offload HAL synchronously all
the time, this patch:
 - changes getTetherStats() to only call into the offload HAL when it
   detects that it is called on the same thread as the Tethering handler
   thread.
 - changes the map of interface to accumulated tethering forwarded stats
   to be concurrent.

This makes stats reading from getTetherStats() eventually consistent.
From the point of view of getTetherStats(), it preserves the guarantees
that tethering stats are monotonically increasing, and also guarantees
no tearing between rx bytes and tx bytes.

Bug: 29337859
Bug: 32163131
Bug: 64771555
Test: runtest frameworks-net
Merged-In: Ibcd351ad0225ef146b00a807833f76d2a886f6c1
Merged-In: I61786d61fe1422e429c0dd9eadaff6f02eb850e7
Merged-In: I999d1d1bf72e7ab02c5d17f37aad00bc711d3fc5

(cherry pick from commit eb5e465edd78bea26289f779b635c7e94d934854)

Change-Id: I28646b962cee8c8a6efd66059f84873c02ac5810

7 years agoMake NetworkManagementServiceTest pass again.
Lorenzo Colitti [Mon, 10 Jul 2017 17:29:28 +0000 (02:29 +0900)]
Make NetworkManagementServiceTest pass again.

1. Mock the service manager so that NMS can fetch mock versions
   of INetd and IBatteryStats.
2. Call LocalServices.removeServiceForTest to avoid a duplicate
   service registration error. // check this
3. Change the timeout from 100ms to 200ms, as otherwise the tests
   that check for IfaceClass fail.
4. Convert NetworkManagementServiceTest to JUnit 4.
5. Move NetworkManagementServiceTest to tests/net

Bug: 29337859
Bug: 32163131
Bug: 32561414
Bug: 62918393
Test: runtest frameworks-net
Change-Id: Ic7371b427b35809ccd446addf35c9d8ae99ccfd3

7 years agoEmbms API adjustments for 7/21
Hall Liu [Thu, 20 Jul 2017 22:32:51 +0000 (15:32 -0700)]
Embms API adjustments for 7/21

* Enforce that only one instance of each manager can be active.
* Add a death receipient for both managers to notify the app of binder
death
* Add documentation informing the app that it may not call create()
multiple times
* Fix a collision in streaming state reason codes
* Add documentation in DownloadRequest to indicate which methods should
be called by the middleware.

Change-Id: Ie15283b5c34fee736e8023dbd4f889c2ca95299e

7 years agoMerge "Enable Checkstyle for "repo upload" for more projects." am: 899398113a am...
Aurimas Liutikas [Tue, 22 Aug 2017 23:38:44 +0000 (23:38 +0000)]
Merge "Enable Checkstyle for "repo upload" for more projects." am: 899398113a am: 4f5ce75cbd
am: 01f9244e81

Change-Id: I878b8ec0564de9bff7fd8e3f507f2a6a7a07e7db

7 years agoMerge "Make dun APNs as read-only by default." am: 6645fdad68 am: be8044de83
Amit Mahajan [Tue, 22 Aug 2017 23:30:25 +0000 (23:30 +0000)]
Merge "Make dun APNs as read-only by default." am: 6645fdad68 am: be8044de83
am: 0e3b00f8b3

Change-Id: I61cdd3c5c8fba049c6a3748dde196fe232ece20b

7 years agoMerge "Enable Checkstyle for "repo upload" for more projects." am: 899398113a
Aurimas Liutikas [Tue, 22 Aug 2017 22:48:13 +0000 (22:48 +0000)]
Merge "Enable Checkstyle for "repo upload" for more projects." am: 899398113a
am: 4f5ce75cbd

Change-Id: I85128958ed4e882cb996767f2abbb2146bf0fb3d

7 years agoMerge "Enable Checkstyle for "repo upload" for more projects."
Aurimas Liutikas [Tue, 22 Aug 2017 22:30:37 +0000 (22:30 +0000)]
Merge "Enable Checkstyle for "repo upload" for more projects."
am: 899398113a

Change-Id: Ie9887a55bbdde8bf978e6711b258846f35e2383c

7 years agoMerge "Enable Checkstyle for "repo upload" for more projects."
Treehugger Robot [Tue, 22 Aug 2017 22:19:28 +0000 (22:19 +0000)]
Merge "Enable Checkstyle for "repo upload" for more projects."

7 years agoEnable Checkstyle for "repo upload" for more projects.
Aurimas Liutikas [Fri, 28 Apr 2017 21:30:26 +0000 (14:30 -0700)]
Enable Checkstyle for "repo upload" for more projects.

This CL enables Checkstyle for the following directories:
- core/java/android/
- core/tests/coretests/src/android/

Bug: 34746646
Test: None
Change-Id: Ib8b3f198000be19e9a7a61aa5abd61d827454eba
(cherry picked from commit e5abb866a56582ffc705c261a2cab20c2331e6a3)

7 years agoTrack conference start in system elapsed time.
Tyler Gunn [Fri, 4 Aug 2017 16:27:26 +0000 (09:27 -0700)]
Track conference start in system elapsed time.

This is important so that Telecom can track the duration of the call,
which is tracked using wall clock time.

Test: Manual, unit test
Bug: 64068300
Change-Id: If642d282cd8134060acf6ffe8d81215c394d800c

7 years agoSwitch /data/misc/reboot/last_reboot_reason to persistent property
Mark Salyzyn [Tue, 15 Aug 2017 14:53:47 +0000 (07:53 -0700)]
Switch /data/misc/reboot/last_reboot_reason to persistent property

Switch from /data/misc/reboot/last_reboot_reason to persistent
Android property persist.sys.boot.reason for indicating why the
device is rebooted or shutdown.

persist.sys.boot.reason has a standard as outlined in b/63736262 and
the associated investigation. Made adjustments to the values so that
we did not create a problem even before we started. Compliance is
part of the tests in boot_reason_test.sh.

Test: system/core/bootstat/boot_reason_test.sh
Bug: 64687998
Change-Id: Iba69acf2105f4446411d86cdb8097a1755a20f15