Commit Graph

7951 Commits

Author SHA1 Message Date
Ahmed ElArabawy
d78a02b1de Merge "Revert "power hal: Use power HAL API 1.1"" 2017-05-18 23:57:27 +00:00
Sudheer Shanka
d720f319fe Merge "More unit tests for classes needed in reading uid times per cpu freq." into oc-dev am: aff7c3c71e
am: 1768a0054d

Change-Id: Ic22cc9e7289479e8e7df8db961b240db93721a15
2017-05-18 18:06:56 +00:00
Sudheer Shanka
1768a0054d Merge "More unit tests for classes needed in reading uid times per cpu freq." into oc-dev
am: aff7c3c71e

Change-Id: Ie7691a19ef61668afd9200c9a3c77fa9fc5368f1
2017-05-18 17:53:28 +00:00
Sudheer Shanka
aff7c3c71e Merge "More unit tests for classes needed in reading uid times per cpu freq." into oc-dev 2017-05-18 17:42:17 +00:00
Ahmed ElArabawy
48b908bd77 Revert "power hal: Use power HAL API 1.1"
This reverts commit 0a4e11480b.
The reason of the revert is to check for the application start time
regression that may have been caused by the CL (original CL# 2087376)

Bug: 38317397
Test: None

Change-Id: I4f249ba722791c7238a38e845a5cc2bd2d14a450
Signed-off-by: Ahmed ElArabawy <arabawy@google.com>
2017-05-17 16:12:57 -07:00
Eugene Susla
4a34f9c2f6 Print A11yEv. Content Change Types in DEBUG toString
Test: Enable debug, and ensure changeTypes are properly displayed
Change-Id: I1bf6a9f56a72e867a0bc967a5e3527eb4dc83952
2017-05-17 11:13:05 -07:00
Selim Cinek
ddb397be72 Merge changes I858017b8,Ife32b600 into oc-dev am: 63e8bfe1c5
am: 29260fd33b

Change-Id: Ida456542645ab7654705631dcba4d602669372e2
2017-05-17 16:18:22 +00:00
Selim Cinek
29260fd33b Merge changes I858017b8,Ife32b600 into oc-dev
am: 63e8bfe1c5

Change-Id: Ib280d1e343d5765ea93edcfbc5aae21417e6c590
2017-05-17 16:09:50 +00:00
Selim Cinek
63e8bfe1c5 Merge changes I858017b8,Ife32b600 into oc-dev
* changes:
  Improved the media color extraction algorithm
  Fixed broken coretests
2017-05-17 15:59:07 +00:00
TreeHugger Robot
41902fb366 Merge "Avoid marshalling default-valued fields" 2017-05-16 22:24:31 +00:00
Andreas Gampe
d5a9460f6c Merge "Zygote: Allow arbitrary-length wrap property names" am: 11780f1ad3 am: c942ae61e9 am: 85c5e1c123
am: 52fe51d8b0

Change-Id: Iceb651255f6541ff46f7a64092f5f55d27318d2d
2017-05-16 21:30:19 +00:00
Andreas Gampe
52fe51d8b0 Merge "Zygote: Allow arbitrary-length wrap property names" am: 11780f1ad3 am: c942ae61e9
am: 85c5e1c123

Change-Id: Id599b6c108b656932343209eb29abb3837b15624
2017-05-16 21:19:16 +00:00
Eugene Susla
0eb2b6e5cd Avoid marshalling default-valued fields
Test: 1. AccessibilityNodeInfoTest#testMarshaling
2. Hack the check from the above test to run on each parcel, then turn on
TalkBack and ensure to system crashes and stack traces in logcat
3. A11y CTS: CtsAccessibilityServiceTestCases, CtsAccessibilityTestCases,
CtsUiAutomationTestCases
Bug: 33949542

Change-Id: I2cef9fcef9d6f84334614b0e81c6717484ef3436
2017-05-16 13:38:25 -07:00
Andreas Gampe
4c88a8c684 Zygote: Allow arbitrary-length wrap property names
The restriction on system property key length has been lifted.
Update the invoke-with code to first check the full-length property.
Then fall back to the truncated version for backwards-compatibility.

Test: m
Test: manual with long package name (Maps)
Change-Id: I9f714af093a6017307cfef18c84de769f0de7c3e
2017-05-15 19:51:29 -07:00
Sudheer Shanka
59f5c00b41 More unit tests for classes needed in reading uid times per cpu freq.
Bug: 34133340
Test: runtest -c com.android.internal.os.LongSamplingCounterArrayTest frameworks-core
      runtest -c com.android.internal.os.KernelUidCpuFreqTimeReaderTest frameworks-core
Change-Id: I4c64efd9b3d91a72c585b9e4b0e6b277297005a4
2017-05-15 19:07:37 -07:00
Wale Ogunwale
0f8ce259fb Merge "Changed alert window notifications to use single channel" into oc-dev am: 648e127fcb
am: 33c831a15c

Change-Id: Ib94d4d4e12cf6cfb7fc9e6c2a63b4d47b40223ca
2017-05-15 22:43:42 +00:00
Wale Ogunwale
33c831a15c Merge "Changed alert window notifications to use single channel" into oc-dev
am: 648e127fcb

Change-Id: I0afd77da2da1c7e14cec98be39bcd595ec69267e
2017-05-15 22:34:59 +00:00
TreeHugger Robot
648e127fcb Merge "Changed alert window notifications to use single channel" into oc-dev 2017-05-15 22:25:43 +00:00
Wale Ogunwale
8f7bebca36 Changed alert window notifications to use single channel
Per UX request.

Change-Id: Iefe1be52743519af5ee1481b59613c87f16bdf7d
Fixes: 37422870
Test: Verify alert window notification channel.
2017-05-15 13:08:23 -07:00
Selim Cinek
6ce7cf7cda Fixed broken coretests
The MessagingLinearLayout and the ImageFloatingTextView tests were
broken.

Test: runtest -x frameworks/base/core/tests/coretests/src/com/android/internal/widget/MessagingLinearLayoutTest.java
Test: runtest -x frameworks/base/core/tests/coretests/src/com/android/internal/widget/ImageFloatingTextViewTest.java
Change-Id: Ife32b600e2082400a8ee2f86310a51fd88c1b80c
Fixes: 38182087
2017-05-15 12:05:56 -07:00
Amith Yamasani
e726dbfa26 Merge "Map isolated processes to correct uid" into oc-dev am: ba4ac09d23
am: 5cd7bd118e

Change-Id: Ia3a64a6dd5ca85f1ab3346e75eab93e809bf1d5e
2017-05-15 17:54:57 +00:00
Amith Yamasani
5cd7bd118e Merge "Map isolated processes to correct uid" into oc-dev
am: ba4ac09d23

Change-Id: I44e106b59854a12d8f871cbf595574a4b345dd4a
2017-05-15 17:44:46 +00:00
Amith Yamasani
ba4ac09d23 Merge "Map isolated processes to correct uid" into oc-dev 2017-05-15 17:36:36 +00:00
Sumir Kataria
7f3ca9617a Merge "Use placeholderCount-1 if using default layout." into oc-dev am: 260d6c6e8c
am: 3912511db2

Change-Id: Iea16a4af5118e389814e63c828ed896a87e740c0
2017-05-15 16:51:41 +00:00
Sumir Kataria
3912511db2 Merge "Use placeholderCount-1 if using default layout." into oc-dev
am: 260d6c6e8c

Change-Id: Ie4ec53faee984a427e4e175255794a668e02b2a6
2017-05-15 16:45:57 +00:00
Sumir Kataria
260d6c6e8c Merge "Use placeholderCount-1 if using default layout." into oc-dev 2017-05-15 16:35:32 +00:00
Paul Duffin
4455130610 Moved c.a.i.u.Predicate[s] into legacy-test
These classes are only used by android.test classes that are
being removed. As their name suggests they should not be in the
Android API at all so it makes sense to remove them. Especially
as there is java.lang.function.Predicate available now.

It appears as though Predicate was only added in to the API
because it was used by a method in the API as the directory in
which it and Predicates live was not on the list of classes to
explicitly index. Moving it into legacy-test meant that they are
now being indexed explicitly which means that Predicates needs
to be hidden.

Keeps running the tests as part of the existing target.

At runtime apps targeted at the API version before these are
removed will have the legacy-test library automatically added
to their classpath so they should see no effect. Apps that
target a later API will have to include those classes from the
android.legacy.test.jar which will contain all the android.test
classes that depend on it as well.

Bug: 30188076
Test: make checkbuild
Change-Id: Ia8502ec77ac11f85e078d70b68df214a9435eee7
Merged-In: I6f6f5f16fe93bd80227a450c6254166632fc6813
2017-05-15 15:17:48 +01:00
Peeyush Agarwal
59817588f6 Fix broken MenuItem coretests
am: 101ab58e26

Change-Id: I5fa8da7c7455aa1e72924ea04d8e43580ed69765
2017-05-15 14:07:20 +00:00
Peeyush Agarwal
101ab58e26 Fix broken MenuItem coretests
- Fix MenuItemImpl setShortcut bug caused when method signature was
changed after API review
- Remove outdated MenuItem coretests and move others to CTS

Bug: 38114634
Test: Run `cts-tradefed run cts-dev -m CtsViewTestCases -t
android.view.cts.MenuTest`

Change-Id: Iebb7e314cbb3f812fcfeb3f95797f1cf1bcfbae2
(cherry picked from commit d70d2e6efc)
2017-05-15 13:56:59 +00:00
Paul Duffin
413d371991 Merge "Moved c.a.i.u.Predicate[s] into legacy-test" into oc-dev-plus-aosp
am: e5573b54cb

Change-Id: I7c86684028d38f33e062a47ca92e7db2c6a6f3cf
2017-05-15 10:52:54 +00:00
Paul Duffin
e5573b54cb Merge "Moved c.a.i.u.Predicate[s] into legacy-test" into oc-dev-plus-aosp 2017-05-15 10:44:55 +00:00
TreeHugger Robot
e649ec3a98 Merge "Flag apps that have debugging set in systrace" 2017-05-13 00:45:42 +00:00
Amith Yamasani
8ee74aa3ba Map isolated processes to correct uid
This was missed in a recent addition to track cpu times at freq.

Bug: 34133340
Test: manual
Change-Id: Ie3720a76a1201c787601bb7419cb9eba47b2aa27
2017-05-12 17:30:12 -07:00
Selim Cinek
919615e60e Merge "Fixed an issue where the media notification wouldn't have contrast" into oc-dev am: 0ac4b7d108
am: 02f135e8b2

Change-Id: I69fa213e97113508a002e75203871b2e1cf914aa
2017-05-13 00:08:56 +00:00
Selim Cinek
02f135e8b2 Merge "Fixed an issue where the media notification wouldn't have contrast" into oc-dev
am: 0ac4b7d108

Change-Id: If9ece630645f4ebd3e1ee9e62ed2490d32e21082
2017-05-12 23:56:15 +00:00
Selim Cinek
0ac4b7d108 Merge "Fixed an issue where the media notification wouldn't have contrast" into oc-dev 2017-05-12 23:42:49 +00:00
John Reck
62cc11996d Flag apps that have debugging set in systrace
Fixes: 36885723
Test: manual, ran systrace, verified only the app in #1
has the warning line and other (non-debuggable) apps
do not.

Change-Id: I244d28aeab352b524df4f1673654fdeb277d9f9c
2017-05-12 15:39:51 -07:00
Bookatz
664e902058 Merge "Batterystats BLE results counter takes in count" into oc-dev am: 80fc1af120
am: 78ae8e0436

Change-Id: Ia618e177af4d1e6f33c901be91a7109dc7615850
2017-05-12 22:08:05 +00:00
Bookatz
78ae8e0436 Merge "Batterystats BLE results counter takes in count" into oc-dev
am: 80fc1af120

Change-Id: I5b88079ab4bbefbc3e838e3ee8f90bfa961b0650
2017-05-12 22:02:10 +00:00
TreeHugger Robot
80fc1af120 Merge "Batterystats BLE results counter takes in count" into oc-dev 2017-05-12 21:57:18 +00:00
Sudheer Shanka
36310290a4 Merge "Add time spent by uid per cpu frequency to batterystats." into oc-dev am: 5df9c5570e
am: 3ae1662024

Change-Id: I1954ae85025dabfebf452228b199cab07e892be2
2017-05-12 18:18:24 +00:00
Sudheer Shanka
3ae1662024 Merge "Add time spent by uid per cpu frequency to batterystats." into oc-dev
am: 5df9c5570e

Change-Id: Ia15bc54c61a692a37ad9b84a28643afc798b52c7
2017-05-12 18:09:36 +00:00
TreeHugger Robot
4075fd9c16 Merge "Fix broken MenuItem coretests" 2017-05-12 18:08:36 +00:00
Sudheer Shanka
5df9c5570e Merge "Add time spent by uid per cpu frequency to batterystats." into oc-dev 2017-05-12 18:02:43 +00:00
Selim Cinek
389edcd7c5 Fixed an issue where the media notification wouldn't have contrast
Because we were relying on the output to go in the right direction
already, this could be wrong. We're now only following the given
lightness direction if it is even possible to satisfy contrast.

Test: runtest -x core/tests/coretests/src/android/app/NotificationTest.java
Change-Id: I06d934a6b5c328ebbf0cf707030b0d707ccb5ab4
Fixes: 38182819
2017-05-12 10:06:41 -07:00
Bookatz
4ebc064c30 Batterystats BLE results counter takes in count
There would likely be too many BLE scan result calls for batterystats to
be healthy. Therefore, the caller can supply a count by which to increase the
counter, instead of doing it one result at a time.

Bug: 37720787
Test: runtest -x frameworks/base/core/tests/coretests/src/com/android/internal/os/BatteryStatsTests.java
Change-Id: Ib8b2e8d250036be24c6c3dac477bc8d34fe498a6
2017-05-12 09:00:20 -07:00
Paul Duffin
f71d5b5b18 Moved c.a.i.u.Predicate[s] into legacy-test
These classes are only used by android.test classes that are
being removed. As their name suggests they should not be in the
Android API at all so it makes sense to remove them. Especially
as there is java.lang.function.Predicate available now.

It appears as though Predicate was only added in to the API
because it was used by a method in the API as the directory in
which it and Predicates live was not on the list of classes to
explicitly index. Moving it into legacy-test meant that they are
now being indexed explicitly which means that Predicates needs
to be hidden.

Keeps running the tests as part of the existing target.

At runtime apps targeted at the API version before these are
removed will have the legacy-test library automatically added
to their classpath so they should see no effect. Apps that
target a later API will have to include those classes from the
android.legacy.test.jar which will contain all the android.test
classes that depend on it as well.

Bug: 30188076
Test: make checkbuild
Change-Id: I6f6f5f16fe93bd80227a450c6254166632fc6813
2017-05-12 15:35:11 +01:00
Amin Shaikh
4657a8da6e Merge changes from topic 'onarevert' into oc-dev am: fa0b28220b
am: ef8d59b631

Change-Id: I6f3722c464609a49bed24824a35184080ae0b653
2017-05-12 08:56:58 +00:00
Adam Lesinski
6a59db8f6d Merge "BatteryStats: Stop reading kernel memory stats when unvailable" into oc-dev am: 120d7b219d
am: c041ea726c

Change-Id: I12dadc8e103e079daffa13773062382207e7fd84
2017-05-12 08:21:40 +00:00
Makoto Onuki
bf69e727e6 Merge "Make batterystats less chatty" into oc-dev am: 89d64cbbd9
am: 1186287a1e

Change-Id: I4d1b144837979bbcf212d3b647e3b8927c6c33bc
2017-05-12 08:10:07 +00:00