Commit Graph

227 Commits

Author SHA1 Message Date
Nicolas Geoffray
55ca4d33fe Add light grey APIs.
bug: 64382372
Test: m
Change-Id: If15820dda1c985dc8d367d211732611d0a56bd26
2018-04-20 13:16:18 +01:00
Nicolas Geoffray
75d3d96084 Merge "Light grey java.net.HttpCookie fields." into pi-dev 2018-04-20 09:37:36 +00:00
Nicolas Geoffray
2c321ccd7e Merge "Add some widget APIS to light grey." into pi-dev 2018-04-20 09:37:06 +00:00
Nicolas Geoffray
9c603f7f58 Add some widget APIS to light grey.
bug: 78045614
Test: m
Change-Id: I77c7059e55a3504173f29c0cf263b77f5ecb8012
2018-04-19 15:48:47 +01:00
Nicolas Geoffray
6e067d0d81 Light grey java.net.HttpCookie fields.
bug: 78182056
bug: 77925754
Test: m
Change-Id: I930ad319e8477ac93ab19632565e3696317053e1
2018-04-19 14:29:50 +00:00
David Brazdil
b7f1777d0a Merge "Add one more hidden API to light greylist" into pi-dev 2018-04-19 12:59:40 +00:00
David Brazdil
2339132f79 Add one more hidden API to light greylist
Bug: 78229662
Test: make
Change-Id: I603e48d795d6d805f46389f9edbd81ffd6c66696
2018-04-19 11:00:41 +01:00
Nicolas Geoffray
9e38dfaec4 Add UUID->leastSigBits to light grey.
bug: 78125653
Test: m
Change-Id: I0fd8fd1711505e14a0de33db509c7472a2c38d8c
2018-04-18 17:12:34 +01:00
David Brazdil
b914565f6a Merge changes I9876ff6b,Iccd7c1c1 into pi-dev
* changes:
  Add more hidden API on light greylist
  Add Thread.contextClassLoader to hidden API light greylist
2018-04-18 15:48:50 +00:00
David Brazdil
6644a0ec4f Merge "Delete hiddenapi-blacklist.txt file" into pi-dev 2018-04-18 15:35:39 +00:00
David Brazdil
a74badbe26 Merge "Sort hiddenapi-light-greylist.txt" into pi-dev 2018-04-18 15:35:07 +00:00
Nicolas Geoffray
b1b2e0e92c Merge "Add UUID->mostSigBits to light grey." into pi-dev 2018-04-18 13:58:04 +00:00
Nicolas Geoffray
7ed8513166 Merge "Add Landroid/app/LoadedApk;->mLibDir:Ljava/lang/String; to light grey." into pi-dev 2018-04-18 13:57:48 +00:00
David Brazdil
df15897b07 Add more hidden API on light greylist
Bug: 78210188
Bug: 78182899
Test: make
Change-Id: I9876ff6bc9477f51d6a5ba9370c6a1742210f86a
2018-04-18 14:22:03 +01:00
David Brazdil
06b59756fa Delete hiddenapi-blacklist.txt file
The file is empty and not used, and its presence confuses people.
Remove it.

Bug: 64382372
Test: make
Change-Id: I8646a78b96d81dd38e5c58460d354430babd9d53
2018-04-18 13:37:45 +01:00
David Brazdil
02795c946f Sort hiddenapi-light-greylist.txt
Previous CL Ide42eacc8db4e403432ddd9d952495dda85db0ac left it
unsorted which makes it difficult to programatically add new APIs.

Bug: 64382372
Test: make
Change-Id: Iff35925d9ad64d8a98e59c1b8c4094d59a1c3a3c
2018-04-18 13:37:45 +01:00
David Brazdil
eb73af62fb Add Thread.contextClassLoader to hidden API light greylist
Bug: 78145123
Test: make
Change-Id: Iccd7c1c167c77c6bced619735114452e80a086f0
2018-04-18 13:37:45 +01:00
Nicolas Geoffray
30236b78ab Add new light greylist APIs.
bug: 78027167
Test: m
Change-Id: I6b9ef6534e1a0f50aac19909c04640b4b1f581ca
2018-04-18 10:56:32 +01:00
Nicolas Geoffray
ba199f56ca Merge "Add Landroid/app/IActivityManager;->getConfiguration() to light grey." into pi-dev 2018-04-18 09:28:20 +00:00
Nicolas Geoffray
a8527b9cb1 Merge "Light grey android.media.MediaScanner.isNoMediaPath" into pi-dev 2018-04-18 08:30:33 +00:00
Nicolas Geoffray
6ca3856df6 Add Landroid/app/IActivityManager;->getConfiguration() to light grey.
bug: 77327058
Test: m
Change-Id: I86d891e21c729a54450c8a92493303683152c07c
2018-04-18 09:21:34 +01:00
Nicolas Geoffray
494752c416 Add Landroid/app/LoadedApk;->mLibDir:Ljava/lang/String; to light grey.
bug: 77912446
Test: m
Change-Id: I81502667117a0584d150dc48d612a6a559dc3537
2018-04-18 08:59:15 +01:00
Pavlin Radoslavov
c442b64ab1 Add A2DP Codec config hidden APIs to the greylist
Bug: 78187319
Test: Code compilation
Change-Id: Ide42eacc8db4e403432ddd9d952495dda85db0ac
2018-04-17 14:35:19 -07:00
Nicolas Geoffray
1d93ccb98c Light grey android.media.MediaScanner.isNoMediaPath
bug: 78027167
Test: m
Change-Id: I9bd853608a5c4ee98d39920f6157f97bf796c708
2018-04-17 16:23:47 +01:00
Nicolas Geoffray
6a56aad5a2 Add UUID->mostSigBits to light grey.
bug: 78125653
Test: m
Change-Id: Idff199d30071336b761a5d6c50812361c560ac85
2018-04-17 15:12:33 +01:00
Artem Iglikov
d1a7b7d43a Greylist getMandatoryBackupTransport
Bug: 77997957
Test: n/a
Change-Id: Ieccdd978960c00b6bef6ebe375fa388c0d186684
2018-04-17 12:09:36 +01:00
TreeHugger Robot
15d35c1274 Merge "Fixed power manager CTS test." into pi-dev 2018-04-17 10:39:30 +00:00
Pavlin Radoslavov
b36b6bb865 Add A2DP set/get active device to greylist
Bug: 74238896
Bug: 78132844
Test: compile
Change-Id: If20ed03e6f579f06856e3e9cb6d4882313bfdc1b
2018-04-16 15:06:19 -07:00
Dan Gittik
26b030d829 Fixed power manager CTS test.
Added an annotation necessary to allow the power manager CTS test to
access the non-public method nap.

Test: adb install -r \
      out/host/linux-x86/cts/android-cts/testcases/CtsOsTestCases.apk
      adb shell am instrument -e class android.os.cts.PowerManagerTest \
      -w android.os.cts/android.support.test.runner.AndroidJUnitRunner

Change-Id: Ida939f074654bef351e2b8fd563c8463431ce9c6
Fixes: 77907164
2018-04-16 18:50:10 +01:00
David Brazdil
4b98bc6cec Add more hidden API on light greylist
Bug: 64382372
Bug: 78019806
Bug: 77982395
Bug: 77862070
Bug: 77860747
Bug: 77785209
Bug: 77814672
Bug: 77760092
Test: make
Change-Id: I78643c355801241a2e02f16f986a7a5d14d79823
2018-04-16 12:05:41 +01:00
TreeHugger Robot
6b30886afd Merge "Add HFP/HearingAid set/get action device to greylist" into pi-dev 2018-04-13 23:51:24 +00:00
Hansong Zhang
d5e8df8607 Add HFP/HearingAid set/get action device to greylist
Bug: 74238896
Test: compile
Change-Id: If3111b283b84350246db2e9e9380bf0c84c72756
2018-04-13 12:09:13 -07:00
David Brazdil
d55a940e9f Merge "Add more hidden API on light greylist" into pi-dev 2018-04-13 14:46:47 +00:00
Colin Cross
b535c0dbf4 Greylist APIs used by Android Auto projection
Fixes:
04-06 19:12:06.529 W android.gms:ca: Accessing hidden method Landroid/media/AudioAttributes$Builder;->addTag(Ljava/lang/String;)Landroid/media/AudioAttributes$Builder; (blacklist, reflection)

Bug: 77315795
Test: make
Change-Id: I171fbfb60623a970285ac89499bbb94b1e5e57d4
2018-04-12 10:12:18 -07:00
David Brazdil
666c7b2f79 Add more hidden API on light greylist
This is from CtsOsTestCases which we cannot exempt because it also
tests StrictMode.

Test: cd cts/tests/tests/os && atest .
Bug: 77909325
Change-Id: Id0fee2c48612d69c5cf4f31bd32e29a19ffd8f0e
2018-04-12 16:26:39 +01:00
TreeHugger Robot
5ca4d29089 Merge "Revert "Greylist methods with varargs and intrinsics"" into pi-dev 2018-04-12 07:40:37 +00:00
Andreas Gampe
82087810ac Revert "Greylist methods with varargs and intrinsics"
This reverts commit d45ff00f1c.

Reason for revert: Breaks ART tests

Bug: 64382372
Change-Id: Ief87608ff2ad6d11b2aff5d4b9f15b953351360a
Test: none
2018-04-12 05:35:24 +00:00
TreeHugger Robot
1eff922e34 Merge "Greylist methods with varargs and intrinsics" into pi-dev 2018-04-11 16:58:49 +00:00
Chavi Weingarten
9553a11557 Merge "Synchronize stack position and size update for split screen" into pi-dev 2018-04-11 16:53:42 +00:00
David Brazdil
d45ff00f1c Greylist methods with varargs and intrinsics
This is due to a related Doclava change.

Bug: 64382372
Test: make
Change-Id: I8fba27a529a83751ab27859b1c1b791ab85786cf
2018-04-11 14:44:07 +00:00
chaviw
be43ac8686 Synchronize stack position and size update for split screen
When entering split screen, the secondary window changes position so
it's below the primary split screen when minimized. The WSA at the same
time is also changing size to fit the area. However, the size doesn't
change until the client requests a new size and a frame with the correct
size comes in. This causes the stack to update position before the
resize which causes content to get cut off and then a jump when the resize
completes.

This change updates the WSA position as soon as it recognizes that the
stack changed position due to entering split screen secondary. The WSA
sets its position as the negative of the stack position, making the
calculated window position at (0,0). When a relayout is requested, the
WSA's position is requested back to (0,0), deferring until the new frame.
This will put the WSA position at (0,0) when a frame with the correct size
is drawn. This places the window position at the stack's new position in
the same transaction that a WSA frame with the new size is drawn.

Change-Id: I8c88d7784f827d66926fb5c382af2346028dc48f
Fixes: 74354855
Test: Entering split screen with quick step is smooth
Test: Entering split screen with old launcher still works
2018-04-10 18:11:19 -07:00
David Brazdil
0b0e3bcf3b Add more API to light greylist
Bug: 64382372
Bug: 77736246
Bug: 77697942
Bug: 77502619
Bug: 76024032
Bug: 74621964
Bug: 76198483
Bug: 76405030
Bug: 76456333
Bug: 75295975
Bug: 74862699
Bug: 74862698
Bug: 74271858
Bug: 74352261
Bug: 73171118
Test: make
Change-Id: I4fe4b041022ab51297bf01ea59e33abba8767404
2018-04-10 17:44:03 +01:00
David Brazdil
0d130cbc86 Merge "Greylist APIs which apps can resolve to at runtime" into pi-dev 2018-04-10 10:26:04 +00:00
David Brazdil
f919fddb37 Greylist APIs which apps can resolve to at runtime
This applies to SpannableString methods:
 - charAt(I)C
 - getChars(II[CI)V
 - getSpanEnd(Ljava/lang/Object;)I
 - getSpanFlags(Ljava/lang/Object;)I
 - getSpanStart(Ljava/lang/Object;)I
 - getSpans(IILjava/lang/Class;)[Ljava/lang/Object;
 - length()I
 - nextSpanTransition(IILjava/lang/Class;)I
(these are all already in the greylist)

and one method from android.app.backup.FileBackupHelperBase:
 - writeNewStateDescription(Landroid/os/ParcelFileDescriptor;)V
(added in this CL).

We won't fix this properly in P, so greylist the uses for now.

Bug: 64382372
Bug: 76424618
Test: make
Change-Id: I4c4ef13338b1fa2f7f21c07c63d88d3559d10341
2018-04-10 10:25:37 +00:00
David Brazdil
716f9d420a Merge changes I35eddd24,Ia2c7093a into pi-dev
* changes:
  Add more hidden API to light greylist
  Add more hidden API to light greylist
2018-04-10 10:22:20 +00:00
TreeHugger Robot
d565f04957 Merge "Expose TestAPIs needed by GtsOsTestCases" into pi-dev 2018-04-09 15:57:42 +00:00
David Brazdil
62a1f9902d Add more hidden API to light greylist
Bug: 64382372
Test: make
Change-Id: I35eddd24f38421ad39d0163e550e2c3f425646f4
2018-04-09 16:24:08 +01:00
David Brazdil
b9a5a50b86 Add more hidden API to light greylist
Test: make
Bug: 64382372
Bug: 77464273
Bug: 77663152
Bug: 76121474
Bug: 77593560
Bug: 77798338
Change-Id: Ia2c7093a0dbb61fd69806b95de124e565448339b
2018-04-09 16:23:46 +01:00
Jan Althaus
4f9d750e91 Merge "Remove legacy logger" into pi-dev 2018-04-07 12:06:12 +00:00
Jan Althaus
5a03094ebc Remove legacy logger
Migrate DefaultLogger implementation to SelectionSessionLogger.
This cleans up after the API refactor and fixes two bugs:
- All events are currently logged twice.
- Interfaces accept a null signature, but it currently crashes the legacy logger.

Bug: 73392698
Bug: 77659305
Test: atest FrameworksCoreTests:TextClassificationManagerTest
Test: atest FrameworksCoreTests:TextClassificationTest
Test: atest CtsViewTestCases:TextClassificationManagerTest
Test: atest CtsViewTestCases:TextClassifierValueObjectsTest
Test: atest CtsWidgetTestCases:TextViewTest
Test: atest CtsWidgetTestCases:EditTextTest
Test: Manually examined logs
Change-Id: I0d2b925abf5cab12d71fc2cc0fa527530c86ab10
2018-04-07 12:04:49 +00:00