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
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.
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
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
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
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
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
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