332694 Commits

Author SHA1 Message Date
Robert Quattlebaum
a7e68a6fd4 Revert "lowpan: Introduce new unit tests for data classes"
This reverts commit 93ea3ce9b8bd53f97df2171b3e3fbc70fa1b096d.

Reason for revert: Build failure in build 4190632 on branch `git_wear-master`.
Not all branches based on master include platform/frameworks/opt/net/lowpan.

Change-Id: I70fe6be8d71424e11a537daaa69c3f6cfae8e49d
2017-07-18 11:51:20 -07:00
Robert Quattlebaum
6cfc490ccd lowpan: AIDL refactor to no longer use property design pattern
After doing a considerable amount of thinking on the subject,
I decided that attempting to directly port wpantund's property-based
API over to Binder was a mistake, so this commit contains the required
changes to abandon that approach and go with a more traditional
Binder interface.

Bug: b/63708348
Change-Id: I685cd066fabe8470ef4bb456aea7d3bb515c3969
Test: Compiled and ran unit tests, manually confirmed lowpanctl
      and lowpan-service (with related changes) appeared to be
      working properly.
2017-07-18 00:42:18 -07:00
Robert Quattlebaum
865fdc75c3 LowpanException: Refactor exception handling
Got rid of the exposed exception code and we now rely on subclasses of
LowpanException. Also introduces a new exception: LowpanRuntimeException

LowpanRuntimeException, as a subclass of AndroidRuntimeException,
doesn't need explicitly delared "throws" statements for function
declarations. Most Exceptions are still LowpanExceptions, but some
specific error codes, such as ERROR_NCP_PROBLEM, are now using this
new exception class.

Bug: b/63708181
Change-Id: Idba6233ac4803d33561b5aa951c8fa846c3ab1d8
2017-07-18 00:42:18 -07:00
Robert Quattlebaum
93ea3ce9b8 lowpan: Introduce new unit tests for data classes
This change introduces new unit tests which confirm that
various data classes are being property marshalled
between their Java and C++ implementations.

Bug: b/63707448 b/63708348
Change-Id: I41d590b1e77dc41873c4b9e9bf1b7f1bf859f74e
Test: These tests both compile and pass
2017-07-18 00:42:17 -07:00
Robert Quattlebaum
80aca1e3b3 lowpan: Make various data classes Parcelable
This change updates several of the data classes in
`android.net.lowpan` to be parcelable. This allows them to be used
directly for inter-process communication.

Bug: b/63707448 b/63708348
Change-Id: Ib5e8cad153534948ff4b43a2fda82f3db250839e
Test: Confirmed with unit tests from change id
      I41d590b1e77dc41873c4b9e9bf1b7f1bf859f74e
2017-07-17 19:38:01 -07:00
Robert Quattlebaum
ccd0a151a9 lowpan: Remove libandroid_net_lowpan from platform/frameworks/base
This change removes the Android.mk file that created the target
libandroid_net_lowpan from platform/frameworks/base.

This native library has moved to frameworks/opt/net/lowpan via the
following change id:

    I3dc7b9ca3b33b2ee5f92c8f76c28710997fb931d

Bug: b/63707448 b/63708348
Test: Confirmed with unit tests from change id
      I41d590b1e77dc41873c4b9e9bf1b7f1bf859f74e
Change-Id: Ifbfe75dbfbfc0ac2c02124dcac151a9caf6b342a
2017-07-17 19:35:45 -07:00
Robert Quattlebaum
8600bf1c36 LowpanEnergyScanResult: Remove public designation from setChannel/setMaxRssi
This class is intended to be immutable to the users of this API.

Bug: b/63708272
Test: Compiled and ran lowpanctl (uses this class) with no problems.
Change-Id: I1fc8a51c19b637a27c1987b3b3d0db1cb844f5af
2017-07-14 17:11:30 -07:00
Fyodor Kupolov
f59fc738f0 Merge "Additional metrics for PM init" 2017-07-14 23:54:23 +00:00
Peng Xu
060d6896a5 Merge "Merge "Update Java doc of SensorManager.createDirectChannel" into oc-dev am: 17e641dae5 am: 6c5ee3d894" into oc-dr1-dev-plus-aosp
am: 6acd78fbd4

Change-Id: I1c26db45f1e33e7b03ed0e22b8868cca51e55e27
2017-07-14 23:28:51 +00:00
Peng Xu
09d2265a55 Merge "Update Java doc of SensorManager.createDirectChannel" into oc-dev am: 17e641dae5 am: 7bef937503
am: 5f309c6fd3

Change-Id: I03ff03b1ffe5e275f1551c3946eddc4fd766fd7b
2017-07-14 23:27:14 +00:00
Android Build Merger (Role)
6acd78fbd4 Merge "Merge "Update Java doc of SensorManager.createDirectChannel" into oc-dev am: 17e641dae5 am: 6c5ee3d894" into oc-dr1-dev-plus-aosp 2017-07-14 23:21:19 +00:00
Peng Xu
210276d953 Merge "Update Java doc of SensorManager.createDirectChannel" into oc-dev am: 17e641dae5
am: 6c5ee3d894

Change-Id: If3d4bc3338c4baec3c79512140321b65e7ef949f
2017-07-14 23:19:52 +00:00
Peng Xu
5f309c6fd3 Merge "Update Java doc of SensorManager.createDirectChannel" into oc-dev am: 17e641dae5
am: 7bef937503

Change-Id: I108570f80973c02be45ea450747ffbb8cd0e094d
2017-07-14 23:18:30 +00:00
Peng Xu
6c5ee3d894 Merge "Update Java doc of SensorManager.createDirectChannel" into oc-dev
am: 17e641dae5

Change-Id: I3689c95bb249a77e6736f66e23065474a0916b9f
2017-07-14 23:07:11 +00:00
Peng Xu
7bef937503 Merge "Update Java doc of SensorManager.createDirectChannel" into oc-dev
am: 17e641dae5

Change-Id: I4391dafa9d153213e35ac58bceb8d2f4c958fde0
2017-07-14 23:07:11 +00:00
TreeHugger Robot
17e641dae5 Merge "Update Java doc of SensorManager.createDirectChannel" into oc-dev 2017-07-14 22:55:15 +00:00
Mathieu Chartier
b8e4695fe8 Merge "Add more details to dumpsys meminfo -d" am: 4ccf8b83a1 am: 41718e2413 am: 811fa6d001
am: 151807c109

Change-Id: Iac4e5863dfb7fa69586abd396e5baece8367664e
2017-07-14 22:02:13 +00:00
TreeHugger Robot
570d695b4a Merge "Don't tag bugreport notifications as System." 2017-07-14 22:00:01 +00:00
Mathieu Chartier
151807c109 Merge "Add more details to dumpsys meminfo -d" am: 4ccf8b83a1 am: 41718e2413
am: 811fa6d001

Change-Id: I309ff9dc070716cc250a7c06821775c185ea6ebc
2017-07-14 21:54:07 +00:00
Jason Monk
2e71d2e9be Merge "Take a wrench to the pipes" into oc-dr1-dev am: e1036c93a0
am: bcfe19ebe8

Change-Id: I641b3b59958d360dc622bb55ce4eef1a49752a0e
2017-07-14 21:47:08 +00:00
Mathieu Chartier
811fa6d001 Merge "Add more details to dumpsys meminfo -d" am: 4ccf8b83a1
am: 41718e2413

Change-Id: Ie3052ec70e478b69629e16526542cb616168b58b
2017-07-14 21:47:03 +00:00
Jason Monk
bcfe19ebe8 Merge "Take a wrench to the pipes" into oc-dr1-dev
am: e1036c93a0

Change-Id: I1a4606bc6996df2aa4b67645fbb06f0c2b46cd5c
2017-07-14 21:40:36 +00:00
TreeHugger Robot
48cce45693 Merge "[Companion] Close chooser dialog on device tap" 2017-07-14 21:38:56 +00:00
Mathieu Chartier
41718e2413 Merge "Add more details to dumpsys meminfo -d"
am: 4ccf8b83a1

Change-Id: I54fadc1bd30cc508faccabe1553c2db4cc040904
2017-07-14 21:37:43 +00:00
TreeHugger Robot
e1036c93a0 Merge "Take a wrench to the pipes" into oc-dr1-dev 2017-07-14 21:33:51 +00:00
Evan Laird
4a0e741124 Merge "Fix mobile signal colors to match wifi et al" into oc-dr1-dev am: ed4d5fc925
am: d0ee6987e1

Change-Id: I4e67ee75df6c53cf6a8133dc44cdb97dc9ab1a24
2017-07-14 21:30:36 +00:00
Evan Laird
d0ee6987e1 Merge "Fix mobile signal colors to match wifi et al" into oc-dr1-dev
am: ed4d5fc925

Change-Id: I7f97967d9cb7c6131489ab7202734c24e4076d2a
2017-07-14 21:25:05 +00:00
Treehugger Robot
4ccf8b83a1 Merge "Add more details to dumpsys meminfo -d" 2017-07-14 21:21:39 +00:00
TreeHugger Robot
ed4d5fc925 Merge "Fix mobile signal colors to match wifi et al" into oc-dr1-dev 2017-07-14 21:16:44 +00:00
TreeHugger Robot
e38db1b9be Merge "Fix calculation of RelativeLayout width in RTL mode" 2017-07-14 21:10:57 +00:00
TreeHugger Robot
de44fa1f83 Merge "removeAll unregisters callbacks in the wrong order, causing exception" 2017-07-14 21:07:12 +00:00
Android Build Merger (Role)
7c156c3a0a Merge "Merge "SystemServiceManager: Change from wall time to boottiime" into oc-dr1-dev am: cf70671a75 am: dc458c33d6" 2017-07-14 21:06:45 +00:00
Wei Wang
b545be72fd Merge "SystemServiceManager: Change from wall time to boottiime" into oc-dr1-dev am: cf70671a75
am: dc458c33d6

Change-Id: I0068e1d5d869002d140d66f86117aa89a0b05456
2017-07-14 21:05:43 +00:00
Fyodor Kupolov
747613f1fc Additional metrics for PM init
Test: simulated build fingerprint change and checked logs
Bug: 62462279
Change-Id: I8446fcc9beed461a4554e79ab2b820839ced7c2f
2017-07-14 13:59:34 -07:00
Mathieu Chartier
1b45fcd14e Merge "Add more details to dumpsys meminfo -d" 2017-07-14 20:58:13 +00:00
Wei Wang
dc458c33d6 Merge "SystemServiceManager: Change from wall time to boottiime" into oc-dr1-dev
am: cf70671a75

Change-Id: Ib7e61f66b52525d59fc8fe111124b859ddc52e04
2017-07-14 20:56:13 +00:00
Jian Sun
4f6d34a665 Merge "Improve documentation for custome token." 2017-07-14 20:55:39 +00:00
Wei Wang
cf70671a75 Merge "SystemServiceManager: Change from wall time to boottiime" into oc-dr1-dev 2017-07-14 20:42:23 +00:00
Lucas Dupin
ca0c783167 Merge "Move palette constants to XML" into oc-dr1-dev am: 8d5b831095
am: 486ce65234

Change-Id: Ib2ff59f4ac52799d420ee3353cedb4762f7a02b1
2017-07-14 20:39:22 +00:00
TreeHugger Robot
b266d84df0 Merge "Fix 'cmd notification' crashes when no command is set." 2017-07-14 20:36:13 +00:00
Lucas Dupin
486ce65234 Merge "Move palette constants to XML" into oc-dr1-dev
am: 8d5b831095

Change-Id: I8ced4304e4e6f6f766c7160e25122974ec0c9548
2017-07-14 20:31:33 +00:00
TreeHugger Robot
02c987ea08 Merge "Better preload drawable logging" 2017-07-14 20:31:07 +00:00
Philip Cuadra
f2805c64dc Merge "Use new powerHintAsync when available" into oc-dr1-dev-plus-aosp
am: d33013ade3

Change-Id: Ic9acd23267102bd4f7a6a924ec45c2efeac18aa1
2017-07-14 20:27:09 +00:00
TreeHugger Robot
8d5b831095 Merge "Move palette constants to XML" into oc-dr1-dev 2017-07-14 20:24:37 +00:00
TreeHugger Robot
41db50cd25 Merge "Disable smart sharing for password fields." 2017-07-14 20:21:59 +00:00
TreeHugger Robot
d33013ade3 Merge "Use new powerHintAsync when available" into oc-dr1-dev-plus-aosp 2017-07-14 20:19:02 +00:00
Guliz Tuncay
1a6f4c79f2 removeAll unregisters callbacks in the wrong order, causing exception
If we switch from a user with active SpellCheckerBindGroups to another
user, an exception is thrown and the system reports that the user switch
was not successful. The source of this exception is removeAll() method
used in unbindServiceLocked(). It seems that removeAll() retrieves the
number of callbacks of mListeners object and removes the registered
callbacks of this object one by one in a loop. However, this causes the
size of the mListeners change along the way and each element's index
decreases by one at each iteration, causing the loop to eventually try
to operate on a null object. This error was introduced by
I38942765ed6bec6713757b1d5f325e7a633c2ba7

Fixes: 63703656
Test: Manually tested as follows
   1. Flash a new OS image with this change
   2. Complete the setup wizard (if any)
   3. make ApiDemos -j
   4. adb install -r out/target/product/marlin/data/app/ApiDemos/ApiDemos.apk
   5. Open "Api Demos" app
   6. Go to Views/Text/EditText
   7. Focus in to the first EditText then type "aaa"
   8. Focus in to the second EditText then type "aaa"
   9. Run `adb shell dumpsys textservices` to confirm that there are multiple
      listener in one of the items in "Spell Checker Bind Groups" section.
  10. Switch to the Guest user.
  11. Run `adb logcat -s SystemServiceManager:E` to confirm that there is no
      NullPointerException
Change-Id: Ibfdb07266a5a9127425b7ecffa9afbb8718eca62
2017-07-14 20:17:22 +00:00
Jeff Davidson
59eeffcb09 Merge "Temporarily disable eUICC factory reset handling." into oc-dr1-dev am: c0ce489df7
am: 7183acc20e

Change-Id: I63232bdcde7bf4050140c20e41afc9e91bfb3b5f
2017-07-14 20:13:31 +00:00
Evan Laird
6901093537 Merge "Round mobile icon slash and fix color" into oc-dr1-dev am: 2809c2fb0b
am: 14c291e322

Change-Id: I02535631dad6d114987f23e5c8eb51cf211682d6
2017-07-14 20:07:30 +00:00
Jeff Davidson
7183acc20e Merge "Temporarily disable eUICC factory reset handling." into oc-dr1-dev
am: c0ce489df7

Change-Id: Iea42444468b78c604f32ffd4a47eb8a1c762d2ab
2017-07-14 20:07:26 +00:00