Commit Graph

7412 Commits

Author SHA1 Message Date
Jayachandran Chinnakkannu
a46de19da4 Merge "Remove usage of Telephonymanager getDefault() and from() hidden APIs" am: 73e22ad21d am: 306f8cecf8
am: 6d2b8e0d6a

Change-Id: Ief1f090f3664d583565f291c89357bfbac58fe17
2019-11-18 01:09:40 -08:00
Jayachandran Chinnakkannu
6d2b8e0d6a Merge "Remove usage of Telephonymanager getDefault() and from() hidden APIs" am: 73e22ad21d
am: 306f8cecf8

Change-Id: I7613a654dd726bcf5428a5a07ad4369f616bbcfa
2019-11-18 01:05:02 -08:00
Jayachandran Chinnakkannu
306f8cecf8 Merge "Remove usage of Telephonymanager getDefault() and from() hidden APIs"
am: 73e22ad21d

Change-Id: I555617ff893acf4c53e6a73d6591b6aaebf3ce50
2019-11-17 22:30:01 -08:00
Jayachandran C
43fa1be03a Remove usage of Telephonymanager getDefault() and from() hidden APIs
This CL replaces with getSystemService(TelephonyManager.class)

Bug: 140768340
Test: atest frameworks/base/tests/net
Change-Id: I0f14cc5440fa85c81ab90f3199e9e91c1b00f5e1
2019-11-15 19:26:33 -08:00
Roland Levillain
46c1b58a89 Merge "Revert submission from topic "separate-testing"." am: 567b03aa72 am: c12a9e9b26
am: e633cc0936

Change-Id: I2a43f5aa43491fc85f9d3b771a11864858a22989
2019-11-15 12:24:00 -08:00
Roland Levillain
e633cc0936 Merge "Revert submission from topic "separate-testing"." am: 567b03aa72
am: c12a9e9b26

Change-Id: I09b3d512212216308afa45c9d48cc9d1a1dc61c4
2019-11-15 12:16:57 -08:00
Roland Levillain
c12a9e9b26 Merge "Revert submission from topic "separate-testing"."
am: 567b03aa72

Change-Id: Idf4f7b63e56339bc49128d83c96e3dbf3ca5f19d
2019-11-15 12:08:50 -08:00
Roland Levillain
44d9a1d8dd Revert submission from topic "separate-testing".
Reason for revert: Breaks master-art builds with this error:

  FAILED: out/soong/.intermediates/development/build/android_stubs_current/android_common/turbine-combined/android_stubs_current.jar
  echo "module android_stubs_current missing dependencies: api-stubs-docs, framework-res" && false
  module android_stubs_current missing dependencies: api-stubs-docs, framework-res

Test: art/tools/buildbot-build.sh --host
Bug: 140367850
Change-Id: Ie05e05d305bc23ac94d19a6565bd37512a6e34c4
2019-11-15 19:27:38 +00:00
Andrei-Valentin Onea
9566f7d967 Merge "Re-land example for disabling changes at test time" am: 1695301cc9 am: 3a7f590e15
am: 92fd8c298d

Change-Id: I5dd896c89d7aeb362b01893fae0df1aa55d32c3b
2019-11-15 08:38:01 -08:00
Andrei-Valentin Onea
92fd8c298d Merge "Re-land example for disabling changes at test time" am: 1695301cc9
am: 3a7f590e15

Change-Id: I25c083449656ed2ebdfb68d20993eea5cc7a4fdb
2019-11-15 08:30:29 -08:00
Andrei-Valentin Onea
3a7f590e15 Merge "Re-land example for disabling changes at test time"
am: 1695301cc9

Change-Id: I9a540ff379b0c4359159b1b540352e17c5abd91c
2019-11-15 08:23:23 -08:00
Ned Burns
77050aa834 Add NotifListBuilder to new notif pipeline
Adds the NotifListBuilder, the second half of the new notification
pipeline. The NLB is responsible for building the "notif list", the list
of notifications that are currently visible to the user. This differs
from the current list that is generated by the NEM/NotificationData in a
couple ways:

- It's grouped. Children have already been collected into their parent
groups. This means that the notif list now contains only "top-level
entries" -- i.e. either notification groups or notifications that aren't
part of a group.

- It's completely filtered. Previously, we did some filtering in
NEM/NotificationData and some filtering in ViewHierarchyManager. Now,
all filtering should take place in NotifListBuilder.

In order to build the final list, the NLB executes four distinct stages
of its pipeline:

  1. Filtering: Notifications that shouldn't be shown right now are
     excluded.
  2. Grouping: Notifications that are part of a group are clumped
     together into a single object (GroupEntry).
  3. Group transform: Groups are optionally transformed by splitting
     them apart or promoting single entries to top-level.
  4. Section assignment & sorting: top-level entries are divided into
     major "sections" (e.g. silent notifications vs. people
     notifications vs. ...) and then the contents of each section are
     sorted (as well as the contents of each group).

The NLB tries to avoid having any "business" logic in its own
implementation of the pipeline. Instead, parties that want to
participate in building the notif list can register "pluggables" that
can take part in stages 1, 2, and 4. These are:

  * NotifFilter (stage 1): A pluggable for filtering out notifs from
    the final notif list.
  * NotifPromoter (stage 3): A pluggable for "promoting" a child
    notification out of its enclosing group and up to top-level.
  * SectionsProvider (stage 4): A pluggable for determining the
    overall section that an entry belongs to.
  * NotifComparator (stage 4): A pluggable for sorting notifications
    within sections.

Whenever something about a pluggable changes so that it would like to
give a different answer than the one it gave previously, it should call
invalidate() on itself. This will trigger a new run of the pipeline.

In order to represent a list of top-level entries that might be either
single notifications or groups, this CL introduces a new object
hierarchy:

 - ListEntry (superclass)
   - NotificationEntry (subclass, pre-existing)
   - GroupEntry (subclass, new)

Thus, the output of the NLB is a List<ListEntry>. Consumers will need to
do instanceof checks on each entry to discover if it is a
NotificationEntry or a GroupEntry. We could have just allowed
NotificationEntry to have children and skipped the need for GroupEntry,
but it's usually important to force code to think about whether it needs
to examine just the summary or also the children. Some code just cares
about the summary but some really should look at the children as well,
and it's too easy to forget to think about groups if everything is a
NotificationEntry.

Test: atest
Change-Id: I86ffe97611b0cc9792b6c96f3196061b170f56b7
2019-11-14 14:05:38 -05:00
Andrei-Valentin Onea
d9f21c03e2 Re-land example for disabling changes at test time
Added Frameworks specific PlatformCompatChangeRule, which
fixes libcore tests dependency on Framework.

Test: atest PlatformCompatGating
Bug: 140367850
Change-Id: I4a97ff43d41110251473868d186462039a889e28
2019-11-14 18:45:39 +00:00
Jorim Jaggi
670b181d0a Merge "Record videos of the flicker tests" am: 6d5457bbb8 am: fcc92a701e
am: b2803b2350

Change-Id: I383ce0f59d16181634b3d298bba758a5355bfd8e
2019-11-13 08:08:20 -08:00
Jorim Jaggi
b2803b2350 Merge "Record videos of the flicker tests" am: 6d5457bbb8
am: fcc92a701e

Change-Id: I239a36244a2c5d4a1051a150af0439a73fd7adf8
2019-11-13 06:16:19 -08:00
Jorim Jaggi
fcc92a701e Merge "Record videos of the flicker tests"
am: 6d5457bbb8

Change-Id: I974be246c76a157f28bc232f0a52ee0a0ace6378
2019-11-13 06:06:13 -08:00
TreeHugger Robot
7c66851915 Merge "Minor test improvements." 2019-11-13 13:05:49 +00:00
Alan Stokes
75b1ff39a2 Minor test improvements.
Don't use deprecated InstrumentationRegistry.
Fix 'class can be static' warning.

Test: atest DynamicCodeLoggerIntegrationTests
Change-Id: I2c6c6666f9c5df1e013bd233a0f1ac16cf149728
2019-11-13 11:33:14 +00:00
Jorim Jaggi
5b80fbe00e Merge "Kill overscan insets and outsets" 2019-11-13 11:19:39 +00:00
Jorim Jaggi
6d5457bbb8 Merge "Record videos of the flicker tests" 2019-11-13 11:18:46 +00:00
Jeff Vander Stoep
e4a34f68eb Merge "Speed up and reenable test for b/141603906" am: 58578023dc am: 24589540b2
am: 37e3d62cbc

Change-Id: I3989b33f7732880d34c5ef1df28b344c4a6751d1
2019-11-13 02:38:00 -08:00
Jeff Vander Stoep
37e3d62cbc Merge "Speed up and reenable test for b/141603906" am: 58578023dc
am: 24589540b2

Change-Id: I715948b5e483cd16ad617814d85b08778aea1bcb
2019-11-13 02:29:55 -08:00
Jeff Vander Stoep
24589540b2 Merge "Speed up and reenable test for b/141603906"
am: 58578023dc

Change-Id: Icbe88e4a9ea179b7fa105c7ee5346b3d22b6acc5
2019-11-13 02:21:51 -08:00
Treehugger Robot
58578023dc Merge "Speed up and reenable test for b/141603906" 2019-11-13 10:05:49 +00:00
Jorim Jaggi
f081f06a48 Kill overscan insets and outsets
Also remove WindowManagerStressTest because that has been replaced
with proper perf test.

Test: Boots
Bug: 143255833
Change-Id: I1d293cda7c82d0aa1c3a6cc694c74bf7d10cc974
2019-11-12 17:49:51 +01:00
Nataniel Borges
4512ac6fa8 Record videos of the flicker tests
After a change in the flickerlib the videos are no longer recorded by
default. The tests which need to record a video must signal it.

Test: atest FlickerTests, check if the video exists in /sdcard/flicker
Change-Id: I8e74411ca6bf654ec7c0afcacf1c0591610f50bb
2019-11-12 16:07:28 +01:00
Remi NGUYEN VAN
6f7e2d5674 Merge "Add permissions to NetIntegrationTests manifest" am: cf46823faa am: 089c0d9bc5
am: 38fa66cd78

Change-Id: I33f628f9845d672edce17807f32819e31549eefd
2019-11-11 21:54:17 -08:00
Remi NGUYEN VAN
38fa66cd78 Merge "Add permissions to NetIntegrationTests manifest" am: cf46823faa
am: 089c0d9bc5

Change-Id: If487d15f3666af5460d886cfce78d87b6343e443
2019-11-11 21:48:51 -08:00
Remi NGUYEN VAN
089c0d9bc5 Merge "Add permissions to NetIntegrationTests manifest"
am: cf46823faa

Change-Id: Ieb22f6fa83bcc1e5c867a188f3a342980fce3203
2019-11-11 21:44:07 -08:00
Remi NGUYEN VAN
cf46823faa Merge "Add permissions to NetIntegrationTests manifest" 2019-11-12 05:31:19 +00:00
Mathieu Chartier
b5ffced130 Merge "Add retry loop for BootImageProfileTest" am: f9cb43d6eb
am: 1f0c20e85f

Change-Id: I3e39338cfef91ca89c54d172a41a23a70b1e19bd
2019-11-11 15:46:05 -08:00
Mathieu Chartier
1f0c20e85f Merge "Add retry loop for BootImageProfileTest"
am: f9cb43d6eb

Change-Id: Ie04518394d9980e1cbd87048ecc6bd7359f05625
2019-11-11 15:38:17 -08:00
Mathieu Chartier
f9cb43d6eb Merge "Add retry loop for BootImageProfileTest" 2019-11-11 23:17:48 +00:00
Elliott Hughes
f15b056f43 Merge "Remove old manual test." am: 88eac84708 am: 196c55dd13
am: 25a7cb402d

Change-Id: I0648740d9262700f935831a0fecc4e3e88e6373d
2019-11-11 15:00:19 -08:00
Elliott Hughes
25a7cb402d Merge "Remove old manual test." am: 88eac84708
am: 196c55dd13

Change-Id: Iae455b543126715bf341312e0279911333d11e3d
2019-11-11 14:51:17 -08:00
Elliott Hughes
196c55dd13 Merge "Remove old manual test."
am: 88eac84708

Change-Id: Ibe4dd06c307d3d66d1eb349bd64847d869fbc8df
2019-11-11 14:42:20 -08:00
Treehugger Robot
88eac84708 Merge "Remove old manual test." 2019-11-11 22:33:33 +00:00
Mathieu Chartier
3c7125c5b6 Add retry loop for BootImageProfileTest
In case the package manager is not yet started, retry saving the
profile up to 20 times to give it time. Should fix test flakiness.

Also addresses previous review comment.

Bug: 144048260
Bug: 139883463
Test: atest BootImageProfileTest

(cherry-picked from commit 233c33956b)

Merged-In: I12e101447d2a42fb0fcad7ad3427750c3ce89a79
Change-Id: I12e101447d2a42fb0fcad7ad3427750c3ce89a79
2019-11-11 20:24:18 +00:00
Mathieu Chartier
233c33956b Add retry loop for BootImageProfileTest
In case the package manager is not yet started, retry saving the
profile up to 20 times to give it time. Should fix test flakiness.

Also addresses previous review comment.

Bug: 144048260
Bug: 139883463
Test: atest BootImageProfileTest

Change-Id: I12e101447d2a42fb0fcad7ad3427750c3ce89a79
2019-11-11 10:52:40 -08:00
Elliott Hughes
d6a75c14fd Remove old manual test.
This is the last user of android_memset32 in the tree, which will let us
get rid of a bunch of assembler.

Test: treehugger
Change-Id: I684593b3435ef9a49675a01032c28f81713b467b
2019-11-11 10:08:22 -08:00
Remi NGUYEN VAN
4c636390c7 Merge "Detect NetworkStack path in rollback test" am: 5d4d3c178f
am: 879655bccc

Change-Id: I171965c0caf6fdd54a1a6031b25248e19e8a648b
2019-11-11 09:30:14 -08:00
Remi NGUYEN VAN
879655bccc Merge "Detect NetworkStack path in rollback test"
am: 5d4d3c178f

Change-Id: Ibfdc04ee71c85b3923bb3996b2150fe3637d1553
2019-11-11 09:10:00 -08:00
Jorim Jaggi
4a9d582253 Merge "Also run flicker tests on cloud" 2019-11-11 17:08:38 +00:00
Remi NGUYEN VAN
5d4d3c178f Merge "Detect NetworkStack path in rollback test" 2019-11-11 13:59:41 +00:00
Remi NGUYEN VAN
d02b13334b Merge "Autodetect NetworkStack path in rollback test" 2019-11-11 11:51:35 +00:00
Remi NGUYEN VAN
1ebd5c44d2 Detect NetworkStack path in rollback test
The network stack module may be implemented by NetworkStack (updatable
version built against stable SDK) or NetworkStackNext (test version
shipped only in system images, built against in-development SDK).

Bug: 144168912
Test: atest StagedRollbackTest
Merged-In: I1788e323f763ca88b69b082f38078bee3bfe480d
Change-Id: I963cc20ae4356f1728f6dd1bbf14f48ded978756
2019-11-11 17:03:33 +09:00
Remi NGUYEN VAN
ce4cad87d2 Autodetect NetworkStack path in rollback test
The network stack module may be implemented by NetworkStack (updatable
version built against stable SDK) or NetworkStackNext (test version
shipped only in system images, built against in-development SDK).

Bug: 144168912
Test: atest RollbackTest
Change-Id: I1788e323f763ca88b69b082f38078bee3bfe480d
2019-11-11 16:14:39 +09:00
TreeHugger Robot
79733bbf03 Merge "Update input policy to handle embedded windows" 2019-11-08 10:39:55 +00:00
Lucas Lin
4b99f180bb Merge "[NS01] Create NetworkScore" am: c000664c7c am: 1f1c098ad9
am: 29ea077fda

Change-Id: Ic093e655b1ff7e44db57d7add6b0818a06700962
2019-11-07 17:05:20 -08:00
Lucas Lin
29ea077fda Merge "[NS01] Create NetworkScore" am: c000664c7c
am: 1f1c098ad9

Change-Id: I0ba5523bf80f949a148e53774a367de325853747
2019-11-07 16:59:11 -08:00