summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-04-17Merge cherrypicks of [3912569, 3913632, 3913633, 3913557, 3913471, 3913509, ↵android-8.1.0_r29oreo-m4-s4-releaseandroid-build-team Robot
3913558, 3913541, 3913542, 3913472, 3913473, 3913735, 3913736, 3913737, 3913738, 3913739, 3913510, 3913511, 3913512, 3913513, 3913514, 3913559, 3913560, 3913755, 3913795, 3912643, 3913543, 3912570, 3913057] into sparse-4669640-L32000000164199687 Change-Id: I87329962f347aa7f9352d0ed5d7da186a1f311d5
2018-04-17Fixed Security Vulnerability of DcParamObjectPengquan Meng
The writeToParcel and readFromParcel is not symmetry, fixed it. Test: no test Bug: 70721937 Change-Id: I01f6f6b2ab778ee8b638d9b69fe0a6b9aa7ee395 (cherry picked from commit 8c55a70728fdb0a7b0585fac08629b0137dca51e)
2018-04-17Update internal ViewPager's SavedState to match Support Library versionAlan Viverette
Merged-In: Ic4569b21d8a26a62bba91742b442f0c3ea8bcc9e Change-Id: I17d085be9ce1a139e75264f1e715df7f565cd41b Fixes: 71992105 Test: manual (cherry picked from commit 187964aca12115c7ab66f59d1ebb95e4f4130ac6)
2018-04-17[DO NOT MERGE] Copy PermissionChecker from support lib and use in ↵Eugene Susla
RcognitionService Fixes: 73511076, 73311729 Test: presubmit Change-Id: Ie98f67ffee4744050ac85d8b229370a16a76a194 (cherry picked from commit 726b51a26e9a54b7352aad90ed15edccc44dd60d) (cherry picked from commit 5a28e533fe8865ed371b5c0fd909a4ec89f63633)
2018-04-17[DO NOT MERGE] Add permission check to setAllowOnlyVpnForUidsRubin Xu
Bug: 63000005 Test: runtest frameworks-net -c com.android.server.connectivity.VpnTest Test: cts-tradefed run cts-dev -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.MixedDeviceOwnerTest#testAlwaysOnVpnLockDown Merged-In: Ia1a82ee73d8617f3124032986fe6c09c14bf7752 Change-Id: Ia1a82ee73d8617f3124032986fe6c09c14bf7752 (cherry picked from commit f915e04d5010c4dfffad263fa70c1e412e856314)
2018-04-17Verify last array's length in readFromParcelFyodor Kupolov
Length of the last array in readFromParcel should be the same as value of mNextIndex. Test: PoC app in the bug Bug: 73252178 Change-Id: I69f935949e945c3a036b19b4f88684d906079ea5 (cherry picked from commit 3b8bc2e45048527d7682b24b96957c34433da382)
2018-03-21Snap for 4657601 from 65ff5247cb85e2bd1fb7f65228542fe8266f6d9e to oc-m4-releaseandroid-build-team Robot
Change-Id: I549a4ec71b46c202ed9209ddea8b147f91b8f294
2018-03-15Snap for 4603989 from 833770d26f7813768e195d22ca9c8e41dc83448a to oc-m2-releaseandroid-8.1.0_r20oreo-m2-releaseandroid-build-team Robot
Change-Id: Id2935bbe1630247131e87ed78cc70a7e3aaa0f5b
2018-02-26Merge cherrypicks of [3661626, 3661980, 3662429, 3661545, 3661546, 3661579, ↵android-8.1.0_r23oreo-m4-s1-releaseandroid-build-team Robot
3661580, 3662430, 3661547, 3661548, 3661549, 3661550, 3662578, 3662579, 3662580, 3662581, 3662582, 3662583, 3661597, 3661598, 3661551, 3661552, 3661553, 3661554, 3661555, 3662596, 3662597, 3662598, 3662599, 3662584, 3662585, 3662586, 3662616, 3662617, 3662618] into oc-m4-release Change-Id: I7c9c46ea767f4332fbcb7bca50eabaa446acacdc
2018-02-26[RTT] ParcelableRttResults parcel code fixEtan Cohen
ParcelableRttResults was unparceled incorrectly. Bug: 70398564 Test: exploit provided in bug no longer works Change-Id: Ifd6de547e9861bbebc399b43d0cc2899a8160813 (cherry picked from commit e1e5a2409c8bef2481e68d9329f87bb8037afa45)
2018-02-26Fix VerifyCredentialResponse parcelling codeRubin Xu
There was an asymmetry between parcelling and unparcelling of VerifyCredentialResponse that could lead to type confusion if packed with other objects in a Parcel. Test: none Bug: 71714464 Change-Id: Icff68879e249422ccca49f2bb7db85c35b4cb353 (cherry picked from commit 54813e988884f0d604d5358569f10feda8622f46)
2018-02-26Adjust URI host parsing to stop on \ character.Adam Vartanian
The WHATWG URL parsing algorithm [1] used by browsers says that for "special" URL schemes (which is basically all commonly-used hierarchical schemes, including http, https, ftp, and file), the host portion ends if a \ character is seen, whereas this class previously continued to consider characters part of the hostname. This meant that a malicious URL could be seen as having a "safe" host when viewed by an app but navigate to a different host when passed to a browser. [1] https://url.spec.whatwg.org/#host-state Bug: 71360761 Test: vogar frameworks/base/core/tests/coretests/src/android/net/UriTest.java (on NYC branch) Test: cts -m CtsNetTestCases (on NYC branch) Change-Id: Id53f7054d1be8d59bbcc7e219159e59a2425106e (cherry picked from commit fa3afbd0e7a9a0d8fc8c55ceefdb4ddf9d0115af)
2018-02-26Check for null-terminator in ResStringPool::string8AtAdam Lesinski
All other stringAt methods check for null termination. Be consistent so that upper levels don't end up with huge corrupt strings. Bug: 62537081 Test: none Change-Id: I17bdfb0c1e34507b66c6cad651bbdb12c5d4c417 (cherry picked from commit 3d35a0ea307693a97583a61973e729a5e7db2687) (cherry picked from commit 97f8cb01149b35b1832c7f9efe85ff19edf1083e) (cherry picked from commit 5ec65ae909a85d13d03c030be357c8c14a50d306)
2018-02-26OutputConfiguration: Fix missing mIsShared in parcel readShuzhen Wang
Test: Camera CTS Bug: 69683251 Merged-In: I7ea4aa8ed4baa5a5e7d25a0073361d827ba86c13 Change-Id: I7ea4aa8ed4baa5a5e7d25a0073361d827ba86c13 (cherry picked from commit 4304a02ac990c1af5fb8f479bdd2b04c8af4fddb)
2018-02-26Fix bad type for txPower in PeriodicAdvertisingReport serializationJakub Pawlowski
Bug: 69634768 Test: compilation Change-Id: Icedfbaf1ba933637e935ada0fd98aea42c73f2b2 Merged-In: Icedfbaf1ba933637e935ada0fd98aea42c73f2b2 (cherry picked from commit 5332988c62e2f2ededb29ac3bfc4774551fe956f)
2018-02-26Snap for 4565141 from 68505b3110160bb83b68ef0f61663446593d9c06 to oc-m4-releaseandroid-build-team Robot
Change-Id: Ibf135d197dba570c2fd622f5942d05e5b1ec0da7
2018-02-09Merge cherrypicks of [3594034, 3594272, 3594273, 3594274, 3594275, 3594347, ↵android-wear-8.1.0_r1android-8.1.0_r19oreo-mr1-wear-releaseoreo-mr1-releaseoreo-mr1-cuttlefish-testingandroid-build-team Robot
3594035, 3592471] into oc-mr1-release Change-Id: Id0214b5206fd01da1829b1475cef34ecac46f4e2
2018-02-09fix isActiveNetworkMetered with VPNsEric Enslen
Bug: 72871435 Test: flashed and verified, also ran runtest framework-net Change-Id: I69319a7db269489053426bb2d41574180be2d43d (cherry picked from commit c81ef199549c552003e78a2b9383d5d38aaed8d0)
2018-02-09Handle onBindingDied in notification managerRyan Lothian
On Android, if the process containing the service being bound to crashes before the bind succeeds, the app doing the binding won't get a success or failure callback. When that happens in this code, this leaves notif. manager thinking that a binding is in progress, so it never attempts to rebind until the device is rebooted. Bug: 69064494 Test: manual, crashed listener on proc start, verified not unbound forever Change-Id: Id2082744208e21a709d9453365f282449a2e9407 (cherry picked from commit 4a86a51b672617b02994fc812e4f96342daf424e) (cherry picked from commit 1936097afc3188ed5f2bb4e7211bb404364eeb38)
2018-02-09Relax Instant Apps Settings whitelist enforcementChad Brubaker
The strict whitelist of settings for Instant Apps is leading to too much unintended breakage, remove the enforcement until better infrastructure can be added to make sure settings that should be whitelisted are. Bug: 71009655 Test: Coming in a follow up (cherry picked from commit b6108d621002d4de708ae526e7c2bc95dabef080) Change-Id: Iaa1d71331407cee86c10105c1e5668ffd0c925a1 (cherry picked from commit 26ae1d359e02fe5871177c9adfc90ca571fd0f86)
2018-02-08Merge cherrypicks of [3581037, 3581038, 3580473, 3580624, 3580656, 3580657, ↵android-build-team Robot
3580658, 3580382, 3580474, 3580475, 3581039, 3581040, 3580476, 3580206, 3581527, 3580955, 3580956, 3580957, 3580958, 3580959, 3580960, 3580961, 3580962, 3580963, 3580964, 3580965, 3580966, 3581567, 3581568, 3581569, 3581570, 3581571, 3580625, 3580626, 3581587, 3581513, 3581514, 3581515, 3580477, 3581588, 3580659, 3580660, 3580383, 3580384, 3580478, 3580719, 3580479, 3580480, 3581385, 3581528, 3581041, 3581042, 3581043, 3581044, 3581045, 3581046, 3581607, 3580385, 3580481, 3580482, 3580483, 3580661, 3580662, 3580663, 3580664, 3580665, 3580484, 3580485, 3581608, 3581609, 3581610, 3581611, 3581612, 3581589, 3581613, 3580486, 3581519, 3581627, 3581628, 3581529, 3581530, 3581531, 3581629, 3581630] into oc-mr1-release Change-Id: I107552246742f7f284efd431d810a44d97a223b1
2018-02-08[RTT] ParcelableRttResults parcel code fixEtan Cohen
ParcelableRttResults was unparceled incorrectly. Bug: 70398564 Test: exploit provided in bug no longer works Change-Id: Ifd6de547e9861bbebc399b43d0cc2899a8160813 (cherry picked from commit e1e5a2409c8bef2481e68d9329f87bb8037afa45)
2018-02-08Fix VerifyCredentialResponse parcelling codeRubin Xu
There was an asymmetry between parcelling and unparcelling of VerifyCredentialResponse that could lead to type confusion if packed with other objects in a Parcel. Test: none Bug: 71714464 Change-Id: Icff68879e249422ccca49f2bb7db85c35b4cb353 (cherry picked from commit 54813e988884f0d604d5358569f10feda8622f46)
2018-02-08Update diskstats to break out code & data.Daniel Nishi
This updates both the text-based diskstats and the proto-based diskstats to both have both an aggregated and line-itemed view of app sizes. Formerly, the code and data sizes were rolled up into the same category and now they are separated. Bug: 63908720 Test: FrameworksServicesTest passes Merged-In: I1434327ffde6ad1f31243218c5201a80f9725a63 (cherry picked from commit b6cc838142d2390eaec99670bb6caf6bee0ec96f) (cherry picked from commit 41a5ae86f1d51204995af617ef3d1f31b178a618) Change-Id: I0d21ecc0ded5d715e3b5a478e78de2ba1f7e9ec2
2018-02-08Adjust URI host parsing to stop on \ character.Adam Vartanian
The WHATWG URL parsing algorithm [1] used by browsers says that for "special" URL schemes (which is basically all commonly-used hierarchical schemes, including http, https, ftp, and file), the host portion ends if a \ character is seen, whereas this class previously continued to consider characters part of the hostname. This meant that a malicious URL could be seen as having a "safe" host when viewed by an app but navigate to a different host when passed to a browser. [1] https://url.spec.whatwg.org/#host-state Bug: 71360761 Test: vogar frameworks/base/core/tests/coretests/src/android/net/UriTest.java (on NYC branch) Test: cts -m CtsNetTestCases (on NYC branch) Change-Id: Id53f7054d1be8d59bbcc7e219159e59a2425106e (cherry picked from commit fa3afbd0e7a9a0d8fc8c55ceefdb4ddf9d0115af)
2018-02-08Check for null-terminator in ResStringPool::string8AtAdam Lesinski
All other stringAt methods check for null termination. Be consistent so that upper levels don't end up with huge corrupt strings. Bug: 62537081 Test: none Change-Id: I17bdfb0c1e34507b66c6cad651bbdb12c5d4c417 (cherry picked from commit 3d35a0ea307693a97583a61973e729a5e7db2687) (cherry picked from commit 97f8cb01149b35b1832c7f9efe85ff19edf1083e) (cherry picked from commit 5ec65ae909a85d13d03c030be357c8c14a50d306)
2018-02-08OutputConfiguration: Fix missing mIsShared in parcel readShuzhen Wang
Test: Camera CTS Bug: 69683251 Merged-In: I7ea4aa8ed4baa5a5e7d25a0073361d827ba86c13 Change-Id: I7ea4aa8ed4baa5a5e7d25a0073361d827ba86c13 (cherry picked from commit 4304a02ac990c1af5fb8f479bdd2b04c8af4fddb)
2018-02-08Fix bad type for txPower in PeriodicAdvertisingReport serializationJakub Pawlowski
Bug: 69634768 Test: compilation Change-Id: Icedfbaf1ba933637e935ada0fd98aea42c73f2b2 Merged-In: Icedfbaf1ba933637e935ada0fd98aea42c73f2b2 (cherry picked from commit 5332988c62e2f2ededb29ac3bfc4774551fe956f)
2018-02-08Use correct user id for permission check for instant foreground serviceSvet Ganov
Test: cts-tradefed run cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.EphemeralTest#testStartForegrondService bug: 68275646 Bug: 71366502 Change-Id: I196522c49ae8a7e0ec07bf631f04bae51e96db5b cherry pick from: https://android-review.googlesource.com/c/platform/frameworks/base/+/559340 (cherry picked from commit e32c238ce76151dd6221e6762f841c8f721c45f7) Change-Id: Idfeae038d42b9dee9f6f57203f2bdb0764f51877 (cherry picked from commit d967610fb865ce2ac5f8c379a13e21feee98fbe0)
2018-02-08Metrics wifi.proto for connected wifi scoreMichael Plass
(cherry picked from commit bb367b689605d0ca3641984b4d59bbe13e6861df) Bug: 67429363 Bug: 71708302 Test: Wifi unit tests Change-Id: I2993a02e7b3199c2b50dc2ddb7704fc5b6364025 Merged-In: I315613b8ea3aa1d02810ae376c76083d80865d31 (cherry picked from commit 1b8fe6ef73cdeff9ad7faf6bf695657c9b8df7ff)
2018-02-08Fixed AUTOFILL_UI_LATENCY metric.Felipe Leme
This metric was using the RESERVED_FOR_LOGBUILDER_COUNTER and hence was not being picked up. Bug: 71863561 Fixes: 72175011 Test: adb shell logcat -b events | grep sysui | grep 1136 Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases Change-Id: I34f701ff5336a413477fd14172d16d8d1e5403ad (cherry picked from commit b659adb3f3d13049ca1c08fcec2d419ffd7a386b)
2018-02-08Add metric for anomaly detectionjackqdyulei
ACTION_APP_STOP_AND_BACKGROUND_CHECK FIELD_ANOMALY_ACTION_TYPE ANOMALY_TYPE_WAKELOCK ANOMALY_TYPE_WAKEUP_ALARM ANOMALY_TYPE_UNOPTIMIZED_BT Bug: 68215016 Test: Build Merged-In: I66f0465a3b89713060948af31c370e9ac894e0ff Change-Id: I66f0465a3b89713060948af31c370e9ac894e0ff (cherry picked from commit 7d36b386902117eaec68679499342e35fa7743e9)
2018-02-08Add support for notification of LTE to WIFI handover for video calls.Tyler Gunn
Test: Manual, added new unit tests. Bug: 65490850 Change-Id: I7afbd2d1e783aae425ac3fe640a6e92d1600b9a5 (cherry picked from commit 5ce0d3a6b590c59855f9a8091e62d7e8361d0dd8)
2018-02-08Turn default gradient into solid blackLucas Dupin
Test: visual Bug: 66957450 Change-Id: I6a34a35912e4dd4594565f88636ce89689d26f2f (cherry picked from commit e7476addecb4fec6abd08cfb7aa27c473ce5c1f0) (cherry picked from commit 12dad0c4fc5fc8f0988dca0fffd2d26f2cb04195)
2018-02-08[PASSPOINT] Add metrics to determine deployment/avail of PasspointEtan Cohen
Add metrics which will help determine Passpoint availability in the wild. The metrics measure the percentage of time a Passpoint network is visible to user - by collecting historgrams of observations per scan result. (cherry-pick of commit c462a7a4c15ca7c35002c84de4ff115be12b28a1) Bug: 66951771 Test: unit test Merged-In: I8c91f490a533f90a4f0630e1cb461e1d2643358b Change-Id: I08367ab2c45900c76b65cea980a9b4a335b3dcdb (cherry picked from commit 8c88b5e2e17fdee5eb192c4bb388472878b79811)
2018-02-08Add assisted dialing properties to the framework.Eric Erfanian
These properties allow the feature to be propogated from the outgoing call broadcast, to the connection, to the call, and finally to the call log as a feature. Test: no existing unit tests found. could use some pointers Bug: 35963245 Merged-In: I84343fb0cda16514c01997fd71d1e819b5b7eebb Change-Id: I086e761ada9a57dca61c3a412561ee54255d6260 (cherry picked from commit 9765e89e1ed533d844583bae5de0026452bf9e70)
2018-02-08[AWARE] Make PeerHandle comparable/hashableEtan Cohen
Add public equals()/hash() methods to PeerHandle. Allows the handle to be used across multiple calls/sessions. (partial cherry-pick of commit 3d33d7495ffbf12966299df8359d71a6f0926e7a) (cherry-pick of commit 0d49c0dda8bfef0267d81e8490e4882e51a15af4) Bug: 68931709 Test: builds, unit test, integration test Change-Id: I87df50edb948a7afc90e496165013235ddca1e48 Merged-In: Idc59269d4275181ed6d9a793213c681dc4e98134 Merged-In: I6848acda9bfef306b8feaae6987ff18f7bc2e6ec (cherry picked from commit 4454bda052aea4087880674bb0e0f81ce2647009)
2018-02-08Fix issues with TRON app transition loggingJorim Jaggi
There was a case where a app launch started activity A. A step in the UI finished A and started B in the same task. Next time A was started it immediately finished itself, putting B at the top of the task. Now, this launch was considered aborted because A was finished during launching, making it invisible. We fix this by modifying the logic to only abort the launch if the full task is not visible anymore after an activity has been set to invisible. There is another case where an app launches A, finishes A, and then launches B. In this case the home gets visible in between so we don't consider this an app launch anymore, and correctly cancel the logging. However it's still useful to know that this is happening to expose it to the developer, so we log any cancel events, no matter where they are coming from. Test: Launch Snapchat, click Sign Up, click home, relaunch Snapchat from home Test: Open slow app and press home quickly to test cancel. Change-Id: I211636c97fd6785adb3fe443a8ffa1ae766946a4 Merged-In: I211636c97fd6785adb3fe443a8ffa1ae766946a4 Fixes: 67094673 (cherry picked from commit a9d408214cd73709ff25f235cf6817eaaf7a23d6)
2018-02-03Merge cherrypicks of [3551537, 3552808, 3552809, 3551513, 3551514, 3554326, ↵android-build-team Robot
3555207, 3555208, 3555209, 3555210, 3552110, 3555154, 3555155] into oc-m2-release Change-Id: I70e258cf97c5073fad0c58c4d801ff2ec8076728
2018-02-03Adjust URI host parsing to stop on \ character.Adam Vartanian
The WHATWG URL parsing algorithm [1] used by browsers says that for "special" URL schemes (which is basically all commonly-used hierarchical schemes, including http, https, ftp, and file), the host portion ends if a \ character is seen, whereas this class previously continued to consider characters part of the hostname. This meant that a malicious URL could be seen as having a "safe" host when viewed by an app but navigate to a different host when passed to a browser. [1] https://url.spec.whatwg.org/#host-state Bug: 71360761 Test: vogar frameworks/base/core/tests/coretests/src/android/net/UriTest.java (on NYC branch) Test: cts -m CtsNetTestCases (on NYC branch) Change-Id: Id53f7054d1be8d59bbcc7e219159e59a2425106e (cherry picked from commit fa3afbd0e7a9a0d8fc8c55ceefdb4ddf9d0115af)
2018-02-03Check for null-terminator in ResStringPool::string8AtAdam Lesinski
All other stringAt methods check for null termination. Be consistent so that upper levels don't end up with huge corrupt strings. Bug: 62537081 Test: none Change-Id: I17bdfb0c1e34507b66c6cad651bbdb12c5d4c417 (cherry picked from commit 3d35a0ea307693a97583a61973e729a5e7db2687) (cherry picked from commit 97f8cb01149b35b1832c7f9efe85ff19edf1083e) (cherry picked from commit 5ec65ae909a85d13d03c030be357c8c14a50d306)
2018-02-03OutputConfiguration: Fix missing mIsShared in parcel readShuzhen Wang
Test: Camera CTS Bug: 69683251 Merged-In: I7ea4aa8ed4baa5a5e7d25a0073361d827ba86c13 Change-Id: I7ea4aa8ed4baa5a5e7d25a0073361d827ba86c13 (cherry picked from commit 4304a02ac990c1af5fb8f479bdd2b04c8af4fddb)
2018-02-03Fix bad type for txPower in PeriodicAdvertisingReport serializationJakub Pawlowski
Bug: 69634768 Test: compilation Change-Id: Icedfbaf1ba933637e935ada0fd98aea42c73f2b2 Merged-In: Icedfbaf1ba933637e935ada0fd98aea42c73f2b2 (cherry picked from commit 5332988c62e2f2ededb29ac3bfc4774551fe956f)
2018-02-03Use correct user id for permission check for instant foreground serviceSvet Ganov
Test: cts-tradefed run cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.EphemeralTest#testStartForegrondService bug: 68275646 Bug: 71366502 Change-Id: I196522c49ae8a7e0ec07bf631f04bae51e96db5b cherry pick from: https://android-review.googlesource.com/c/platform/frameworks/base/+/559340 (cherry picked from commit e32c238ce76151dd6221e6762f841c8f721c45f7) Change-Id: Idfeae038d42b9dee9f6f57203f2bdb0764f51877 (cherry picked from commit d967610fb865ce2ac5f8c379a13e21feee98fbe0)
2018-01-30Merge cherrypicks of [3536650, 3536562, 3536563, 3536481, 3535874, 3536495, ↵android-build-team Robot
3536496, 3536632, 3536633, 3536434, 3535900] into oc-m2-release Change-Id: I5665b657607cd31a5ca9ce74371037726ba43145
2018-01-30Metrics wifi.proto for connected wifi scoreMichael Plass
(cherry picked from commit bb367b689605d0ca3641984b4d59bbe13e6861df) Bug: 67429363 Bug: 71708302 Test: Wifi unit tests Change-Id: I2993a02e7b3199c2b50dc2ddb7704fc5b6364025 Merged-In: I315613b8ea3aa1d02810ae376c76083d80865d31 (cherry picked from commit 1b8fe6ef73cdeff9ad7faf6bf695657c9b8df7ff)
2018-01-26Merge cherrypicks of [3519487, 3519488, 3520743, 3521264, 3521265] into ↵android-build-team Robot
oc-m2-release Change-Id: I890e0abea705523c9dc9c38818a74b6d0a939a61
2018-01-26Relax Instant Apps Settings whitelist enforcementChad Brubaker
The strict whitelist of settings for Instant Apps is leading to too much unintended breakage, remove the enforcement until better infrastructure can be added to make sure settings that should be whitelisted are. Bug: 71009655 Test: Coming in a follow up (cherry picked from commit b6108d621002d4de708ae526e7c2bc95dabef080) Change-Id: Iaa1d71331407cee86c10105c1e5668ffd0c925a1 (cherry picked from commit 26ae1d359e02fe5871177c9adfc90ca571fd0f86)
2018-01-26Fixed AUTOFILL_UI_LATENCY metric.Felipe Leme
This metric was using the RESERVED_FOR_LOGBUILDER_COUNTER and hence was not being picked up. Bug: 71863561 Fixes: 72175011 Test: adb shell logcat -b events | grep sysui | grep 1136 Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases Change-Id: I34f701ff5336a413477fd14172d16d8d1e5403ad (cherry picked from commit b659adb3f3d13049ca1c08fcec2d419ffd7a386b)
2018-01-26DO NOT MERGE - fix AFM.getComponentNameFromContext()Felipe Leme
This method broke on O-MR1 when I3abf999eb6056c1df7982780bae43b58337c0668 was chery-picked from master. Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases \ -t android.autofillservice.cts.AttachedContextActivityTest#testAutofill Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases Also individually ran tests that failed (due to flakiness) when ran in a suite: Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases \ -t android.autofillservice.cts.OptionalSaveActivityTest#testDontShowSaveUiWhenUserManuallyFilled_oneDatasetAllRequiredFields Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases -t android.autofillservice.cts.PreSimpleSaveActivityTest #testTapLink_tapBack_thenStartOverBySayingYesAndManualRequest Fixes: 71960322 Change-Id: Ia093dcefe6699dc9493c46d671e48c2000214b31 Merged-In: I3abf999eb6056c1df7982780bae43b58337c0668 (cherry picked from commit b25b4736db2ea05dce6b9f03e8a9920ab338dd5a)