OSDN Git Service

android-x86/frameworks-base.git
7 years agoMerge changes from topic 'sms-files-move-opt-to-base'
nharold [Sat, 6 May 2017 01:55:40 +0000 (01:55 +0000)]
Merge changes from topic 'sms-files-move-opt-to-base'
am: abcc43d86a

Change-Id: Ib61b38a3fd065c3906e2e3f0863b83f2f4b740f4

7 years agoMerge changes from topic 'sms-files-move-opt-to-base'
nharold [Sat, 6 May 2017 01:45:35 +0000 (01:45 +0000)]
Merge changes from topic 'sms-files-move-opt-to-base'

* changes:
  Move newFromRil() function to a utility class
  Remove dependency on telephony-common from services/core
  Move OTASP_* Consts from ServiceStateTracker to TelephonyManager
  Port Utility Functions from DefaultPhoneNotifier
  Remove dependency on IccConstants from SmsManager
  Move files from frameworks/opt/telephony to frameworks/base

7 years agoMove newFromRil() function to a utility class
Nathan Harold [Wed, 25 Jan 2017 01:08:34 +0000 (17:08 -0800)]
Move newFromRil() function to a utility class

Remove a dependency on frameworks/opt from SmsMessage for CDMA

-Code move to frameworks/opt/telephony../cdma/SmsMessageConverter

Bug: 33414487
Test: Manually verified GSM and CDMA SMS: MO and MT
Change-Id: I730d292c4aad6524b03b18c0751738a73a71ecf7

7 years agoRemove dependency on telephony-common from services/core
Nathan Harold [Wed, 14 Dec 2016 19:40:03 +0000 (11:40 -0800)]
Remove dependency on telephony-common from services/core

After migrating all the dependencies from frameworks/opt/telephony
to frameworks/base, the dependency is no longer needed and should
never have been created in the first place. Happily removed.

Bug: 33414487
Test: compilation
Change-Id: I261da4c6b819b3c960ce56d2cab5c80cb34e852e

7 years agoMove OTASP_* Consts from ServiceStateTracker to TelephonyManager
Nathan Harold [Wed, 14 Dec 2016 19:24:48 +0000 (11:24 -0800)]
Move OTASP_* Consts from ServiceStateTracker to TelephonyManager

-Move the OTASP_* constants from SST
-Update references to those constants in TelephonyRegistry

Bug: 33414487
Test: compilation
Change-Id: I9516a8dfa9623d69d7e051749815e91ed3d013fa

7 years agoPort Utility Functions from DefaultPhoneNotifier
Nathan Harold [Wed, 14 Dec 2016 18:48:00 +0000 (10:48 -0800)]
Port Utility Functions from DefaultPhoneNotifier

-Move static utility functions from frameworks/opt/telephony/
 ..DefaultPhoneNotifier to a new utility class in frameworks/base

-Update TelephonyRegistry to point to the new functions.

Bug: 33414487
Test: compilation
Change-Id: I36a113cb5122569d451ec3a2dfa71d72d590fa52

7 years agoRemove dependency on IccConstants from SmsManager
Nathan Harold [Wed, 14 Dec 2016 03:03:09 +0000 (19:03 -0800)]
Remove dependency on IccConstants from SmsManager

-Redefine the length of the SmsRecord in SmsManager

Bug: 33414487
Test: compilation
Change-Id: I941085e96f45164152528c123102a59930859546

7 years agoMove files from frameworks/opt/telephony to frameworks/base
Nathan Harold [Wed, 26 Apr 2017 01:27:08 +0000 (18:27 -0700)]
Move files from frameworks/opt/telephony to frameworks/base

Bug: 37688438
Test: compilation, boot on aosp_bullhead
Merged-In: I44d3d6231943ae0e7c3de4ab302e0cdff987aefe
Change-Id: I44d3d6231943ae0e7c3de4ab302e0cdff987aefe

7 years agoMerge changes from topic 'libvintf_cp'
Yifan Hong [Sat, 6 May 2017 00:18:51 +0000 (00:18 +0000)]
Merge changes from topic 'libvintf_cp'
am: 9bd4c20764

Change-Id: I277b37789fdc78ed2dcb5c50c1fda9c40444a4e8

7 years agoAdd compatibility matrices to VintfObject.report()
Yifan Hong [Sat, 6 May 2017 00:17:26 +0000 (00:17 +0000)]
Add compatibility matrices to VintfObject.report()
am: 4463d991be

Change-Id: I26c78cca5e807ee291bdb097d11d5f4ac43bba29

7 years agoMerge changes from topic 'libvintf_cp'
Treehugger Robot [Sat, 6 May 2017 00:11:31 +0000 (00:11 +0000)]
Merge changes from topic 'libvintf_cp'

* changes:
  android.os.VintfObject: add API for EDI.
  Add compatibility matrices to VintfObject.report()

7 years agoMerge "Fix Bluetooth GATT API default handler assignment"
Ruben Brunk [Fri, 5 May 2017 23:39:50 +0000 (23:39 +0000)]
Merge "Fix Bluetooth GATT API default handler assignment"
am: 612b8bef0c

Change-Id: Ia71233576b7f8a712abf495164923a092cdc5677

7 years agoMerge "Fix Bluetooth GATT API default handler assignment"
Treehugger Robot [Fri, 5 May 2017 23:28:39 +0000 (23:28 +0000)]
Merge "Fix Bluetooth GATT API default handler assignment"

7 years agoMerge "Update path for libmediandk headers"
Colin Cross [Fri, 5 May 2017 22:32:11 +0000 (22:32 +0000)]
Merge "Update path for libmediandk headers"
am: 9d9aab48fa

Change-Id: I339300d2e0c230069af0a7f08caff6449de37c85

7 years agoMerge "Update path for libmediandk headers"
Colin Cross [Fri, 5 May 2017 22:25:05 +0000 (22:25 +0000)]
Merge "Update path for libmediandk headers"

7 years agoFix Bluetooth GATT API default handler assignment
Ruben Brunk [Mon, 1 May 2017 23:57:31 +0000 (16:57 -0700)]
Fix Bluetooth GATT API default handler assignment

Restores previous behaviour where GATT callbacks are invoked on the
binder thread and not the calling process main looper thread.

This fixes performance regressions as well as some
NetworkOnMainThreadException's for some applications.

Bug: 37544152
Bug: 37871717
Test: Covered by prior API tests.
Change-Id: Id8ab705dd4d7f00030e6ac29e056dde5180670e9
(cherry picked from commit 6bdc550e27e2c4e7b32bb91085eaac898d7d1156)

7 years agoMerge "Merge changes from topic 'update-conscrypt' am: c497348c74" into stage-aosp...
Android Build Merger (Role) [Fri, 5 May 2017 21:18:53 +0000 (21:18 +0000)]
Merge "Merge changes from topic 'update-conscrypt' am: c497348c74" into stage-aosp-master

7 years agoMerge changes from topic 'update-conscrypt'
Kenny Root [Fri, 5 May 2017 21:16:47 +0000 (21:16 +0000)]
Merge changes from topic 'update-conscrypt'
am: c497348c74

Change-Id: Ifa261c6c003f3e0ca767356bc98c2c3033bd699a

7 years agoMerge changes from topic 'update-conscrypt'
Kenny Root [Fri, 5 May 2017 21:10:11 +0000 (21:10 +0000)]
Merge changes from topic 'update-conscrypt'
am: c497348c74

Change-Id: Ie3b9d74ff46be9e4b00c6efe6748feb5e096cd3a

7 years agoTrack updates to Conscrypt
Kenny Root [Fri, 5 May 2017 21:08:48 +0000 (21:08 +0000)]
Track updates to Conscrypt
am: 7fdce769c3

Change-Id: I691f1ed588814311363f67b8ce43cbe247e54b71

7 years agoMerge changes from topic 'update-conscrypt'
Kenny Root [Fri, 5 May 2017 21:00:38 +0000 (21:00 +0000)]
Merge changes from topic 'update-conscrypt'

* changes:
  Delete obsolete and unused KeyStoreTests
  Track updates to Conscrypt

7 years agoUpdate path for libmediandk headers
Colin Cross [Fri, 5 May 2017 00:58:11 +0000 (17:58 -0700)]
Update path for libmediandk headers

Platform usages of libmediandk headers are now in media/.

Test: builds
Change-Id: I16385cab86ae9cac225304557df416bbb232ecf3
(cherry picked from commit c8ed45d38f3b42e06c9e0980e133a84181752b5e)

7 years agoMerge "Reduce hwui CPU time by using glDrawRangeElements"
Arun [Fri, 5 May 2017 18:58:47 +0000 (18:58 +0000)]
Merge "Reduce hwui CPU time by using glDrawRangeElements"
am: 057c7c3164

Change-Id: I32269ea47f637597efc73acc4e040c209b48a2ed

7 years agoMerge "Reduce hwui CPU time by using glDrawRangeElements"
Treehugger Robot [Fri, 5 May 2017 18:50:11 +0000 (18:50 +0000)]
Merge "Reduce hwui CPU time by using glDrawRangeElements"

7 years agoMerge "Convert libhwui to Android.bp"
Colin Cross [Fri, 5 May 2017 15:28:42 +0000 (15:28 +0000)]
Merge "Convert libhwui to Android.bp"
am: 31fb17bbf9

Change-Id: I66401c892f90131e21efb36dc7316f905bd729d2

7 years agoMerge "Convert libhwui to Android.bp"
Treehugger Robot [Fri, 5 May 2017 15:17:21 +0000 (15:17 +0000)]
Merge "Convert libhwui to Android.bp"

7 years agoReduce hwui CPU time by using glDrawRangeElements
Arun [Mon, 23 Jan 2017 11:41:06 +0000 (11:41 +0000)]
Reduce hwui CPU time by using glDrawRangeElements

The CPU overhead of glDrawElements in the GPU driver is significant
with client-side vertex data (unique per draw call) as the driver has
to calculate the mininimum and maximum indices from the index buffer
in order to evaluate the range of vertex data required. This can be
avoided by keeping track of the min-max in hwui and passing it with
glDrawRangeElements. This requires OpenGL ES3.0 support (which is
already checked for elsewhere in hwui).

Test: manual - visual inspection on fugu (nexus player)

Change-Id: I57bb1ddd239a1032f74f1cd2683bbe0970e84bd9

7 years agoMerge "Add (disabled) time zone update system server impl"
Neil Fuller [Fri, 5 May 2017 14:17:02 +0000 (14:17 +0000)]
Merge "Add (disabled) time zone update system server impl"
am: cba224e833

Change-Id: I603af513ae8170a1fac6e2e2fdc364ecbea0abfd

7 years agoMerge "Add (disabled) time zone update system server impl"
Treehugger Robot [Fri, 5 May 2017 14:06:23 +0000 (14:06 +0000)]
Merge "Add (disabled) time zone update system server impl"

7 years agoMerge "Handle safe mode in PackageManager."
Nicolas Geoffray [Fri, 5 May 2017 08:45:39 +0000 (08:45 +0000)]
Merge "Handle safe mode in PackageManager."
am: a34610cebc

Change-Id: Iddfa0f1cee457214aa9e6b0235865f0cebac7667

7 years agoMerge "Handle safe mode in PackageManager."
Nicolas Geoffray [Fri, 5 May 2017 08:37:16 +0000 (08:37 +0000)]
Merge "Handle safe mode in PackageManager."

7 years agoandroid.os.VintfObject: add API for EDI.
Yifan Hong [Thu, 4 May 2017 20:05:24 +0000 (13:05 -0700)]
android.os.VintfObject: add API for EDI.

Add APIs for EDI (extensive device information).

Test: CtsDeviceInfo
Bug: 28656227
Change-Id: I609d4f1f07e20717827ef024ff8cbe124d7e54a6
Merged-In: I609d4f1f07e20717827ef024ff8cbe124d7e54a6

7 years agoAdd compatibility matrices to VintfObject.report()
Yifan Hong [Tue, 2 May 2017 01:43:36 +0000 (18:43 -0700)]
Add compatibility matrices to VintfObject.report()

Test: FrameworksCoreTests
Bug: 36814503
Change-Id: I27eaea136437afb2102581d410b657e810612a0a
Merged-In: I27eaea136437afb2102581d410b657e810612a0a

7 years agoMerge "Update carrier text when phone service state is changed"
Adrian Roos [Fri, 5 May 2017 01:04:45 +0000 (01:04 +0000)]
Merge "Update carrier text when phone service state is changed"
am: 66f685a235

Change-Id: I17c065fbf56e68daa1d8909bea914f3ffdca87dd

7 years agoMerge "Update carrier text when phone service state is changed"
Adrian Roos [Fri, 5 May 2017 00:50:17 +0000 (00:50 +0000)]
Merge "Update carrier text when phone service state is changed"

7 years agoMerge "Destroy Allocation with ScriptIntrinsicLut"
Yang Ni [Thu, 4 May 2017 18:56:34 +0000 (18:56 +0000)]
Merge "Destroy Allocation with ScriptIntrinsicLut"
am: 622b140f94

Change-Id: I7d781ce6f36d0205bb35a9b3416e4ea55f4b8eeb

7 years agoAdd (disabled) time zone update system server impl
Neil Fuller [Thu, 16 Mar 2017 18:32:21 +0000 (18:32 +0000)]
Add (disabled) time zone update system server impl

This commit builds on top of prior API commits. It
adds code to the system server, but in a disabled way.

The system server is responsible for monitoring two
(configured) package names: one for the "updater app"
(provided by the platform) and one for the "data app"
(provided by the OEM). When either package changes
the updater app is triggered via a privileged
intent.

The updater is then required to communicate with the
data app and report back to the system server.

Unit tests are included for the major components.

To run:
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: I8f82cdcc2b574778a7e0d0184270f305b69ee17b
Change-Id: I8f82cdcc2b574778a7e0d0184270f305b69ee17b

7 years agoMerge "Destroy Allocation with ScriptIntrinsicLut"
Yang Ni [Thu, 4 May 2017 18:44:28 +0000 (18:44 +0000)]
Merge "Destroy Allocation with ScriptIntrinsicLut"

7 years agoDestroy Allocation with ScriptIntrinsicLut
Yang Ni [Fri, 28 Apr 2017 15:50:33 +0000 (08:50 -0700)]
Destroy Allocation with ScriptIntrinsicLut

Bug: 28053584

On destroying the intrinsic, destroy its contained Allocation right away.

Test: CTS on x86_64 emulator
Change-Id: I5ca0da33b620c3291b7cafda31a6cc83eb7461a0

7 years agoMerge "Merge "Moved data retry handler from broadcast to message." am: 19cd7568c6...
Android Build Merger (Role) [Thu, 4 May 2017 18:20:12 +0000 (18:20 +0000)]
Merge "Merge "Moved data retry handler from broadcast to message." am: 19cd7568c6" into stage-aosp-master

7 years agoMerge "Moved data retry handler from broadcast to message."
Jack Yu [Thu, 4 May 2017 18:19:09 +0000 (18:19 +0000)]
Merge "Moved data retry handler from broadcast to message."
am: 19cd7568c6

Change-Id: Ie1d413ba04d3efbd159c43dcff9646d0b6f75a35

7 years agoMerge "Moved data retry handler from broadcast to message."
Jack Yu [Thu, 4 May 2017 18:13:24 +0000 (18:13 +0000)]
Merge "Moved data retry handler from broadcast to message."
am: 19cd7568c6

Change-Id: I8a7c38b4cd6f1307cace357e206a93978e53d4bf

7 years agoMerge "Moved data retry handler from broadcast to message."
Treehugger Robot [Thu, 4 May 2017 18:04:29 +0000 (18:04 +0000)]
Merge "Moved data retry handler from broadcast to message."

7 years agoConvert libhwui to Android.bp
Colin Cross [Wed, 19 Apr 2017 22:25:25 +0000 (15:25 -0700)]
Convert libhwui to Android.bp

See build/soong/README.md for more information.

Test: m -j checkbuild
Change-Id: Ifebdb3797498d49f2bebe5fc728e6d6d8def71cb
Merged-In: Ifebdb3797498d49f2bebe5fc728e6d6d8def71cb
(cherry picked from commit f6298101181122b5b70d1094b131e44580cf62b2)

7 years agoMoved data retry handler from broadcast to message.
Jack Yu [Wed, 3 May 2017 20:32:30 +0000 (13:32 -0700)]
Moved data retry handler from broadcast to message.

The broadcast handler onReceive implmentations should
only handle minimum works. Made this consistent with
other DcTracker broadcast handler.

Test: Manual tests, Telephony sanity tests, and unit tests
bug: 37413302
Merged-In: I4c65b2f7b8aa5674eb7e131d26e404ec390ed19a
Change-Id: I4c65b2f7b8aa5674eb7e131d26e404ec390ed19a

7 years agoMerge "More time zone update API classes"
Neil Fuller [Thu, 4 May 2017 14:48:21 +0000 (14:48 +0000)]
Merge "More time zone update API classes"
am: c301339498

Change-Id: I23ace2d5102f197ca6d6e22a37b54b43e38753ed

7 years agoMerge "More time zone update API classes"
Treehugger Robot [Thu, 4 May 2017 14:41:08 +0000 (14:41 +0000)]
Merge "More time zone update API classes"

7 years agoMerge "Time zone update API classes"
Neil Fuller [Thu, 4 May 2017 14:01:23 +0000 (14:01 +0000)]
Merge "Time zone update API classes"
am: cfe0c2f1ec

Change-Id: I6442aee1844ec9c6ef1017a4744936252ef45243

7 years agoMerge "Time zone update API classes"
Neil Fuller [Thu, 4 May 2017 13:51:38 +0000 (13:51 +0000)]
Merge "Time zone update API classes"

7 years agoMore time zone update API classes
Neil Fuller [Thu, 16 Mar 2017 18:31:56 +0000 (18:31 +0000)]
More time zone update API classes

This class forms the contract between the updater app
(the app provided by and triggered by the system)
and the data app (the app provided by the OEM to
provide time zone data).

Bug: 31008728
Test: make only, just constants
Change-Id: I687b75954e132884aec962fcf8955f3f38a00b2f

7 years agoMerge "Adjust forced dexopt in case of stripped APKs."
Nicolas Geoffray [Thu, 4 May 2017 11:34:06 +0000 (11:34 +0000)]
Merge "Adjust forced dexopt in case of stripped APKs."
am: 5669550a83

Change-Id: I1ca14c8eee35cb3f793b2a004f5bd6f6b8ca6120

7 years agoTime zone update API classes
Neil Fuller [Thu, 16 Mar 2017 18:29:36 +0000 (18:29 +0000)]
Time zone update API classes

Time zone update API classes. Currently hidden but they
will go on to be unhidden in future.

This forms the basis of client and system server code to
support time zone updates.

Tests can be run with:

make -j30 FrameworksCoreTests
adb install out/target/product/angler/data/app/FrameworksCoreTests/FrameworksCoreTests.apk
adb shell am instrument -e package android.app.timezone \
    -w com.android.frameworks.coretests \
    "com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner"

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

7 years agoMerge "Adjust forced dexopt in case of stripped APKs."
Nicolas Geoffray [Thu, 4 May 2017 11:25:03 +0000 (11:25 +0000)]
Merge "Adjust forced dexopt in case of stripped APKs."

7 years agoAdjust forced dexopt in case of stripped APKs.
Nicolas Geoffray [Wed, 3 May 2017 10:51:53 +0000 (11:51 +0100)]
Adjust forced dexopt in case of stripped APKs.

We cannot compile from scratch for strip APK. So
if getDexOptNeeded returns NotNeeded, pretend there was
a compiler filter change, in order to pick up the vdex file.

bug: 37558732
Test: "adb shell cmd package compile" of a stripped /system apk
Change-Id: I531010e01e44adfa300872c1739c49dab7292317

7 years agoMerge "fix KeyEvent can't correctly finish when inputmethod time out happend"
gaoshang [Thu, 4 May 2017 03:46:13 +0000 (03:46 +0000)]
Merge "fix KeyEvent can't correctly finish when inputmethod time out happend"
am: 36247646e3

Change-Id: I245d63d33fdc7376e05539486be3b31b284ea11f

7 years agoMerge "fix KeyEvent can't correctly finish when inputmethod time out happend"
Treehugger Robot [Thu, 4 May 2017 03:37:36 +0000 (03:37 +0000)]
Merge "fix KeyEvent can't correctly finish when inputmethod time out happend"

7 years agofix KeyEvent can't correctly finish when inputmethod time out happend
gaoshang [Thu, 20 Apr 2017 06:14:18 +0000 (14:14 +0800)]
fix KeyEvent can't correctly finish when inputmethod time out happend

Symptom: If inputmethod handle an KeyEvent time out ,
Did not finish this event correctly , eventually lead to app ANR
Root Cause: without seq number when obtainMessage MSG_TIMEOUT_INPUT_EVENT
Solution: add seq parameter

Test: Input
Test: InputMethod

Fixes: 37648930
Change-Id: I3a2b964b34aa57267bd777305200a2bfdc66f65c
Merged-In: I3a2b964b34aa57267bd777305200a2bfdc66f65c
Signed-off-by: gaoshang <gaoshang@xiaomi.com>
7 years agoMerge "Bluetooth: OBEX: Don't close transport when obex is disconnected"
Hemant Gupta [Wed, 3 May 2017 19:46:41 +0000 (19:46 +0000)]
Merge "Bluetooth: OBEX: Don't close transport when obex is disconnected"
am: 7485f047ba

Change-Id: I1c222eda83abf4a056535790b48819d857fdd1de

7 years agoMerge "Bluetooth: OBEX: Don't close transport when obex is disconnected"
Treehugger Robot [Wed, 3 May 2017 19:38:55 +0000 (19:38 +0000)]
Merge "Bluetooth: OBEX: Don't close transport when obex is disconnected"

7 years agoBluetooth: OBEX: Don't close transport when obex is disconnected
Hemant Gupta [Thu, 5 Nov 2015 08:42:01 +0000 (14:12 +0530)]
Bluetooth: OBEX: Don't close transport when obex is disconnected

Precondition: PTS 7.0

Usecase:
Execute test case TC_TG_CA_BI_02_C for AVRCP 1.6

Expectation:
Test case should pass

Observation:
Test case fails

Root cause:
Disconnection of OBEX from PTS leads to disconnection of transport
(initiated by DUT) leading to test case failure. Obex server was
unnecessary assuming that transport would be disconnected so was
informing registered users that transport has been disconnected,
which was leading to issues on new obex connect on same transport
channel from remote obex client

Fix:
Remove check to break out of loop after obex disconnection, as that is
already handled in case when read would return -1 in case transport
is closed.

Test: TC_TG_CA_BI_02_C can be passed after the patch.

Bug: 35590000
Change-Id: Ic1682ce77c07cf2e43da09dc95fff2214338f758

7 years agoMerge "Add error/cause code reporting for Non A/B OTA failures"
Tianjie Xu [Wed, 3 May 2017 17:44:32 +0000 (17:44 +0000)]
Merge "Add error/cause code reporting for Non A/B OTA failures"
am: 2db2f6d265

Change-Id: I8361a38d9a913072541e805176bfccdc728f333c

7 years agoMerge "Add error/cause code reporting for Non A/B OTA failures"
Tianjie Xu [Wed, 3 May 2017 17:34:27 +0000 (17:34 +0000)]
Merge "Add error/cause code reporting for Non A/B OTA failures"

7 years agoHandle safe mode in PackageManager.
Nicolas Geoffray [Wed, 3 May 2017 12:11:58 +0000 (13:11 +0100)]
Handle safe mode in PackageManager.

PackageManager side of the change.

bug:37929796
Test: manual OTA with a safemode app.
Change-Id: I98c8200d4330dc88fec7eb8ffeb27717a22a220b

7 years agoAdd error/cause code reporting for Non A/B OTA failures
Tianjie Xu [Tue, 2 May 2017 19:41:56 +0000 (12:41 -0700)]
Add error/cause code reporting for Non A/B OTA failures

Read and report the error_code & cause_code from last_install.

Bug: 36866437
Test: mma & observe the sysui event in logcat -b events
Change-Id: I5357861fc758e14ed3235bfc8cc76d7561ccea58

7 years agoMerge "StatusBar: Catch OOM caused by third-party icons"
Adrian Roos [Tue, 2 May 2017 21:09:32 +0000 (21:09 +0000)]
Merge "StatusBar: Catch OOM caused by third-party icons"
am: ed112e3c11

Change-Id: I60313cc9a4560fd8e8308108a4d878ab49fcbea1

7 years agoMerge "StatusBar: Catch OOM caused by third-party icons"
Adrian Roos [Tue, 2 May 2017 21:00:40 +0000 (21:00 +0000)]
Merge "StatusBar: Catch OOM caused by third-party icons"

7 years agoMerge "Change MANAGE_OWN_CALLS permission to be a "normal" permission."
Tyler Gunn [Tue, 2 May 2017 20:48:09 +0000 (20:48 +0000)]
Merge "Change MANAGE_OWN_CALLS permission to be a "normal" permission."
am: 34e0a257d5

Change-Id: I4c996f0e2e3d56bb36231f765a0d1a4d15cc171c

7 years agoMerge "Change MANAGE_OWN_CALLS permission to be a "normal" permission."
Tyler Gunn [Tue, 2 May 2017 20:36:37 +0000 (20:36 +0000)]
Merge "Change MANAGE_OWN_CALLS permission to be a "normal" permission."

7 years agoStatusBar: Catch OOM caused by third-party icons
Adrian Roos [Tue, 31 Jan 2017 23:10:00 +0000 (15:10 -0800)]
StatusBar: Catch OOM caused by third-party icons

Bug: 31825355
Change-Id: I3e2a8c3da43a572a026ea0bbe1d39234035a4801
Merged-In: I3e2a8c3da43a572a026ea0bbe1d39234035a4801

7 years agoMerge "SymbolComparator operator() is missing const"
Yi Kong [Tue, 2 May 2017 18:26:57 +0000 (18:26 +0000)]
Merge "SymbolComparator operator() is missing const"
am: e74483074e

Change-Id: I86f332f10f87d519c42c5880c49dacf98be2c9e5

7 years agoMerge "SymbolComparator operator() is missing const"
Yi Kong [Tue, 2 May 2017 18:15:02 +0000 (18:15 +0000)]
Merge "SymbolComparator operator() is missing const"

7 years agoChange MANAGE_OWN_CALLS permission to be a "normal" permission.
Tyler Gunn [Fri, 28 Apr 2017 17:45:23 +0000 (10:45 -0700)]
Change MANAGE_OWN_CALLS permission to be a "normal" permission.

Also remove from Phone group since this isn't really related to phone
calls as much as interacting with Telecom APIs.

Test: Manual
Bug: 37722558
Merged-In: Ia972db4bd79a34bc9b9d3896910adc205c286367
Change-Id: Icc4d2170cc7c83f653eeb0438938f7c0c91a0a7c

7 years agoMerge "Force a light to be set for the first time"
Oleksiy Avramchenko [Tue, 2 May 2017 12:48:34 +0000 (12:48 +0000)]
Merge "Force a light to be set for the first time"
am: e6ad7a6704

Change-Id: Icc13b24debc55f4c107dea61123e468a79828f11

7 years agoMerge "Force a light to be set for the first time"
Treehugger Robot [Tue, 2 May 2017 12:42:12 +0000 (12:42 +0000)]
Merge "Force a light to be set for the first time"

7 years agoMerge "Track libcore change 03e8c7dca78a95ccf719a7."
Narayan Kamath [Tue, 2 May 2017 10:13:48 +0000 (10:13 +0000)]
Merge "Track libcore change 03e8c7dca78a95ccf719a7."
am: 194f8471fd

Change-Id: Ie4fbcc4defee14c91cd3b84adf4f3ae5f47add3f

7 years agoMerge "Track libcore change 03e8c7dca78a95ccf719a7."
Narayan Kamath [Tue, 2 May 2017 10:06:48 +0000 (10:06 +0000)]
Merge "Track libcore change 03e8c7dca78a95ccf719a7."

7 years agoMerge "NsdManager: add test coverage for discoverServices()"
Hugo Benichi [Tue, 2 May 2017 08:54:46 +0000 (08:54 +0000)]
Merge "NsdManager: add test coverage for discoverServices()"
am: 3e21b1745c

Change-Id: I0fd1d8e6ea3264a96b144c6701200f7b0be5f9c4

7 years agoMerge "NsdManager: add test coverage for discoverServices()"
Treehugger Robot [Tue, 2 May 2017 08:44:27 +0000 (08:44 +0000)]
Merge "NsdManager: add test coverage for discoverServices()"

7 years agoForce a light to be set for the first time
Oleksiy Avramchenko [Tue, 25 Apr 2017 10:30:49 +0000 (12:30 +0200)]
Force a light to be set for the first time

The check in LightImpl::setLightLocked skips HAL call if light
parameters aren't changed. During initialization these parameters
are zeroed, thus it's not possible to turn the light off at the
startup.

As an example this fixes the issue with "stuck" battery light
in the following scenario:
1. Device has secure start-up option set (either pin or pattern).
2. Charger is connected at the startup and battery light shows the
   charging state on pin or pattern prompt.
3. Device is unlocked and charger disconnected after some time,
   e.g. after com.android.server.lights.LightsService restarted.
4. The battery light is not off and stuck in the previous state
   until charger is connected / disconnected again.

Bug: 37662368
Test: manual - follow the above step-by-step
Change-Id: I45470e945fe4d26d37a5641dfff3311968f51ee4

7 years agoMerge "NsdManager: unit test coverage for servive registration"
Hugo Benichi [Tue, 2 May 2017 06:35:11 +0000 (06:35 +0000)]
Merge "NsdManager: unit test coverage for servive registration"
am: b0e408450c

Change-Id: I0b47ad5a1ccee4a2efb169d717b512a46ad4ecc2

7 years agoMerge "NsdManager: unit test coverage for servive registration"
Treehugger Robot [Tue, 2 May 2017 06:27:08 +0000 (06:27 +0000)]
Merge "NsdManager: unit test coverage for servive registration"

7 years agoNsdManager: add test coverage for discoverServices()
Hugo Benichi [Fri, 28 Apr 2017 04:29:21 +0000 (13:29 +0900)]
NsdManager: add test coverage for discoverServices()

Test: added new tests
Bug: 3701336933298084
Change-Id: If6c1113ee1bd4690db90abd5a61c3e229c827aec

7 years agoNsdManager: unit test coverage for servive registration
Hugo Benichi [Fri, 28 Apr 2017 02:01:22 +0000 (11:01 +0900)]
NsdManager: unit test coverage for servive registration

This patch adds test coverage for NsdManager#registerService() and
NsdManager#unregisterService(). This test shows a potential defect in
the api: if unregisterService() fails, the associated listener is always
unregistered from NsdManager. If the service initially registered is
still registered, this potentially make it impossible to unregister.

Test: added new unit test
Bug: 3701336933298084
Change-Id: Ia089b6d2f2a349907a8b29d9a3acd7f59e177887

7 years agoDelete obsolete and unused KeyStoreTests
Kenny Root [Mon, 1 May 2017 23:38:45 +0000 (16:38 -0700)]
Delete obsolete and unused KeyStoreTests

These depended on internal implementation details of Conscrypt that are
changing. Delete these tests since they're not included in builds any
more.

Test: make checkbuild
Change-Id: I6ddf832c30bcf49e940c55aa81534c3d987393fb

7 years agoTrack updates to Conscrypt
Kenny Root [Tue, 28 Mar 2017 17:02:23 +0000 (10:02 -0700)]
Track updates to Conscrypt

Test: cts-tradefed run cts -m CtsLibcoreOkHttpTestCases -a arm64-v8a
Test: cts-tradefed run cts -m CtsLibcoreTestCases -a arm64-v8a
Change-Id: I1487d694c5abe7cf2b938d9f1869d9aeb5285ac5

7 years agoMerge "Remove no-op std::max call"
Yi Kong [Mon, 1 May 2017 18:40:43 +0000 (18:40 +0000)]
Merge "Remove no-op std::max call"
am: c00af4c533

Change-Id: I9bbbb3689d51e364752efe7b5f1b21f30bc3de18

7 years agoMerge "Remove no-op std::max call"
Yi Kong [Mon, 1 May 2017 18:29:24 +0000 (18:29 +0000)]
Merge "Remove no-op std::max call"

7 years agoSymbolComparator operator() is missing const
Yi Kong [Mon, 1 May 2017 17:57:39 +0000 (10:57 -0700)]
SymbolComparator operator() is missing const

Clean up, no functionality change.

Test: build
Bug: 37752547
Change-Id: I7b6f368c0d0776f956a8b99353df7b23cbbc388d

7 years agoRemove no-op std::max call
Yi Kong [Mon, 1 May 2017 06:51:33 +0000 (23:51 -0700)]
Remove no-op std::max call

This was calling std::max on an unsigned integer and 0, which is
essentially no-op. Remove this code.

Test: Build
Bug: 37752547
Change-Id: I74ce45b95960621dff11f574fbe1af60ad147cf0

7 years agoMerge "Use ConnectivityService's NETWORK_STACK permission for SoftAp operations"
Erik Kline [Sat, 29 Apr 2017 07:39:58 +0000 (07:39 +0000)]
Merge "Use ConnectivityService's NETWORK_STACK permission for SoftAp operations"
am: 169681db26

Change-Id: Ifd9e1c3645c2fa7c6671991edf52d1deb63d9d1c

7 years agoMerge "Use ConnectivityService's NETWORK_STACK permission for SoftAp operations"
Erik Kline [Sat, 29 Apr 2017 07:33:34 +0000 (07:33 +0000)]
Merge "Use ConnectivityService's NETWORK_STACK permission for SoftAp operations"

7 years agoUse ConnectivityService's NETWORK_STACK permission for SoftAp operations
Erik Kline [Sat, 29 Apr 2017 04:20:04 +0000 (13:20 +0900)]
Use ConnectivityService's NETWORK_STACK permission for SoftAp operations

Test: as follows
    - built
    - flashed
    - booted
    - "runtest frameworks-net" passes
Bug: 37647880
Bug: 37750597
Change-Id: I4fb603b7491013bc13b0c08a785eae6cd37337b9

7 years agoMerge "Add android.os.VintfRuntimeInfo"
Yifan Hong [Sat, 29 Apr 2017 03:07:09 +0000 (03:07 +0000)]
Merge "Add android.os.VintfRuntimeInfo"
am: 4f8a375958

Change-Id: If9e389879ac9fc7c601b99daed714b7618e701bb

7 years agoMerge "Add android.os.VintfRuntimeInfo"
Treehugger Robot [Sat, 29 Apr 2017 03:00:06 +0000 (03:00 +0000)]
Merge "Add android.os.VintfRuntimeInfo"

7 years agoAdd android.os.VintfRuntimeInfo
Yifan Hong [Wed, 26 Apr 2017 18:38:01 +0000 (11:38 -0700)]
Add android.os.VintfRuntimeInfo

This is the Java API for ::android::vintf::RuntimeInfo.
This will be used by CTS for device info report purposes.

Bug: 28656227
Test: cts-tradefed run cts -m CtsEdiHostTestCases --skip-preconditions
Change-Id: Id87c95a17e77d7ec1794a6f850de97edf9ae892d

7 years agoMerge "Aapt2: Fix png leak"
Andreas Gampe [Fri, 28 Apr 2017 22:57:50 +0000 (22:57 +0000)]
Merge "Aapt2: Fix png leak"
am: f62e38583a

Change-Id: I902d6350fa90ebb18b49c3abe6050cfe5471dbb7

7 years agoMerge "Aapt2: Fix png leak"
Andreas Gampe [Fri, 28 Apr 2017 22:45:25 +0000 (22:45 +0000)]
Merge "Aapt2: Fix png leak"

7 years agoMerge "eMBMS API update"
Hall Liu [Fri, 28 Apr 2017 22:25:53 +0000 (22:25 +0000)]
Merge "eMBMS API update"
am: 99b21ccb34

Change-Id: Ic459910f1a06979cf8e1813d18400236eeb1ad49

7 years agoMerge "eMBMS API update"
Hall Liu [Fri, 28 Apr 2017 22:17:50 +0000 (22:17 +0000)]
Merge "eMBMS API update"

7 years agoMerge "Bluetooth: bluetooth.le API fixes"
Jakub Pawlowski [Fri, 28 Apr 2017 21:46:14 +0000 (21:46 +0000)]
Merge "Bluetooth: bluetooth.le API fixes"
am: cf95973276

Change-Id: I67075df5e7d457cd85b40faefb3fe68946775330