OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "AAPT2: Fix overzealous AndroidManifest fully qualified class names"
TreeHugger Robot [Thu, 30 Nov 2017 02:51:46 +0000 (02:51 +0000)]
Merge "AAPT2: Fix overzealous AndroidManifest fully qualified class names"

6 years agoMerge "Add metric for battery page in debug mode."
TreeHugger Robot [Thu, 30 Nov 2017 02:19:22 +0000 (02:19 +0000)]
Merge "Add metric for battery page in debug mode."

6 years agoMerge "Use system dialog corner radius"
TreeHugger Robot [Thu, 30 Nov 2017 02:16:23 +0000 (02:16 +0000)]
Merge "Use system dialog corner radius"

6 years agoMerge "Don't start recents multiple times when entering split-screen"
Wale Ogunwale [Thu, 30 Nov 2017 02:04:01 +0000 (02:04 +0000)]
Merge "Don't start recents multiple times when entering split-screen"

6 years agoMerge "ImageReader: Make discardFreeBuffers public"
TreeHugger Robot [Thu, 30 Nov 2017 01:28:59 +0000 (01:28 +0000)]
Merge "ImageReader: Make discardFreeBuffers public"

6 years agoMerge "Remove shutdown of StorageManager"
Fyodor Kupolov [Thu, 30 Nov 2017 01:18:20 +0000 (01:18 +0000)]
Merge "Remove shutdown of StorageManager"

6 years agoMerge "Adds guardrail for memory usage for statsd uid map."
TreeHugger Robot [Thu, 30 Nov 2017 01:16:54 +0000 (01:16 +0000)]
Merge "Adds guardrail for memory usage for statsd uid map."

6 years agoMerge "Don't fail the tests if per-freq cpu times are not available."
TreeHugger Robot [Thu, 30 Nov 2017 01:13:23 +0000 (01:13 +0000)]
Merge "Don't fail the tests if per-freq cpu times are not available."

6 years agoMerge "TextClassifier cleanup #1"
TreeHugger Robot [Thu, 30 Nov 2017 01:07:29 +0000 (01:07 +0000)]
Merge "TextClassifier cleanup #1"

6 years agoMerge "Make libkeystore_aidl shared and export to PDK."
Dmitry Dementyev [Thu, 30 Nov 2017 01:05:42 +0000 (01:05 +0000)]
Merge "Make libkeystore_aidl shared and export to PDK."

6 years agoMerge "Update nav bar controller to allow for a home intent to be fired without havin...
TreeHugger Robot [Thu, 30 Nov 2017 00:57:07 +0000 (00:57 +0000)]
Merge "Update nav bar controller to allow for a home intent to be fired without having a package name."

6 years agoAAPT2: Fix overzealous AndroidManifest fully qualified class names
Adam Lesinski [Thu, 30 Nov 2017 00:27:44 +0000 (16:27 -0800)]
AAPT2: Fix overzealous AndroidManifest fully qualified class names

ManifestFixer would go and fully qualify all elements with the attribute
'android:name', which is not correct, especially for cases like

  <uses-split android:name="foo" />

Test: make aapt2_tests
Change-Id: I4bea2550d0025179d2d48dca8c64e0cbf4451e99

6 years agoMerge "fixed CdmaSmsAddress parser" am: b00f00e74b am: c8ec8a5e56
Pengquan Meng [Thu, 30 Nov 2017 00:26:13 +0000 (00:26 +0000)]
Merge "fixed CdmaSmsAddress parser" am: b00f00e74b am: c8ec8a5e56
am: 3ca2c2dab8

Change-Id: Ie28175cc6946f4e53069895c0ea9f28634b9a96f

6 years agoMerge "Temporarily disable the netpolicy unit tests."
Sudheer Shanka [Thu, 30 Nov 2017 00:12:14 +0000 (00:12 +0000)]
Merge "Temporarily disable the netpolicy unit tests."

6 years agoMerge changes Ie479be5b,I299245fc
TreeHugger Robot [Thu, 30 Nov 2017 00:11:00 +0000 (00:11 +0000)]
Merge changes Ie479be5b,I299245fc

* changes:
  Fix if clauses
  Update error text

6 years agoMerge "fixed CdmaSmsAddress parser" am: b00f00e74b
Pengquan Meng [Thu, 30 Nov 2017 00:10:02 +0000 (00:10 +0000)]
Merge "fixed CdmaSmsAddress parser" am: b00f00e74b
am: c8ec8a5e56

Change-Id: Id3830aaea1037b61ecc385715708427c84030206

6 years agoMerge "fixed CdmaSmsAddress parser"
Pengquan Meng [Wed, 29 Nov 2017 23:52:41 +0000 (23:52 +0000)]
Merge "fixed CdmaSmsAddress parser"
am: b00f00e74b

Change-Id: I041c8f3937882b7fd78adf2c2f2cf87fc225b936

6 years agoMerge "Fix horizontal position of tooltip in a Dialog"
TreeHugger Robot [Wed, 29 Nov 2017 23:51:38 +0000 (23:51 +0000)]
Merge "Fix horizontal position of tooltip in a Dialog"

6 years agoMerge "fixed CdmaSmsAddress parser"
Pengquan Meng [Wed, 29 Nov 2017 23:38:29 +0000 (23:38 +0000)]
Merge "fixed CdmaSmsAddress parser"

6 years agoMerge "Measure the text before doing line break"
TreeHugger Robot [Wed, 29 Nov 2017 23:35:12 +0000 (23:35 +0000)]
Merge "Measure the text before doing line break"

6 years agoMerge "Confirmation code second try."
Jiuyu Sun [Wed, 29 Nov 2017 23:12:08 +0000 (23:12 +0000)]
Merge "Confirmation code second try."

6 years agoMerge "Make face unlock icon use correct theme attr"
Lucas Dupin [Wed, 29 Nov 2017 23:04:53 +0000 (23:04 +0000)]
Merge "Make face unlock icon use correct theme attr"

6 years agoMerge "Add build targets to build @SystemApi diffs."
Jeff Sharkey [Wed, 29 Nov 2017 23:01:50 +0000 (23:01 +0000)]
Merge "Add build targets to build @SystemApi diffs."

6 years agoAdds guardrail for memory usage for statsd uid map.
David Chen [Mon, 27 Nov 2017 19:52:26 +0000 (11:52 -0800)]
Adds guardrail for memory usage for statsd uid map.

Checks if current memory usage of uid map is above a configured limit
and if so, we start deleting snapshots. If there are no more
snapshots, we begin deleting two of the deltas. Also records stats
in the guardrail StatsdStats. Also fixes an edge case where a config
is added after the snapshots are added. We request a snapshot of all
installed uid's at that moment. Finally, adds the uid map memory size
when determining if we should send a broadcast to trigger collection.

Test: Added unit-tests and check they pass on marlin.
Change-Id: Id5d86378bd1efe12a06b409164c777c0c6f4e3ab

6 years agoUpdate nav bar controller to allow for a home intent to be fired without
Brad Stenning [Wed, 29 Nov 2017 22:37:51 +0000 (14:37 -0800)]
Update nav bar controller to allow for a home intent to be fired without
having a package name.

Test: After set up select the Lenspicker as the home app then click the
  home button (note: needs other commits with topic "AAE Home"

Change-Id: Ief9871bcc81902036d7af9630d6f1d27e8c83366
(cherry picked from commit Icddda312c10dfd603fb098fec13dae55d807444e)
# Conflicts:
# packages/SystemUI/src/com/android/systemui/statusbar/car/CarNavigationBarController.java

6 years agoMerge "WebView: linkify ClientCertRequest method names"
TreeHugger Robot [Wed, 29 Nov 2017 22:41:19 +0000 (22:41 +0000)]
Merge "WebView: linkify ClientCertRequest method names"

6 years agoMake libkeystore_aidl shared and export to PDK.
Dmitry Dementyev [Tue, 28 Nov 2017 20:11:44 +0000 (12:11 -0800)]
Make libkeystore_aidl shared and export to PDK.

Bug: 69539820
Test: manual
Change-Id: Iff47e9247fbc2217a2c70a35bbc6c72075af63bb

6 years agoMerge "Fix text encoding in some macrobench tests"
TreeHugger Robot [Wed, 29 Nov 2017 22:19:07 +0000 (22:19 +0000)]
Merge "Fix text encoding in some macrobench tests"

6 years agoImageReader: Make discardFreeBuffers public
Chien-Yu Chen [Tue, 28 Nov 2017 00:45:14 +0000 (16:45 -0800)]
ImageReader: Make discardFreeBuffers public

Test: CTS
Bug: 64847201
Change-Id: I61008111552b5ca4641a509e5bcf5cf821582d5e

6 years agoFix if clauses
Todd Kennedy [Wed, 29 Nov 2017 21:58:53 +0000 (13:58 -0800)]
Fix if clauses

During a refactor, we introduced updated the method used to
verify signatures. The "&& additionalTest" clauses were added
to the wrong if statement [off-by-one]. So, we were performing
a compat signature check when we shouldn't and not throwing
an exception when we should.

Change-Id: Ie479be5b254b9b13451ab07a07d20a68c7b828ad
Fixes: 69053002
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.AppSecurityTests#testSharedUidDifferentCerts

6 years agoMerge "Bluetooth: Pre-pend empty line for dumpsys section headers" am: 8a95711ef1...
Andre Eisenbach [Wed, 29 Nov 2017 21:51:20 +0000 (21:51 +0000)]
Merge "Bluetooth: Pre-pend empty line for dumpsys section headers" am: 8a95711ef1 am: f51d382d9c
am: 2cd2bc357f

Change-Id: I02d4f21a1933bfe876b8fe60eb2b49e5771fe772

6 years agoMerge "Revert "Thread-safe metric producers.""
TreeHugger Robot [Wed, 29 Nov 2017 21:45:01 +0000 (21:45 +0000)]
Merge "Revert "Thread-safe metric producers.""

6 years agoAdd build targets to build @SystemApi diffs.
Jeff Sharkey [Wed, 29 Nov 2017 20:14:27 +0000 (13:14 -0700)]
Add build targets to build @SystemApi diffs.

Test: make -j32 offline-system-sdk-referenceonly-diff
Bug: 69115817
Change-Id: Ib25d8e60351cb2b4ce5001435baf92d7f738e5f2

6 years agoMerge "Revert "Updated screenshot code to reflect native changes.""
Chavi Weingarten [Wed, 29 Nov 2017 21:42:37 +0000 (21:42 +0000)]
Merge "Revert "Updated screenshot code to reflect native changes.""

6 years agoMerge "Verify that b/68859852 won't happen again"
TreeHugger Robot [Wed, 29 Nov 2017 21:41:11 +0000 (21:41 +0000)]
Merge "Verify that b/68859852 won't happen again"

6 years agoRevert "Updated screenshot code to reflect native changes."
Chavi Weingarten [Wed, 29 Nov 2017 21:26:24 +0000 (21:26 +0000)]
Revert "Updated screenshot code to reflect native changes."

This reverts commit 689e091c7faa30f005b9adc0b7b3d2066c62be84.

Reason for revert: SystemUI and some other places need to be updated as well. Will resubmit with the other necessary changes

Change-Id: I8d1955b289d91a89c4d3f117c0ba0c3119ff51fc
Bug: 69898957

6 years agoMerge "Bluetooth: Pre-pend empty line for dumpsys section headers" am: 8a95711ef1
Andre Eisenbach [Wed, 29 Nov 2017 21:36:44 +0000 (21:36 +0000)]
Merge "Bluetooth: Pre-pend empty line for dumpsys section headers" am: 8a95711ef1
am: f51d382d9c

Change-Id: I698fd46b7784a9093ccfc23e6c1de020f2ac1d3b

6 years agoDon't start recents multiple times when entering split-screen
Wale Ogunwale [Wed, 29 Nov 2017 21:30:26 +0000 (13:30 -0800)]
Don't start recents multiple times when entering split-screen

ActivityStack.setWindowingMode() takes care of starting the recents
activity when split-screen is activated so we don't need to do this
all over the place anymore.

Change-Id: I62153c4125744e9da533b6293e91c0658868bd1b
Fixes: 68952186
Test: ActivityManagerSplitScreenTests#testLaunchToSideAndBringToFront

6 years agoMerge "Fix crash in slices"
TreeHugger Robot [Wed, 29 Nov 2017 21:25:59 +0000 (21:25 +0000)]
Merge "Fix crash in slices"

6 years agoMerge "Bluetooth: Pre-pend empty line for dumpsys section headers"
Andre Eisenbach [Wed, 29 Nov 2017 21:24:50 +0000 (21:24 +0000)]
Merge "Bluetooth: Pre-pend empty line for dumpsys section headers"
am: 8a95711ef1

Change-Id: I0dbe07aac6e6a8ea1b6858548bd26fffd7e21dd3

6 years agoUpdate error text
Todd Kennedy [Wed, 29 Nov 2017 21:17:12 +0000 (13:17 -0800)]
Update error text

Text was updated to be slightly more readable, but, wound up breaking
the tests. Reverting the word change.

Change-Id: I299245fc05f15ff6f7979c4c0365fe885b3c2e15
Fixes: 69056838
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.PkgInstallSignatureVerificationTest#testCorrectCertUsedFromPkcs7SignedDataCertsSet
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.PkgInstallSignatureVerificationTest#testV1SchemeSignatureCertNotReencoded
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.PkgInstallSignatureVerificationTest#testV2SchemeSignatureCertNotReencoded

6 years agoMerge "Bluetooth: Pre-pend empty line for dumpsys section headers"
Treehugger Robot [Wed, 29 Nov 2017 21:09:40 +0000 (21:09 +0000)]
Merge "Bluetooth: Pre-pend empty line for dumpsys section headers"

6 years agoMerge "Fix issue with PiP callbacks not being handled" am: bdd8adb006 am: 4e11a71210
Winson Chung [Wed, 29 Nov 2017 21:05:26 +0000 (21:05 +0000)]
Merge "Fix issue with PiP callbacks not being handled" am: bdd8adb006 am: 4e11a71210
am: 3b38be2962

Change-Id: Iecad54744e7491279f886305a03050be98d5c8a4

6 years agoMerge changes Ibf8cd200,I4ea2f293,I17b545da,Ia139fd6d,I3a7e69f8
Arthur Ishiguro [Wed, 29 Nov 2017 21:00:54 +0000 (21:00 +0000)]
Merge changes Ibf8cd200,I4ea2f293,I17b545da,Ia139fd6d,I3a7e69f8

* changes:
  Handles load and unload lifecycle callbacks
  Handles hub reset at ContextHubClientManager
  Converts old API message clients to the new API format
  Implements client close and death notification
  Creates framework for new API messaging

6 years agoMerge "Don't generate irrelevant a11y events - framework"
TreeHugger Robot [Wed, 29 Nov 2017 20:56:37 +0000 (20:56 +0000)]
Merge "Don't generate irrelevant a11y events - framework"

6 years agoMerge "Fix issue with PiP callbacks not being handled" am: bdd8adb006
Winson Chung [Wed, 29 Nov 2017 20:50:00 +0000 (20:50 +0000)]
Merge "Fix issue with PiP callbacks not being handled" am: bdd8adb006
am: 4e11a71210

Change-Id: I0ad21e140aa10566f58acfa01fb7e4172edca0d3

6 years agoMerge "Merge "OBEX: Avoid pre-sending CONTINUE for SRM enabled case" am: edfb333a4d...
Android Build Merger (Role) [Wed, 29 Nov 2017 20:44:35 +0000 (20:44 +0000)]
Merge "Merge "OBEX: Avoid pre-sending CONTINUE for SRM enabled case" am: edfb333a4d am: cca3c9bb01 am: 374bde37b9"

6 years agoMerge "OBEX: Avoid pre-sending CONTINUE for SRM enabled case" am: edfb333a4d am:...
Hemant Gupta [Wed, 29 Nov 2017 20:42:42 +0000 (20:42 +0000)]
Merge "OBEX: Avoid pre-sending CONTINUE for SRM enabled case" am: edfb333a4d am: cca3c9bb01
am: 374bde37b9

Change-Id: Ic0e5e0751c84b0f1a5ea3e4752d9eefb1e6d075a

6 years agoMerge "libandroidfw: Do not clear last resource id in ResolveReference"
TreeHugger Robot [Wed, 29 Nov 2017 20:40:24 +0000 (20:40 +0000)]
Merge "libandroidfw: Do not clear last resource id in ResolveReference"

6 years agoMerge "Fix issue with PiP callbacks not being handled"
Winson Chung [Wed, 29 Nov 2017 20:34:46 +0000 (20:34 +0000)]
Merge "Fix issue with PiP callbacks not being handled"
am: bdd8adb006

Change-Id: I03c0ef06309b1b7559a973e2823598031de3b182

6 years agoMerge "OBEX: Avoid pre-sending CONTINUE for SRM enabled case" am: edfb333a4d
Hemant Gupta [Wed, 29 Nov 2017 20:29:53 +0000 (20:29 +0000)]
Merge "OBEX: Avoid pre-sending CONTINUE for SRM enabled case" am: edfb333a4d
am: cca3c9bb01

Change-Id: Ia9edce62a31b5344b5627bf0d141d72d40d6e37c

6 years agoDon't fail the tests if per-freq cpu times are not available.
Sudheer Shanka [Wed, 29 Nov 2017 20:22:42 +0000 (12:22 -0800)]
Don't fail the tests if per-freq cpu times are not available.

Test: N/A
Change-Id: I7c6c6aef7ea9ab431fb8b2c7f04b49299be73e9b

6 years agoMerge "Introduce Global.LOCATION_GLOBAL_KILL_SWITCH"
TreeHugger Robot [Wed, 29 Nov 2017 20:21:40 +0000 (20:21 +0000)]
Merge "Introduce Global.LOCATION_GLOBAL_KILL_SWITCH"

6 years agoWebView: linkify ClientCertRequest method names
Nate Fischer [Wed, 29 Nov 2017 20:18:54 +0000 (12:18 -0800)]
WebView: linkify ClientCertRequest method names

No change to behavior, only docs changes. No change to wording.

This linkifies ClientCertRequest method names in the docs for
WebViewClient#onReceivedClientCertRequest.

Test: make docs (looks good, no errors)
Change-Id: I1de855e8cdf91b3aace3a188aafaa9ac9f90ed2a

6 years agoMerge "Fix issue with PiP callbacks not being handled"
Winson Chung [Wed, 29 Nov 2017 20:18:45 +0000 (20:18 +0000)]
Merge "Fix issue with PiP callbacks not being handled"

6 years agoMerge "OBEX: Avoid pre-sending CONTINUE for SRM enabled case"
Hemant Gupta [Wed, 29 Nov 2017 20:17:31 +0000 (20:17 +0000)]
Merge "OBEX: Avoid pre-sending CONTINUE for SRM enabled case"
am: edfb333a4d

Change-Id: I28de2826209a16b763d64a1b31381f748067789c

6 years agoMeasure the text before doing line break
Seigo Nonaka [Wed, 22 Nov 2017 20:07:16 +0000 (12:07 -0800)]
Measure the text before doing line break

Bug: 65024629
Test: N/A
Change-Id: Ifa7be17b87687f95f045de1409fb554991269ebc

6 years agoMerge "OBEX: Avoid pre-sending CONTINUE for SRM enabled case"
Treehugger Robot [Wed, 29 Nov 2017 20:03:12 +0000 (20:03 +0000)]
Merge "OBEX: Avoid pre-sending CONTINUE for SRM enabled case"

6 years agoRevert "Thread-safe metric producers."
Yao Chen [Wed, 29 Nov 2017 20:02:07 +0000 (20:02 +0000)]
Revert "Thread-safe metric producers."

This reverts commit 8de6939c494da838f6dbbda0631f66425dbbd25b.

Change-Id: Ieae841bfc5339b569f0fca909a6066de72806617

6 years agoMerge "Fix ConcurrentModificationException in DashboardCategory."
TreeHugger Robot [Wed, 29 Nov 2017 19:57:47 +0000 (19:57 +0000)]
Merge "Fix ConcurrentModificationException in DashboardCategory."

6 years agoTextClassifier cleanup #1
Abodunrinwa Toki [Thu, 23 Nov 2017 12:22:45 +0000 (12:22 +0000)]
TextClassifier cleanup #1

 - Introduces TextClassifier methods that do not take options
 - Adds warning to TextClassifier implementations not to implement
   or call certain default methods. Ideally, only one of the
   overloaded interface methods (the one that takes Options) needs
   to be implemented
 - Changes TextLinks.Options to a mutable type
 - Updates tests

 TODO: Introduce a TextClassification.Builder.setDefaultAction(...) and
 change addAction(...) to addExtraAction(...).
 TODO: Cts test to validate input params.

Bug: 68846316
Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest
Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest
Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest
Change-Id: I9a12935388e16a9b57567a71c97afaee63405183

6 years agoVerify that b/68859852 won't happen again
Yuqian Li [Wed, 29 Nov 2017 18:38:40 +0000 (13:38 -0500)]
Verify that b/68859852 won't happen again

Bug: 68859852

Test: unit tests with and without the fix on sailfish-eng

Change-Id: I9e2cdd622b7447ea3092fd66790431d94c40e13f

6 years agoMerge "Frameworks: Clean up SharedPreferencesImpl" am: 572f46a3ef am: 70da38960c
Andreas Gampe [Wed, 29 Nov 2017 19:50:54 +0000 (19:50 +0000)]
Merge "Frameworks: Clean up SharedPreferencesImpl" am: 572f46a3ef am: 70da38960c
am: 9a612c734e

Change-Id: Iaa9ac8d03ac0f235bbff7bf4b17ef7de6b90c24a

6 years agoMerge "Frameworks: Clean up SharedPreferencesImpl" am: 572f46a3ef
Andreas Gampe [Wed, 29 Nov 2017 19:38:11 +0000 (19:38 +0000)]
Merge "Frameworks: Clean up SharedPreferencesImpl" am: 572f46a3ef
am: 70da38960c

Change-Id: Ia4c24c8cd6fbeb58a90d56319558fc3c78474c2b

6 years agoMerge "Enable Recents activity in LockTask mode."
Charles He [Wed, 29 Nov 2017 19:29:50 +0000 (19:29 +0000)]
Merge "Enable Recents activity in LockTask mode."

6 years agoMerge "Frameworks: Clean up SharedPreferencesImpl"
Andreas Gampe [Wed, 29 Nov 2017 19:25:13 +0000 (19:25 +0000)]
Merge "Frameworks: Clean up SharedPreferencesImpl"
am: 572f46a3ef

Change-Id: I7b922f795283cefabf661e999e5a9897889fa287

6 years agoMerge "Frameworks: Clean up SharedPreferencesImpl"
Treehugger Robot [Wed, 29 Nov 2017 19:11:46 +0000 (19:11 +0000)]
Merge "Frameworks: Clean up SharedPreferencesImpl"

6 years agoBluetooth: Pre-pend empty line for dumpsys section headers
Andre Eisenbach [Mon, 10 Apr 2017 20:49:13 +0000 (13:49 -0700)]
Bluetooth: Pre-pend empty line for dumpsys section headers

Test: manual
Change-Id: I2daa5c985e5504606edd9ff558bd5b92af7a7240

6 years agoMerge "Define colorBackground for Theme.DeviceDefault.Settings."
TreeHugger Robot [Wed, 29 Nov 2017 18:59:42 +0000 (18:59 +0000)]
Merge "Define colorBackground for Theme.DeviceDefault.Settings."

6 years agoTemporarily disable the netpolicy unit tests.
Sudheer Shanka [Wed, 29 Nov 2017 18:53:12 +0000 (10:53 -0800)]
Temporarily disable the netpolicy unit tests.

Bug: 69916639
Test: N/A
Change-Id: Ia3435ac3ced7e48cccec211a9f9ae4ef2e62de46

6 years agoMerge "Track some event history and include it in netpolicy dump."
Sudheer Shanka [Wed, 29 Nov 2017 18:35:39 +0000 (18:35 +0000)]
Merge "Track some event history and include it in netpolicy dump."

6 years agoHandles load and unload lifecycle callbacks
Arthur Ishiguro [Mon, 20 Nov 2017 23:07:14 +0000 (15:07 -0800)]
Handles load and unload lifecycle callbacks

Bug: 67734082
Test: Create test app to load/unload a nanoapp after client
registration, verify listener callbacks are invoked
Change-Id: Ibf8cd200307ace0b3dcc9431166f61fc2929cff4

6 years agoHandles hub reset at ContextHubClientManager
Arthur Ishiguro [Fri, 17 Nov 2017 23:49:07 +0000 (15:49 -0800)]
Handles hub reset at ContextHubClientManager

Bug: 67734082
Test: make and flash device, do adb shell pkill chre and verify
onMessageReceipt for reset is triggered by service (by reading logs)
Change-Id: I4ea2f2930763dd8182e4e062cdb9312c3e23855e

6 years agoConverts old API message clients to the new API format
Arthur Ishiguro [Fri, 17 Nov 2017 22:55:32 +0000 (14:55 -0800)]
Converts old API message clients to the new API format

Bug: 67734082
Test: make from root and flash, verify CHQTS pass on walleye-userdebug
Change-Id: I17b545da358258b97b2f94060feaa7a13c9aee67

6 years agoImplements client close and death notification
Arthur Ishiguro [Thu, 16 Nov 2017 19:54:42 +0000 (11:54 -0800)]
Implements client close and death notification

Bug: 67734082
Test: make from root
Change-Id: Ia139fd6d4bb04c569a9ee3672e21e2700daa40a9

6 years agoCreates framework for new API messaging
Arthur Ishiguro [Tue, 14 Nov 2017 22:59:08 +0000 (14:59 -0800)]
Creates framework for new API messaging

- Creates IContextHubClientCallback as a proxy to invoke
messaging/life-cycle callbacks for the client.
- Creates IContextHubClient as a proxy to send messages at the client
side.
- Creates a ContextHubClientManager at the service to manage
clients and messaging/lifecycle event callbacks.
- Implements generation of clients at ContextHubManager and sending
messages through ContextHubClient

Bug: 67734082
Test: make from root
Change-Id: I3a7e69f89cd70ea59160a651dcdb729e18027e9f

6 years agolibandroidfw: Do not clear last resource id in ResolveReference
Adam Lesinski [Wed, 29 Nov 2017 17:59:37 +0000 (09:59 -0800)]
libandroidfw: Do not clear last resource id in ResolveReference

If the value passed to AssetManager::ResolveReference is not a
reference, the caller may be expecting for the last reference to
not be cleared, as a more appropriate value should most likely be
retained.

This was causing an issue when a caller was manually resolving
references and expecting the last resource ID resolved to be propagated
across calls to ResolveReference.

Test: make libandroidfw_tests
Change-Id: I5b7f586e2cd541059023eaa9ba23e324a21a9a1e

6 years agoOBEX: Avoid pre-sending CONTINUE for SRM enabled case
Hemant Gupta [Fri, 28 Aug 2015 09:43:47 +0000 (15:13 +0530)]
OBEX: Avoid pre-sending CONTINUE for SRM enabled case

Remote Device: LG-G2 as OPP client

Use Case:
1) Pair DUT with Remote.
2) Now push the file from Remote.
3) Ignore the incoming request from Remote

Failure:
RX_Notification lasts only for 10 seconds.

Fix:
OBEX lib handles a PUT Request case with NO BODY header on server
session with CONTINUE  response until body is found in request
packet from remote. However, this needs to be avoided if SRM is
enabled from remote to get proceed transfer authorization
from Application layer.

Test: Send connection request from remote device and verified that
connection is sustainable for 30 seconds until timeout.

Bug: 37886388
Change-Id: I1b5bfd65f9023d77850a34bcb08cfbb435e9a474

6 years agoFix text encoding in some macrobench tests
Stan Iliev [Wed, 29 Nov 2017 18:15:45 +0000 (13:15 -0500)]
Fix text encoding in some macrobench tests

Fix crash in macrobench tests, caused by incorrect text encoding.

Test: Ran macrobench tests
Change-Id: I3522004f70c7037299fb92157ac8633ebb170131

6 years agoUse system dialog corner radius
Lucas Dupin [Wed, 29 Nov 2017 16:21:04 +0000 (11:21 -0500)]
Use system dialog corner radius

Bug: 64122537
Test: am start -n com.android.companiondevicemanager/.DeviceChooserActivity
Change-Id: I4a2c9b0659ba8e2f51b9a53b23ca75868e849a10

6 years agoMerge "Add route for rotation suggestions from StatusBar to CommandQueue"
Mike Digman [Wed, 29 Nov 2017 18:10:06 +0000 (18:10 +0000)]
Merge "Add route for rotation suggestions from StatusBar to CommandQueue"

6 years agoMerge "Adding GNSS Model & Version String"
TreeHugger Robot [Wed, 29 Nov 2017 17:53:02 +0000 (17:53 +0000)]
Merge "Adding GNSS Model & Version String"

6 years agoIntroduce Global.LOCATION_GLOBAL_KILL_SWITCH
Makoto Onuki [Wed, 29 Nov 2017 00:31:47 +0000 (16:31 -0800)]
Introduce Global.LOCATION_GLOBAL_KILL_SWITCH

- When it's set to "1", LOCATION_PROVIDERS_ALLOWED will return "".

- When it's updated, the provider will send the changed notification
for LOCATION_PROVIDERS_ALLOWED for all running users.

Bug: 68769804
Test: Manual test with the settings command
Test: atest $ANDROID_BUILD_TOP/frameworks/base/core/tests/coretests/src/android/provider/SettingsBackupTest.java
Change-Id: Ie14ee696788b4152f7ae442da06b0bfa8034db52

6 years agoFix horizontal position of tooltip in a Dialog
Vladislav Kaznacheev [Wed, 29 Nov 2017 17:30:11 +0000 (09:30 -0800)]
Fix horizontal position of tooltip in a Dialog

When calculating the horizontal offset, use the top level view's width
instead of getWindowVisibleDisplayFrame (which is misleading for Dialog
windows).

Bug: 69911773
Test: manual
Change-Id: I040917d5beb123cc137da5a0c926a45a12e66234

6 years agoMerge "Always draw render node with a non-empty projected display list"
TreeHugger Robot [Wed, 29 Nov 2017 17:06:50 +0000 (17:06 +0000)]
Merge "Always draw render node with a non-empty projected display list"

6 years agoEnable Recents activity in LockTask mode.
Charles He [Wed, 1 Nov 2017 10:05:51 +0000 (10:05 +0000)]
Enable Recents activity in LockTask mode.

In P, we introduce DevicePolicyManager.setLockTaskFeatures() API, which
lets the DPC enable the SystemUI Recents activity in LockTask mode. To
do this, we

1) Allow recents activity in LockTaskController (otherwise it'll be
blocked from starting as it's not whitelisted)

2) Clear the RecentTasks list, so that only whitelisted tasks remain in
the list (and therefore the recents UI)

Note that 2) is done even when Recents isn't enabled through the
setLockTaskFeatures() API.

Bug: 68238765
Test: runtest systemui
Test: bit FrameworksServicesTests:com.android.server.am.LockTaskControllerTest
Test: CTS verifier > CTS verifier > Managed provisioning > Device owner tests
      > LockTask UI
Change-Id: I63c524c4d9a68b87a63cecf1642ecebd94aa2bb0

6 years agoMerge "Add a settings entry to enable UTC to be selected"
Neil Fuller [Wed, 29 Nov 2017 16:42:41 +0000 (16:42 +0000)]
Merge "Add a settings entry to enable UTC to be selected"

6 years agoMerge "Add ability to customize button corner radius."
TreeHugger Robot [Wed, 29 Nov 2017 16:14:50 +0000 (16:14 +0000)]
Merge "Add ability to customize button corner radius."

6 years agoMerge "Don't keep sensor listener while screen is off."
Kenny Guy [Wed, 29 Nov 2017 16:13:49 +0000 (16:13 +0000)]
Merge "Don't keep sensor listener while screen is off."

6 years agoAlways draw render node with a non-empty projected display list
Yuqian Li [Wed, 29 Nov 2017 14:53:06 +0000 (09:53 -0500)]
Always draw render node with a non-empty projected display list

(cherry picked from commit f701ad3b4b43ea3c26d5881652a840120fca222d)

Test: tested lockscreen ripple on taimen-eng

Bug: 68859852
Change-Id: I234bba143dd4bbd5e6895dd2534eafb012ea1f16

6 years agoMake face unlock icon use correct theme attr
Lucas Dupin [Tue, 28 Nov 2017 18:51:37 +0000 (13:51 -0500)]
Make face unlock icon use correct theme attr

Platform icon is always white and differs from other
resources that we're using on the lock screen.

Change-Id: Iba50c5a52275b43e098641af5a00451b6817af81
Fixes: 69663492
Test: Set wallpaper to light/dark, unlock using face unlock

6 years agoAdd ability to customize button corner radius.
Andrew Sapperstein [Thu, 16 Nov 2017 02:06:51 +0000 (18:06 -0800)]
Add ability to customize button corner radius.

Creates a new buttonCornerRadius public attribute to control
the rounded corner radius for buttons at the theme level.

Updates default button backgrounds to use new value and updates
themes to set the corner radius to existing value of 2dp.

Also adds a configuration hook for a device to change the value
for DeviceDefault-based themes.

Bug: 64122537
Bug: 69314526
Bug: 69367197
Test: ag/3238215
Change-Id: I00be0c53b99292e1728ecdf40d4c876e283e65da

6 years agoDon't keep sensor listener while screen is off.
Kenny Guy [Wed, 29 Nov 2017 12:12:06 +0000 (12:12 +0000)]
Don't keep sensor listener while screen is off.

Register / unregister on screen off / on intents.

Bug: 69564178
Test: runtest -c com.android.server.display.BrightnessTrackerTest frameworks-service
Test: manual, turn on/off screen and check adb shell dumpsys sensorservice
Change-Id: I7bfb6b35108887baf40d9134d16d13a9f5aa839f

6 years agoMerge "Working around a crash when transforming groups"
Selim Cinek [Wed, 29 Nov 2017 11:51:48 +0000 (11:51 +0000)]
Merge "Working around a crash when transforming groups"

6 years agoMerge changes I2d517a2b,Ia59e2d97,Id98763d8,Ie3f57dd4,Ib5ddee5c, ...
TreeHugger Robot [Wed, 29 Nov 2017 11:31:55 +0000 (11:31 +0000)]
Merge changes I2d517a2b,Ia59e2d97,Id98763d8,Ie3f57dd4,Ib5ddee5c, ...

* changes:
  Fixed a bug where messages could be invisible
  Implemented rounded clipping for groups
  Added padding between notifications and qs on lockscreen
  Insetting notifications on the lock screen
  Increased the notification paddings
  Implemented animations for rounding
  Refactored PropertyAnimator for easier usability
  Implemented rounded corners for notifications

6 years agoMerge "Fix user color overlay is not applied"
TreeHugger Robot [Wed, 29 Nov 2017 11:13:15 +0000 (11:13 +0000)]
Merge "Fix user color overlay is not applied"

6 years agoMerge "Added new android.test.base targets"
Paul Duffin [Wed, 29 Nov 2017 10:24:47 +0000 (10:24 +0000)]
Merge "Added new android.test.base targets"

6 years agoMerge "Fixed an issue where a shelf icon could be white"
Selim Cinek [Wed, 29 Nov 2017 10:06:56 +0000 (10:06 +0000)]
Merge "Fixed an issue where a shelf icon could be white"

6 years agoMerge "Update adb command to remove all configs from statsd"
TreeHugger Robot [Wed, 29 Nov 2017 09:04:40 +0000 (09:04 +0000)]
Merge "Update adb command to remove all configs from statsd"

6 years agoMerge "Decouple HeadsUpManager and ScrollContainer from remote input classes"
TreeHugger Robot [Wed, 29 Nov 2017 07:28:41 +0000 (07:28 +0000)]
Merge "Decouple HeadsUpManager and ScrollContainer from remote input classes"