OSDN Git Service

android-x86/frameworks-base.git
7 years agoMerge "Simplify NfcCommand and avoid NullPointerExceptions"
Myles Watson [Sat, 17 Jun 2017 01:34:00 +0000 (01:34 +0000)]
Merge "Simplify NfcCommand and avoid NullPointerExceptions"
am: b5c4e80ecd

Change-Id: I2dcff4d7d0b0bdc5b344f08ce5d563da0a272ddf

7 years agoMerge "Simplify NfcCommand and avoid NullPointerExceptions"
Treehugger Robot [Sat, 17 Jun 2017 01:25:12 +0000 (01:25 +0000)]
Merge "Simplify NfcCommand and avoid NullPointerExceptions"

7 years agoMerge "Add a svc command for enabling/disabling Bluetooth"
Myles Watson [Fri, 16 Jun 2017 23:40:26 +0000 (23:40 +0000)]
Merge "Add a svc command for enabling/disabling Bluetooth"
am: 7d136b777a

Change-Id: I62158ee728e6c431c21e5de30ecd9b7b33bbc73a

7 years agoMerge "Add a svc command for enabling/disabling Bluetooth"
Treehugger Robot [Fri, 16 Jun 2017 23:28:23 +0000 (23:28 +0000)]
Merge "Add a svc command for enabling/disabling Bluetooth"

7 years agoAdd a svc command for enabling/disabling Bluetooth
Myles Watson [Tue, 13 Jun 2017 18:42:36 +0000 (11:42 -0700)]
Add a svc command for enabling/disabling Bluetooth

Bug: 62067926
Test: svc bluetooth disable
      svc bluetooth enable
Change-Id: I9a53d7ab1805df98d8cf1292cf1061eacc14655d

7 years agoMerge "Track movement of some libcore/tzdata files"
Neil Fuller [Fri, 16 Jun 2017 14:51:10 +0000 (14:51 +0000)]
Merge "Track movement of some libcore/tzdata files"
am: 2ed8b06173

Change-Id: Icfe3e6bb1e0d19be462fb47c23cba1cf77c6bf20

7 years agoMerge "Track movement of some libcore/tzdata files"
Neil Fuller [Fri, 16 Jun 2017 14:37:15 +0000 (14:37 +0000)]
Merge "Track movement of some libcore/tzdata files"

7 years agoMerge "Fixes for tetheroffload crashes"
Erik Kline [Fri, 16 Jun 2017 14:03:10 +0000 (14:03 +0000)]
Merge "Fixes for tetheroffload crashes"
am: 5ac7a03f9f

Change-Id: I08406513912c9fbd383625f10837085abb5c0516

7 years agoMerge "Fixes for tetheroffload crashes"
Treehugger Robot [Fri, 16 Jun 2017 13:49:56 +0000 (13:49 +0000)]
Merge "Fixes for tetheroffload crashes"

7 years agoFixes for tetheroffload crashes
Erik Kline [Thu, 15 Jun 2017 09:06:34 +0000 (18:06 +0900)]
Fixes for tetheroffload crashes

Now that we can talk to the HALs (with some out of tree CLs and
"setenforce 0"), several crashes were encountered.

Fixes here include:
    - avoid hidl_handle move semantics
    - check HIDL method status return value (isOk())
    - convert Java short port numbers to ints
    - don't pass nulls to HIDL where Strings are required
      (limitations in parceling)

Test: as follows
    - built
    - flashed
    - booted
    - runtest frameworks-net passes
    - "setenforce 0" and start tethering
Bug: 29337859
Bug: 32163131

Merged-In: I5fa930be0c9eda491cf17bd4de9b55ab33672d25
Merged-In: Id1037d22826f4d426bccfa17dce0962c54518d64
Change-Id: I91314440c3a04e5f2502579b5f06dac9f25cf0cd
(cherry picked from commit 1185459c4169891bd7550655218e738c8bf1abe2)

7 years agoTrack movement of some libcore/tzdata files
Neil Fuller [Tue, 13 Jun 2017 14:12:17 +0000 (15:12 +0100)]
Track movement of some libcore/tzdata files

Some files in libcore/tzdata are moving to system/timezone
under the package com.android.timezone.distro.

To run tests:
make -j30 FrameworksServicesTests
adb install -r -g "out/target/product/angler/data/app/FrameworksServicesTests/FrameworksServicesTests.apk"
adb shell am instrument -e package com.android.server.timezone -w com.android.frameworks.servicestests \
        "com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner"

Test: See above.
Bug: 31008728
Merged-In: I2600dd4bee22a571b9eb7303733591b60d1a8b2a
Change-Id: I2600dd4bee22a571b9eb7303733591b60d1a8b2a

7 years agoMerge "When updating a split app, copy compiled files from base.apk only."
Jeff Hao [Thu, 15 Jun 2017 23:43:32 +0000 (23:43 +0000)]
Merge "When updating a split app, copy compiled files from base.apk only."
am: 8a945baf4a

Change-Id: I7c2733ac9dfe60ed8a629d5d312b760c53baa76e

7 years agoMerge "When updating a split app, copy compiled files from base.apk only."
Treehugger Robot [Thu, 15 Jun 2017 23:32:57 +0000 (23:32 +0000)]
Merge "When updating a split app, copy compiled files from base.apk only."

7 years agoSimplify NfcCommand and avoid NullPointerExceptions
Myles Watson [Tue, 13 Jun 2017 23:07:32 +0000 (16:07 -0700)]
Simplify NfcCommand and avoid NullPointerExceptions

Test: adb root
      adb shell
      stop
      svc nfc enable
      start
      svc nfc disable

Change-Id: Ie5170f0525f8830d1d80b5607191ce95e78a55ae

7 years agoMerge "Merge "Use java.util.Objects.hashCode to get hashcode." am: 3890689bb2" into...
Android Build Merger (Role) [Thu, 15 Jun 2017 17:07:11 +0000 (17:07 +0000)]
Merge "Merge "Use java.util.Objects.hashCode to get hashcode." am: 3890689bb2" into stage-aosp-master

7 years agoMerge "Use java.util.Objects.hashCode to get hashcode."
Ying Xu [Thu, 15 Jun 2017 17:06:03 +0000 (17:06 +0000)]
Merge "Use java.util.Objects.hashCode to get hashcode."
am: 3890689bb2

Change-Id: I6b295dfe38e8c75ab6dd3add2521d63b62f4c8f1

7 years agoMerge "Use java.util.Objects.hashCode to get hashcode."
Ying Xu [Thu, 15 Jun 2017 16:59:59 +0000 (16:59 +0000)]
Merge "Use java.util.Objects.hashCode to get hashcode."
am: 3890689bb2

Change-Id: I07e33a09f7ed2af457d2ad6261b5469b9dfd15c2

7 years agoMerge "Use java.util.Objects.hashCode to get hashcode."
Ying Xu [Thu, 15 Jun 2017 16:50:09 +0000 (16:50 +0000)]
Merge "Use java.util.Objects.hashCode to get hashcode."

7 years agoMerge "NfcTile: make sure NFC adapter is always available when needed"
Jason Monk [Thu, 15 Jun 2017 15:32:26 +0000 (15:32 +0000)]
Merge "NfcTile: make sure NFC adapter is always available when needed"
am: 13ade8f910

Change-Id: I731c4d0f3460d1b2a24232a87afcd5c327ecb4b0

7 years agoMerge "NfcTile: make sure NFC adapter is always available when needed"
Jason Monk [Thu, 15 Jun 2017 15:21:36 +0000 (15:21 +0000)]
Merge "NfcTile: make sure NFC adapter is always available when needed"

7 years agoNfcTile: make sure NFC adapter is always available when needed
Anas Karbila [Thu, 15 Jun 2017 13:36:53 +0000 (22:36 +0900)]
NfcTile: make sure NFC adapter is always available when needed

Test: enable NFC->reboot->directly open QS panel, NFC tile will show disabled state. This commit fixes it.

Change-Id: Iabbe4ec11a38614b9c65627d58c6ee9ec93435f3

7 years agoUse java.util.Objects.hashCode to get hashcode.
yinxu [Wed, 14 Jun 2017 17:31:40 +0000 (10:31 -0700)]
Use java.util.Objects.hashCode to get hashcode.

Test: Telephony sanity tests
Change-Id: I8b845f2e5e44b242278b8955807d1b40e67e1414

7 years agoMerge "Merge IPv6TetheringInterfaceServices into TetherInterfaceStateMachine"
Erik Kline [Wed, 14 Jun 2017 10:19:35 +0000 (10:19 +0000)]
Merge "Merge IPv6TetheringInterfaceServices into TetherInterfaceStateMachine"
am: 6f029bbc82

Change-Id: I098bd78d29cf4119208d24977dab8494d3bf5fdb

7 years agoMerge "Merge IPv6TetheringInterfaceServices into TetherInterfaceStateMachine"
Treehugger Robot [Wed, 14 Jun 2017 10:11:58 +0000 (10:11 +0000)]
Merge "Merge IPv6TetheringInterfaceServices into TetherInterfaceStateMachine"

7 years agoMerge "Adds error codes and maximum RAN/Bands/Channels"
Ying Xu [Wed, 14 Jun 2017 02:25:53 +0000 (02:25 +0000)]
Merge "Adds error codes and maximum RAN/Bands/Channels"
am: 70373f7928

Change-Id: I1c169772fb1335df4128b186e826f1bed1ca501d

7 years agoMerge "Adds error codes and maximum RAN/Bands/Channels"
Ying Xu [Wed, 14 Jun 2017 02:16:51 +0000 (02:16 +0000)]
Merge "Adds error codes and maximum RAN/Bands/Channels"

7 years agoMerge "Do not CloseGuard KernelID or FieldID"
Yang Ni [Tue, 13 Jun 2017 22:08:06 +0000 (22:08 +0000)]
Merge "Do not CloseGuard KernelID or FieldID"
am: 6b70eafae1

Change-Id: I89390175e3404489991e599a74034e559a527435

7 years agoMerge "Do not CloseGuard KernelID or FieldID"
Treehugger Robot [Tue, 13 Jun 2017 21:49:46 +0000 (21:49 +0000)]
Merge "Do not CloseGuard KernelID or FieldID"

7 years agoMerge "Add updateMethod callback"
Robert Greenwalt [Tue, 13 Jun 2017 20:51:39 +0000 (20:51 +0000)]
Merge "Add updateMethod callback"
am: a0974dbc0f

Change-Id: I9dc2564d0856db617c0deb6bff35ca3cf6b6010c

7 years agoMerge "remove the lock-use for prunePrintService in case blocking main thread"
yangbingqian [Tue, 13 Jun 2017 20:41:03 +0000 (20:41 +0000)]
Merge "remove the lock-use for prunePrintService in case blocking main thread"
am: b124bea782

Change-Id: Ie93b79dfff5787cb9835c4ba86e3aa586e0d2ad8

7 years agoMerge "Add updateMethod callback"
Robert Greenwalt [Tue, 13 Jun 2017 20:38:49 +0000 (20:38 +0000)]
Merge "Add updateMethod callback"

7 years agoMerge "remove the lock-use for prunePrintService in case blocking main thread"
Treehugger Robot [Tue, 13 Jun 2017 20:30:37 +0000 (20:30 +0000)]
Merge "remove the lock-use for prunePrintService in case blocking main thread"

7 years agoMerge "Radio Interface changes to pass the encryption object, including the key,to...
Pankaj Kanwar [Tue, 13 Jun 2017 20:30:36 +0000 (20:30 +0000)]
Merge "Radio Interface changes to pass the encryption object, including the key,to the modem."
am: aadb414f02

Change-Id: I2f2189aa6483dfe17fe6ed7f42e8b23166c67444

7 years agoAdds error codes and maximum RAN/Bands/Channels
yinxu [Wed, 31 May 2017 01:04:19 +0000 (18:04 -0700)]
Adds error codes and maximum RAN/Bands/Channels

Added error codes which are mapped from the RadioError which is returned
from RIL, also added some errors which will be generated at telephony.
Those errors will be returned to the user with the onError() callback.

Added the maximun number of RAN/Bands/Channels in 1 scan request.

Test: Telephony sanity tests
Bug: 30954762
Change-Id: Ie7865ed2101d9564e26870a8ebbb0ceb7bd9bd1b

7 years agoMerge "Radio Interface changes to pass the encryption object, including the key,to...
Pankaj Kanwar [Tue, 13 Jun 2017 20:22:22 +0000 (20:22 +0000)]
Merge "Radio Interface changes to pass the encryption object, including the key,to the modem."

7 years agoDo not CloseGuard KernelID or FieldID
Yang Ni [Fri, 28 Apr 2017 15:45:40 +0000 (08:45 -0700)]
Do not CloseGuard KernelID or FieldID

Bug: 28053584

Stop CloseGuarding for two reasons:

1) KernelID and FieldID objects are constructed in auto-generated
(RenderScript reflected) Java code. It would be impossible for a user to
explicitly call destroy() on them. Guarding them would leave a lot of
noisy warnings in logcat.

2) These KernelID and FieldID objects are not big compared to other
RenderScript objects, e.g. Allocations. They occupy almost no native
resources except for a native pointer. Leaving their destruction to Java
GC would be completely acceptable, since any delay in reclaiming them is
unlikely to cause memory pressure.

Test: CTS on x86_64 emulator
Change-Id: I587b5561a0b2bdbf0b2e95bf2995c20d5f5faf9d

7 years agoMerge "Binder: Add more logging on Error"
Andreas Gampe [Tue, 13 Jun 2017 18:45:27 +0000 (18:45 +0000)]
Merge "Binder: Add more logging on Error"
am: d9f3a3cf37

Change-Id: I58eb483fff9fa9c4f2519fbd842172f48f1052e9

7 years agoMerge "Binder: Add more logging on Error"
Andreas Gampe [Tue, 13 Jun 2017 18:34:45 +0000 (18:34 +0000)]
Merge "Binder: Add more logging on Error"

7 years agoWhen updating a split app, copy compiled files from base.apk only.
Jeff Hao [Tue, 13 Jun 2017 18:09:10 +0000 (11:09 -0700)]
When updating a split app, copy compiled files from base.apk only.

This fixes issues with some splits failing to be recompiled if they
haven't changed, but the dex files they depend on have.

The real fix will be for frameworks to generate the new expected
classpath and check in DexFile.getDexOptNeeded. Then we can undo
this change and copy over all the compiled split files again.

Bug: 62269291
Test: cts-tradefed run singleCommand cts -d --module
CtsAppSecurityHostTestCases -t android.appsecurity.cts.SplitTests

Change-Id: Id8e6dc59b16d4f10a6c2d9d81027012204e0f26b

7 years agoMerge changes I73ae8de1,I58260902
Narayan Kamath [Tue, 13 Jun 2017 15:38:42 +0000 (15:38 +0000)]
Merge changes I73ae8de1,I58260902
am: 6f11744adc

Change-Id: I9b47ae1d3953280a627584902b3bc099e1f907c8

7 years agoRadio Interface changes to pass the encryption object, including the
pkanwar [Mon, 22 May 2017 22:23:38 +0000 (15:23 -0700)]
Radio Interface changes to pass the encryption object, including the
key,to the modem.

We will now pass the ImsiEncryptionInfo object which includes mnc/mcc.
BUG: 35606429
Test: manual
Change-Id: Idf835d9b99a26cb0c0d73fb70ffa9875843ac62b

7 years agoMerge changes I73ae8de1,I58260902
Treehugger Robot [Tue, 13 Jun 2017 15:27:09 +0000 (15:27 +0000)]
Merge changes I73ae8de1,I58260902

* changes:
  Binder: Log details of pending exception.
  Binder: Be forceful about a forceful exit.

7 years agoMerge IPv6TetheringInterfaceServices into TetherInterfaceStateMachine
Erik Kline [Tue, 13 Jun 2017 12:32:10 +0000 (21:32 +0900)]
Merge IPv6TetheringInterfaceServices into TetherInterfaceStateMachine

Ideally this would have been done immediately after IPv6 tethering code
was made part of an official named release. Getting this in now should
help with the relaying of LinkProperties that is required for offload.

Test: as follows
    - built
    - flashed
    - booted
    - runtest frameworks-net passes
    - runtest frameworks-wifi passes
Bug: 29337859
Bug: 32163131

Change-Id: I015fa3cb05a15624f9e80b7aa5a871cefef431b7

7 years agoMerge "make UpsreamNetworkMonitor the sole source of upstream network information"
Erik Kline [Tue, 13 Jun 2017 08:29:06 +0000 (08:29 +0000)]
Merge "make UpsreamNetworkMonitor the sole source of upstream network information"
am: 30a1cf96bb

Change-Id: I0f7234363f94694ecc4e97d87c7ffb6bb244895d

7 years agoMerge "make UpsreamNetworkMonitor the sole source of upstream network information"
Erik Kline [Tue, 13 Jun 2017 08:20:40 +0000 (08:20 +0000)]
Merge "make UpsreamNetworkMonitor the sole source of upstream network information"

7 years agoMerge "Only disable Wi-Fi IP serving on specific interface, if available"
Erik Kline [Tue, 13 Jun 2017 03:25:12 +0000 (03:25 +0000)]
Merge "Only disable Wi-Fi IP serving on specific interface, if available"
am: 6428e1a4d4

Change-Id: I51f2e1864f5aaf1369e980f44537ab4f4a0e703e

7 years agoMerge "Only disable Wi-Fi IP serving on specific interface, if available"
Treehugger Robot [Tue, 13 Jun 2017 03:13:18 +0000 (03:13 +0000)]
Merge "Only disable Wi-Fi IP serving on specific interface, if available"

7 years agomake UpsreamNetworkMonitor the sole source of upstream network information
Erik Kline [Fri, 9 Jun 2017 08:08:52 +0000 (17:08 +0900)]
make UpsreamNetworkMonitor the sole source of upstream network information

Test: as follows
    - built
    - flashed
    - booted
    - runtest frameworks-net passes
Bug: 32163131
Change-Id: I66ce682cf9c31887264a095a4e4638d281d8ed39

7 years agoOnly disable Wi-Fi IP serving on specific interface, if available
Erik Kline [Fri, 9 Jun 2017 07:36:29 +0000 (16:36 +0900)]
Only disable Wi-Fi IP serving on specific interface, if available

Test: as follows
    - built
    - flashed
    - booted
    - runtest frameworks-net passes
Bug: 32163131

Change-Id: Ifd9131bad20810ee24c9436d8c0df7a81fae11d5

7 years agoBinder: Add more logging on Error
Andreas Gampe [Mon, 12 Jun 2017 17:43:05 +0000 (10:43 -0700)]
Binder: Add more logging on Error

Try to add the Error's message to the abort, so that it shows up
when the logcat is missing.

Sample message:

'jni_internal.cc:508] JNI FatalError called: java.lang.Error thrown during binder transaction: java.lang.LinkageError: This is a test.'

Bug: 62514767
Test: m
Change-Id: I12026bb7a8ec9438db493f135ed5d0177187f702

7 years agoMerge "Address IMSI privacy issues."
Pankaj Kanwar [Tue, 13 Jun 2017 00:37:13 +0000 (00:37 +0000)]
Merge "Address IMSI privacy issues."
am: ef6b81e5b2

Change-Id: I41c06fc9bf9012f93e10b59c49d5a7314331ea5f

7 years agoMerge "Address IMSI privacy issues."
Pankaj Kanwar [Tue, 13 Jun 2017 00:28:42 +0000 (00:28 +0000)]
Merge "Address IMSI privacy issues."

7 years agoAddress IMSI privacy issues.
pkanwar [Tue, 21 Feb 2017 03:23:55 +0000 (19:23 -0800)]
Address IMSI privacy issues.

Added getCarrierInfoForImsiEncryption and
setCarrierInfoForImsiEncryption methods.

CP from Master

Bug: 35606429
Test: runtest --path ..ImsiEncryptionInfoTest.java
Change-Id: I62bdc8ac5e57b749fc5675c28579ec2d9183643d

7 years agoBinder: Log details of pending exception.
Narayan Kamath [Tue, 18 Apr 2017 16:48:39 +0000 (17:48 +0100)]
Binder: Log details of pending exception.

This was accidentally removed by change d64abfcf93b59500a0d.

Test: manual; verify exception trace is printed in logs.
Bug: 36813403
Bug: 37435516
Change-Id: I73ae8de167c457d56fddb85943a8f08f8913f0f7
(cherry picked from commit ccc9fad9e6abfa3cf082567669cc5d03ec7a3086)

7 years agoBinder: Be forceful about a forceful exit.
Narayan Kamath [Wed, 12 Apr 2017 10:50:10 +0000 (11:50 +0100)]
Binder: Be forceful about a forceful exit.

We were previously using exit(1) when code servicing an IPC threw
any subclass of Error. That made it much harder to diagnose cases
where that happened because :

- exit runs global destructors, which might prove problematic (see
  linked bug).
- such exits are often due to bugs in application code (things like
  AssertionErrors being thrown) but aren't flagged as such by our
  infrastructure, or by humans for that matter.

To address both issues, use FatalError() so that the runtime can dump
more useful information to the logs before it aborts.

Test: manual
Bug: 36813403
Change-Id: I5826090229109dc7cb19f0c3571c609f990cd36a
(cherry picked from commit d64abfcf93b59500a0dba1626e73861848eb4407)

7 years agoMerge "Protect broadcast used in settings for bond cancel"
Marie Janssen [Mon, 12 Jun 2017 22:47:00 +0000 (22:47 +0000)]
Merge "Protect broadcast used in settings for bond cancel"
am: 5cfbbce162

Change-Id: Ieb433bca4189ba3d309b417ed6822e836c9468ed

7 years agoMerge "Protect broadcast used in settings for bond cancel"
Marie Janssen [Mon, 12 Jun 2017 22:36:05 +0000 (22:36 +0000)]
Merge "Protect broadcast used in settings for bond cancel"

7 years agoProtect broadcast used in settings for bond cancel
Marie Janssen [Fri, 9 Jun 2017 23:38:19 +0000 (16:38 -0700)]
Protect broadcast used in settings for bond cancel

Test: cancel pairing from notification tray
Bug: 62094630
Change-Id: Ia83a874c1ea9a1d9d5502609f81e94052bb5759c

7 years agoremove the lock-use for prunePrintService in case blocking main thread
yangbingqian [Mon, 12 Jun 2017 14:45:50 +0000 (22:45 +0800)]
remove the lock-use for prunePrintService in case blocking main thread

As in the change: I4f4cdaba65132dc2ef054877cbb097b499a723f6
the lock object is removed when calling RemotePrintSpooler
and so as it in the method prunePrintService(). But in the
constructor of UserState, the mLock is still held when calling
prunePrintService(), it may also block the main thread

It is better to take it out of the synchronized block

Test: null

Change-Id: I709b491d611dbcbf21a5fd493b879ed290dd0247
Signed-off-by: yangbingqian <yangbingqian@xiaomi.com>
7 years agoMerge "Changed Locale in ServiceInfo to a list."
Robert Greenwalt [Sat, 10 Jun 2017 00:10:33 +0000 (00:10 +0000)]
Merge "Changed Locale in ServiceInfo to a list."
am: a1df5b25e6

Change-Id: I7477fa88ae9cc83605d2172294bf2ecbcafc567e

7 years agoMerge "Changed Locale in ServiceInfo to a list."
Robert Greenwalt [Sat, 10 Jun 2017 00:03:56 +0000 (00:03 +0000)]
Merge "Changed Locale in ServiceInfo to a list."

7 years agoMerge "Update documentation for streaming methods"
Hall Liu [Fri, 9 Jun 2017 21:58:50 +0000 (21:58 +0000)]
Merge "Update documentation for streaming methods"
am: 186a588d57

Change-Id: I44825b99a968b110bb23373d59aa0bb5ecaf7eac

7 years agoMerge "Update documentation for streaming methods"
Hall Liu [Fri, 9 Jun 2017 21:44:27 +0000 (21:44 +0000)]
Merge "Update documentation for streaming methods"

7 years agoMerge "Add IApnSourceService.aidl"
Jordan Liu [Fri, 9 Jun 2017 17:33:56 +0000 (17:33 +0000)]
Merge "Add IApnSourceService.aidl"
am: 1d5d409f6f

Change-Id: Id76c6c83d18482594730f7e584231f7f4714b46d

7 years agoMerge "Add IApnSourceService.aidl"
Jordan Liu [Fri, 9 Jun 2017 17:25:08 +0000 (17:25 +0000)]
Merge "Add IApnSourceService.aidl"

7 years agoMerge "Revert "Instrument captive portal login activity""
Hugo Benichi [Fri, 9 Jun 2017 11:40:01 +0000 (11:40 +0000)]
Merge "Revert "Instrument captive portal login activity""
am: 2921320517

Change-Id: Iacae406a0998bb91c84b73a66ff383dfa8038665

7 years agoMerge "Revert "Instrument captive portal login activity""
Hugo Benichi [Fri, 9 Jun 2017 11:31:21 +0000 (11:31 +0000)]
Merge "Revert "Instrument captive portal login activity""

7 years agoRevert "Instrument captive portal login activity"
Hugo Benichi [Fri, 9 Jun 2017 11:30:05 +0000 (11:30 +0000)]
Revert "Instrument captive portal login activity"

This reverts commit f867da14eaa194cb53b0726b50e570268e70f1d7.

Change-Id: Ic900c91ed87c2d65c151f8386954bd7b74128348

7 years agoMerge "Convert IControlsTethering from interface into callback"
Erik Kline [Fri, 9 Jun 2017 09:16:01 +0000 (09:16 +0000)]
Merge "Convert IControlsTethering from interface into callback"
am: 5b9d362b60

Change-Id: I911548e994761778cf5434b2513d433eeaccd4f3

7 years agoMerge "Convert IControlsTethering from interface into callback"
Erik Kline [Fri, 9 Jun 2017 09:06:39 +0000 (09:06 +0000)]
Merge "Convert IControlsTethering from interface into callback"

7 years agoMerge "Instrument captive portal login activity"
Hugo Benichi [Fri, 9 Jun 2017 06:50:52 +0000 (06:50 +0000)]
Merge "Instrument captive portal login activity"
am: b213053def

Change-Id: Ic8205b609f8c6e0bc04eac17c3bcbe7df0508207

7 years agoMerge "New Metrics constants for captive portal related UI"
Hugo Benichi [Fri, 9 Jun 2017 06:47:47 +0000 (06:47 +0000)]
Merge "New Metrics constants for captive portal related UI"
am: aac9aff5dc

Change-Id: Ib55742148a08ae21f01539939e41699cdb581ca2

7 years agoMerge "Instrument captive portal login activity"
Hugo Benichi [Fri, 9 Jun 2017 06:39:19 +0000 (06:39 +0000)]
Merge "Instrument captive portal login activity"

7 years agoMerge "New Metrics constants for captive portal related UI"
Hugo Benichi [Fri, 9 Jun 2017 06:38:09 +0000 (06:38 +0000)]
Merge "New Metrics constants for captive portal related UI"

7 years agoInstrument captive portal login activity
Hugo Benichi [Mon, 5 Jun 2017 05:52:24 +0000 (14:52 +0900)]
Instrument captive portal login activity

Also add CAPTIVE_PORTAL_LOGIN_ACTIVITY_SSL_ERROR constants to
metrics_constants.proto for counting ssl error pages shown by the
captive portal login activity.

Bug: 36203355
Bug: 34901696
Bug: 36532213
Test: manually tested with captive portal testing setup while watching
      event logs: adb logcat -b events | grep captiveportallogin
        06-08 16:25:20.279 21558 21558 I sysui_action: [1004,com.android.captiveportallogin]
        06-08 17:01:04.052 21558 21558 I sysui_action: [1007,com.android.captiveportallogin]

Merged-In: Ia05853506d424ad4cb2c11770ae7718fbef3f01c

(cherry picked from commit c61dc92fc0619d101c4b789f6305012701cc47a0)

Change-Id: I9184f6263a003c2be28f41a550c6164c8d6ee907

7 years agoAdd IApnSourceService.aidl
Jordan Liu [Tue, 23 May 2017 20:07:07 +0000 (13:07 -0700)]
Add IApnSourceService.aidl

This service is bound to by TelephonyProvider on devices where we don't
use the apns-conf.xml file.

Bug: 37283190
Test: manual
Change-Id: I16da1c5acc5ba1fe0237cc0d37c73d831c2d1508
Merged-In: I16da1c5acc5ba1fe0237cc0d37c73d831c2d1508

7 years agoMerge "Add system property for hot startup method threshold"
Mathieu Chartier [Thu, 8 Jun 2017 21:54:22 +0000 (21:54 +0000)]
Merge "Add system property for hot startup method threshold"
am: a370159592

Change-Id: I271cf74364b7b9c2d16282ef6a9ab24b6d243e1e

7 years agoMerge "Add system property for hot startup method threshold"
Mathieu Chartier [Thu, 8 Jun 2017 21:44:06 +0000 (21:44 +0000)]
Merge "Add system property for hot startup method threshold"

7 years agoMerge "Bluetooth: fix connectGatt overload invocations"
Jakub Pawlowski [Thu, 8 Jun 2017 21:12:26 +0000 (21:12 +0000)]
Merge "Bluetooth: fix connectGatt overload invocations"
am: 404e9f209f

Change-Id: I01699795f733fbf46af10ba25afd8cb3feecc9ea

7 years agoMerge "Bluetooth: fix connectGatt overload invocations"
Jakub Pawlowski [Thu, 8 Jun 2017 20:59:33 +0000 (20:59 +0000)]
Merge "Bluetooth: fix connectGatt overload invocations"

7 years agoBluetooth: fix connectGatt overload invocations
Jakub Pawlowski [Wed, 7 Jun 2017 20:45:33 +0000 (13:45 -0700)]
Bluetooth: fix connectGatt overload invocations

Test: sl4a GattOverBrEdrTest
Bug: 62387078
Change-Id: I5bfb87683e25f8862587e8000eb4c9bb6ff14f99

7 years agoMerge "Allow disabling GL preload even if gfxdriver isn't updatable"
Jesse Hall [Thu, 8 Jun 2017 15:41:46 +0000 (15:41 +0000)]
Merge "Allow disabling GL preload even if gfxdriver isn't updatable"
am: 9cf8c281d2

Change-Id: I025787589009c11bd5477777105b2a5ab2c5f592

7 years agoMerge "Allow disabling GL preload even if gfxdriver isn't updatable"
Jesse Hall [Thu, 8 Jun 2017 15:34:42 +0000 (15:34 +0000)]
Merge "Allow disabling GL preload even if gfxdriver isn't updatable"

7 years agoConvert IControlsTethering from interface into callback
Erik Kline [Tue, 6 Jun 2017 10:24:21 +0000 (19:24 +0900)]
Convert IControlsTethering from interface into callback

Additionally:
    - add updateLinkProperties() method to new callback
    - skeletally connect LinkProperties updates through
      to OffloadController

TODOs liberally sprinkled through out.

Test: as follows
    - built
    - flashed
    - booted
    - runtest frameworks-net passes
Bug: 29337859
Bug: 32163131
Change-Id: I631d17b26be153534551a1615931fc98b598b953

7 years agoMerge "Move findPreferredUpstreamType into UNM"
Erik Kline [Thu, 8 Jun 2017 12:11:59 +0000 (12:11 +0000)]
Merge "Move findPreferredUpstreamType into UNM"
am: 32703994fe

Change-Id: I20e90906e72bc8bba9f0f535d54ba430f96191ff

7 years agoMerge "Move findPreferredUpstreamType into UNM"
Treehugger Robot [Thu, 8 Jun 2017 12:02:59 +0000 (12:02 +0000)]
Merge "Move findPreferredUpstreamType into UNM"

7 years agoMove findPreferredUpstreamType into UNM
Erik Kline [Mon, 5 Jun 2017 07:02:02 +0000 (16:02 +0900)]
Move findPreferredUpstreamType into UNM

This changes the way in which available networks are found. Previously
Tethering asked ConnectivityService for NetworkInfo and checked for
whether or not it was in state CONNECTED.

Here we use the fact that ConnectivityService will not call UNM's
callbacks' onAvailable() methods until the networks in question have
become connected.

Test: as follows
    - built
    - flashed
    - booted
    - runtest framework-net passed
Bug: 32163131

Change-Id: I97abe225fdd3accb38bd9168f545445b761a90d8

7 years agoMerge "Framework: Remove SamplingProfiler"
Andreas Gampe [Thu, 8 Jun 2017 03:16:54 +0000 (03:16 +0000)]
Merge "Framework: Remove SamplingProfiler"
am: d2ecee2506

Change-Id: Iccba75c67041593131bec64e518a1bd968cb1bb0

7 years agoMerge "Framework: Remove SamplingProfiler"
Treehugger Robot [Thu, 8 Jun 2017 03:05:57 +0000 (03:05 +0000)]
Merge "Framework: Remove SamplingProfiler"

7 years agoAdd system property for hot startup method threshold
Mathieu Chartier [Thu, 8 Jun 2017 00:34:22 +0000 (17:34 -0700)]
Add system property for hot startup method threshold

The property is dalvik.vm.hot-startup-method-samples, setting this
controls how many startup samples are required before methods are
marked as hot in the profile.

Test: adb shell setprop dalvik.vm.hot-startup-method-samples 12
Test: adb shell setprop dalvik.vm.extra-opts -verbose:profiler
Test: adb logcat | grep Profile

Bug: 36457259

(cherry picked from commit 5eee004b926dc0fc02640de09c9d9a7f8fe1f052)

Change-Id: Ibf8075aafc6e5bd2ba10385973b26faee3d807df

7 years agoMerge "Embms download setup"
Hall Liu [Thu, 8 Jun 2017 01:26:28 +0000 (01:26 +0000)]
Merge "Embms download setup"
am: da5b77fa9b

Change-Id: I18b378fd0c999e40e3dc8cf9d1248414489880c6

7 years agoMerge "Embms download setup"
Hall Liu [Thu, 8 Jun 2017 01:20:48 +0000 (01:20 +0000)]
Merge "Embms download setup"

7 years agoEmbms download setup
Hall Liu [Fri, 19 May 2017 22:28:09 +0000 (15:28 -0700)]
Embms download setup

Add MbmsDownloadReceiver and MbmsTempFileProvider to facilitate MBMS
download.
Fill in the download method in MbmsDownloadManager

Test: testapps
Change-Id: Ibb30f3b2b9d14b9df6b53c06916c21e3ca3a42c6

7 years agoFramework: Remove SamplingProfiler
Andreas Gampe [Fri, 2 Jun 2017 00:17:23 +0000 (17:17 -0700)]
Framework: Remove SamplingProfiler

Remove the very old and unsupported SamplingProfilerIntegration. This
CL removes the code parts.

Bug: 37272346
Test: m
Test: Device boots
Merged-In: I64d77244b5816ef1f605d19530b96be38f5c1bc6
Change-Id: I64d77244b5816ef1f605d19530b96be38f5c1bc6

7 years agoMerge "Add additional mocking for Context innards"
Erik Kline [Wed, 7 Jun 2017 09:40:37 +0000 (09:40 +0000)]
Merge "Add additional mocking for Context innards"
am: a65aa77c1c

Change-Id: I7f780c05c46b00457b194bfb13df5814735f0809

7 years agoMerge "Add additional mocking for Context innards"
Treehugger Robot [Wed, 7 Jun 2017 09:32:02 +0000 (09:32 +0000)]
Merge "Add additional mocking for Context innards"

7 years agoAdd additional mocking for Context innards
Erik Kline [Wed, 7 Jun 2017 07:33:19 +0000 (16:33 +0900)]
Add additional mocking for Context innards

Test: as follows
    - built
    - flashed
    - booted
    - runtest frameworks-net passes
    - cherry-picked to master and verified there as well
Bug: 32163131
Bug: 32561414

Change-Id: I0b5b1b12d55547d08c332c7d274f19f0023a7b07

7 years agoMerge "Captive portal login shows specific network name"
Hugo Benichi [Wed, 7 Jun 2017 08:35:51 +0000 (08:35 +0000)]
Merge "Captive portal login shows specific network name"
am: 01fb05cf62

Change-Id: I205b37d204250d7fc188b2d7d23593d22d03b89d

7 years agoMerge "Captive portal login shows specific network name"
Hugo Benichi [Wed, 7 Jun 2017 08:11:20 +0000 (08:11 +0000)]
Merge "Captive portal login shows specific network name"

7 years agoCaptive portal login shows specific network name
Hugo Benichi [Thu, 1 Jun 2017 03:58:49 +0000 (12:58 +0900)]
Captive portal login shows specific network name

Bug: 62274222
Bug: 38197949
Bug: 36532213
Test: manually tested by triggering the captive portal login activity
Change-Id: I31439b13a87a78982560828f9ea8a3a57591471b