Commit Graph

1046 Commits

Author SHA1 Message Date
vichang
7391d7612d Merge "Add some ICU 63 classes into boot image profile" am: 93bf21dad4 am: 28773473d1
am: 6cb15cffb6

Change-Id: Ia3d84dc7890d8d8ddb5f7651c150134180116a30
2018-11-08 12:12:36 -08:00
vichang
6cb15cffb6 Merge "Add some ICU 63 classes into boot image profile" am: 93bf21dad4
am: 28773473d1

Change-Id: Ib94cb36ec893186f7226b5101012291cd62dc904
2018-11-08 11:56:23 -08:00
vichang
93bf21dad4 Merge "Add some ICU 63 classes into boot image profile" 2018-11-08 19:23:30 +00:00
Victor Chang
6ea0cb0d65 Add some ICU 63 classes into boot image profile
Bug: 118748230
Test: systrace shows 70% improvement of initialize the class DateTimePatternGenerator$FormatParser
Change-Id: I0c29b7892ac57a49c1f93c8b759e547a5bb881cb
2018-11-08 16:33:23 +00:00
Adam Vartanian
3401e9fef2 Merge "Update API file for libcore additions" am: 07160ff7e5 am: 2d67c19860
am: e8e035aaaa

Change-Id: I7a22c36c3b1f9238cfe89f95b4e0d148030c8dc1
2018-11-08 06:17:57 -08:00
Adam Vartanian
e8e035aaaa Merge "Update API file for libcore additions" am: 07160ff7e5
am: 2d67c19860

Change-Id: I5bdce324be694615712d872eb95b09bd79176b9c
2018-11-08 06:04:57 -08:00
Adam Vartanian
07160ff7e5 Merge "Update API file for libcore additions" 2018-11-08 13:39:31 +00:00
David Brazdil
208e2f4a13 Merge "Add entries to hiddenapi light greylist" am: c00b9bcf8d
am: e515c95f6c

Change-Id: I1b9d07eb9abfca468fb130b00775032112864f67
2018-11-07 09:31:12 -08:00
David Brazdil
72c3f3ffd5 Add entries to hiddenapi light greylist
These are entries from P accidental whitelist which have been found
in use by static/dynamic analysis.

Test: m appcompat
Change-Id: Ifa269c8ba42d807e6bbe37d5122143921d00ec22
Merged-In: I473d2bc8a9b527cccdb103d527ce7613f4a6ac85
2018-11-07 14:41:41 +00:00
David Brazdil
fb8390d770 Add entries to hiddenapi light greylist
These are entries from P accidental whitelist which have been found
in use by static/dynamic analysis.

Test: m appcompat
Change-Id: I473d2bc8a9b527cccdb103d527ce7613f4a6ac85
2018-11-06 14:50:25 +00:00
Adam Vartanian
3187dd3f5a Update API file for libcore additions
Bug: 110403421
Test: cts -m CtsLibcoreTestCases
Change-Id: I67937aba279a99963e4290ff1d11154040ba0f94
2018-11-05 15:59:30 +00:00
Paul Duffin
5061977080 Merge "Remove sun.... libcore classes from light grey/vendor lists" am: 65b79f96cd am: 455c3da3e2
am: a98f107b27

Change-Id: I0625b63280a2560c8725dbeaa390b6e29725ae2b
2018-11-05 06:28:57 -08:00
Paul Duffin
a98f107b27 Merge "Remove sun.... libcore classes from light grey/vendor lists" am: 65b79f96cd
am: 455c3da3e2

Change-Id: I6d6cd4a67c61ed610759c6d798118bd7262d897d
2018-11-05 06:14:19 -08:00
TreeHugger Robot
6e3e195c50 Merge "Add new text layout classes to preload" 2018-11-01 20:04:42 +00:00
TreeHugger Robot
ae3c76df23 Merge "Each displays can have individual app transition." 2018-11-01 17:03:19 +00:00
Sunny Goyal
2daf457f4b Merge "Adding shared element transitions support in AppWidgets" 2018-11-01 16:19:12 +00:00
lumark
588a3e86a9 Each displays can have individual app transition.
Include below refectoring items to support per display AppTransition:

WMS / AM refectoring parts:
- Move AppTransition related stuff from WMS into DisplayContent.
- Move WMS.prepareAppTransition into DisplayWindowController.
- Move WMS.executeAppTransition to DisplayWindowController.
- Move ATM.isNextTransitionForward to DisplayWindowController.
- Move WMS.getPendingAppTransition to DisplayWindowController.
- Move WMS.overrideAppTransition like APIs to DisplayWindowController.
- Move ActivityRecord.applyOptionsLocked to AppContainerController.
- Support tracing all display's AppTransition status for
  DisplayContent.pendingLayoutChanges & window hierachy update.
- Modify logics for AppTransition related caller parts.
- Move WindowSurfacePlacer.handleAppTransitionReadyLocked related
  stuffs into added class AppTransitionController.

WM unit test parts:
- Add test case for verifying app transition state per display:
  - AppTransitionTests.testAppTransitionStateForMultiDisplay
  - AppTransitionTests.testCleanAppTransitionWhenTaskStackReparent
- Rename WindowSurfacePlacerTest to AppTransitionControllerTest since
  the test is related handle AppTransition flow.

Bug: 111362605
Test: go/wm-smoke
Test: atest ActivityManagerTransitionSelectionTests
Test: atest ActivityManagerMultiDisplayTests
Test: atest FrameworksServicesTests for DisplayContent / AppTransition
      related tests.
Change-Id: Ic1793aa794eb161bec31fda57847a6ba2ff4f84f
2018-11-01 21:10:37 +08:00
Paul Duffin
f7203652fc Merge "Remove java.... libcore classes from light grey/vendor lists" am: cd48021499 am: 4becd4b2fa
am: 6dfb615290

Change-Id: I7ed6b1cd6c68fa37da827872bf4b8b07da10b805
2018-11-01 04:09:45 -07:00
Paul Duffin
6dfb615290 Merge "Remove java.... libcore classes from light grey/vendor lists" am: cd48021499
am: 4becd4b2fa

Change-Id: I23a527a0e9de0a27748d234b476aee85c4fe3d39
2018-11-01 03:52:36 -07:00
Paul Duffin
a0cb5388a5 Remove sun.... libcore classes from light grey/vendor lists
Removes all the sun... libcore classes from the light grey/vendor
lists as they are now using UnsupportedAppUsage annotation.

This was tested by making and then manually checking that the generated
out/target/common/obj/PACKAGING/hiddenapi-light-greylist.txt was the
same (after sorting) before and after this change.

Test: see above
Bug: 117818301
Change-Id: I8dadc9215e929c5047fdfe8241c430544e963c19
ge-Id: I2a9ed3fbfb0c703eafcf431b93f8a419c5ec83a3
2018-11-01 10:31:09 +00:00
Paul Duffin
86bfabf908 Remove java.... libcore classes from light grey/vendor lists
Removes all the java... libcore classes from the light grey/vendor
lists as they are now using UnsupportedAppUsage annotation.

This was tested by making and then manually checking that the generated
out/target/common/obj/PACKAGING/hiddenapi-light-greylist.txt was the
same (after sorting) before and after this change.

Test: see above
Bug: 117818301
Change-Id: I3ada072845b311fc89d864c45e40995f4d92dfef
2018-10-31 10:34:56 +00:00
Siyamed Sinir
8918415f31 Add new text layout classes to preload
Test: build the system, and installed
Test: frameworks/base/libs/hwui/tests/scripts/prep_marlfish.sh
Test: m CorePerfTests
Test: adb install -r $OUT/data/app/CorePerfTests/CorePerfTests.apk
Test: adb shell cmd package compile -m speed -f \
      com.android.perftests.core
Test: adb shell am instrument -w -e class \
      android.text.StaticLayoutPerfTest \
      com.android.perftests.core/android.support.test.runner.AndroidJUnitRunner
Bug: 117888473

Change-Id: I756dff7960db221b587535a7664913cc8bd4d0de
2018-10-29 22:08:22 -07:00
Sunny Goyal
43c970436d Adding shared element transitions support in AppWidgets
Bug: 113071278
Test: atest frameworks/base/core/tests/coretests/src/android/widget/RemoteViewsTest.java
Change-Id: I0d7698faa8d9e61913b55d34de8b7cfbb32863b1
2018-10-29 17:04:33 -07:00
Varun Shah
59a1ff3ee7 Merge "Exposes user type related hidden APIs in UserManager." 2018-10-27 02:07:56 +00:00
Bill Yi
8b634e9191 Merge pie-platform-release to aosp-master - DO NOT MERGE
Change-Id: I695db52f5e22509401258e8b083e7650d401d993
2018-10-24 14:48:44 -07:00
Michael Wachenschwanz
0e1ce140a2 Merge changes from topic "UsageStatsDatabaseUpgradeAttempt2"
* changes:
  Add ProtoInputStream and UsageStatsProto to art profiles
  Upgrade UsageStatsDatabase to version 4 (attempt 2)
  Move UsageStatsDatabase upgrade backup to seperate folder
2018-10-24 02:17:00 +00:00
Varun Shah
e142e33613 Exposes user type related hidden APIs in UserManager.
UserManager#isAdminUser, UserManager#isPrimaryUser,
UserManager#isGuestUser, and UserManager#isRestrictedProfile
are now exposed as System APIs for SUW. All of them require the
MANAGE_USERS permission.

Bug: 115270753
Test: manual (run setup wizard)
Change-Id: I5b9685d486738c3d5a7f5cfa6748adb6efef91bb
2018-10-23 16:23:24 -07:00
John Reck
8884cfc13e Merge "Rename & package shuffle" 2018-10-23 20:02:00 +00:00
Paul Duffin
c3bf3e4e14 Remove more libcore classes from light grey/vendor lists
Removes more libcore classes from the light grey/vendor lists as they
are now using UnsupportedAppUsage annotation.

Test: ensured that generated light grey list did not change
Bug: 117818301
Merged-In: I2e12bad6dcf648ae9dfed2cd5a3d2c7f2a01a506
Change-Id: I1361408eacae9b7320babec8ddc2afb10d08feaf
2018-10-22 13:12:15 +01:00
Paul Duffin
90979dc405 Remove more libcore classes from light grey/vendor lists
Removes more libcore classes from the light grey/vendor lists as they
are now using UnsupportedAppUsage annotation.

Test: ensured that generated light grey list did not change
Bug: 117818301
Change-Id: I2e12bad6dcf648ae9dfed2cd5a3d2c7f2a01a506
2018-10-19 15:30:37 +01:00
Courtney Goeltzenleuchter
367ed8b190 Update to EGL 1.5
Test: compile
Bug: 80239516
Change-Id: I1c00ac5e55900260b724e1c298edca15f87f3a01
(cherry picked from commit 63584195b9d15daa9973d280381fd619cd7a0f89)
2018-10-16 14:10:20 -06:00
Paul Duffin
c53bb2cfb9 Merge "Remove libcore/io members from light grey list" am: 2579dcd17e am: 1e69440dff
am: f70e1edd6f

Change-Id: Id9e7ba83dace62281849e2dbfdb828ce176e9ef2
2018-10-16 11:44:33 -07:00
Paul Duffin
7826c7afa3 Remove libcore/io members from light grey list
These members are now specified using the d.a.c.UnsupportedAppUsage
annotation on the members themselves.

Test: ensured that generated light grey list did not change
Bug: 117818301
Change-Id: I51c2f9544517b46d0b8821fbeb5b008342b99770
2018-10-16 14:30:18 +01:00
Mathew Inwood
0085baa159 Merge "Add new "max-sdk-p blacklist"." am: adbc7dfc28 am: f0a45a4114
am: 94db534287

Change-Id: Ie0e9cfd4d0f0eff82736741a768f607872589244
2018-10-16 06:10:51 -07:00
Mathew Inwood
50dea42729 Add new "max-sdk-p blacklist".
This will contain greylist entries accessible by apps with a
targetSdkVersion of less than Q. Currently empty, will be populated in
follow up CLs.

For now, these APIs are just merged into the light greylist at build time,
pending support in the runtime for implementing the correct runtime
behavior.

Also fix a bug in sort_api.sh so it deals with empty API lists
correctly.

Bug: 115609023
Test: m
Change-Id: I213874062f393f96d120648a934ae5ad7aba93af
2018-10-15 16:38:12 +01:00
Michael Wachenschwanz
596c33086a Add ProtoInputStream and UsageStatsProto to art profiles
Fixes: 117177943
Test: run google/template/local --template:map test \
google/continuous/boot-successive  --no-first-boot --successive-boot \
--boot-count 2 --granular-boot-info  -f \
SystemServerTiming_StartUsageService

Change-Id: Id49b063a99a7f6c2c79e6f1d8f7a892d2ab9e47c
2018-10-12 14:59:54 -07:00
David Brazdil
158703a0c5 Merge changes Icd51c4c7,I836ecb94 am: 3590eb09ef am: b03f3c8ba2
am: 12e585e745

Change-Id: I33a47fa7425807ab0edebcd9f4a83443cbbf0ac5
2018-10-11 09:44:21 -07:00
David Brazdil
3590eb09ef Merge changes Icd51c4c7,I836ecb94
* changes:
  Add entries to hidden api greylist
  Add method to hidden api greylist
2018-10-11 15:35:58 +00:00
David Brazdil
a8d554380d Add entries to hidden api greylist
Bug: 115387204
Test: m appcompat
Change-Id: Icd51c4c7d446ea72211804fbb050f4fee742db17
2018-10-11 12:50:40 +01:00
David Brazdil
8a91d3f044 Add method to hidden api greylist
Bug: 114488777
Test: m appcompat
Change-Id: I836ecb947390f7fc6986f6848299375c7599fc97
2018-10-11 12:21:48 +01:00
Lorenzo Colitti
8494db31cb Merge "Make setAirplaneMode @SystemApi for SetupWizard." am: 772b75c26d am: aab9359c05
am: 6b2f6b1e05

Change-Id: I994f0ff3ad9a3833eb56da7614e3632452d5c476
2018-10-10 23:32:45 -07:00
Lorenzo Colitti
85eca488e5 Make setAirplaneMode @SystemApi for SetupWizard.
Expose ConnectivityManager#setAirplaneMode and the
NETWORK_SETUP_WIZARD permission so that SetupWizard can call
setAirplaneMode.

Delete setAirplaneMode from the greylist because the permissions
checks on it, since at least 2013, have been for a privileged
permission (CONNECTIVITY_INTERNAL) that normal apps don't have.

Test: m
Bug: 115302596
Change-Id: I28f24d32c4b4b386407e9e0e3514ea9f8854f4a8
2018-10-10 17:50:05 +09:00
John Reck
32f140aa67 Rename & package shuffle
Rename DisplayListCanvas -> RecordingCanvas
Move RecordingCanvas to android.graphics
Move RenderNode to android.graphics

Bug: 112709971
Test: make & boot
Change-Id: Iddeb6a89f8923ea81a1f37bbee4e9b1db8ede238
2018-10-04 16:18:12 -07:00
Salvador Martinez
bbd22043e0 Merge "Add new POWER_SAVER permission & update api" 2018-10-02 16:24:04 +00:00
Salvador Martinez
a80bbab54c Add new POWER_SAVER permission & update api
This CL adds a new privileged permission called POWER_SAVER that
will allow whitelisted packages to toggle battery saver on the
device. This can be done via PowerManager, where the API for
setting battery saver has been updated to accept calls from apps
with either DEVICE_POWER or the POWER_SAVER permission.
Additionally, we whitelist Turbo for the permission.

Test: Framework builds, Turbo can toggle EBS
Bug: 115524274
Change-Id: I49d9747b2d42f792a2f3ba90a15aa23c47e489b3
2018-09-28 14:25:25 -07:00
John Reck
a6107c1659 Merge "De-couple RenderNode from View package" 2018-09-27 16:54:32 +00:00
John Reck
6b1644022b De-couple RenderNode from View package
First step of moving RenderNode to the graphics package

Test: builds
Change-Id: Ife7f5ec6698e32393d1b85ed2bad909ef0210be4
2018-09-26 16:29:32 -07:00
Tyler Gunn
d43d0b0de1 Merge "Cleanup deprecated or removed telephony methods." am: c4833e862e am: 95981b0488
am: 546c7f8123

Change-Id: Ic10a4729ba3a9edc144241944fef549d0fb505b9
2018-09-26 15:29:39 -07:00
Tyler Gunn
98b1ba015f Cleanup deprecated or removed telephony methods.
Mark previously deprecated TelephonyManager APIs as @remove; some of these
have valid public APIs; for now just calling the public APIs to give more
time for API consumers to transition over to the new methods.

Remove ITelephony AIDL calls for removed methods.

Removed ITelephony light greylist for removed methods; see bug for details.
There are public alternatives for most of the remove AIDL methods; a couple
of the subscription specific ones are not available directly but the
non-subscription specific versions should suffice.

Test: Compile/build/manual
Bug: 115776310
Change-Id: Iff4bf99b34b8e14d5a4dc1d2f4e4926880b6434c
2018-09-24 18:02:44 +00:00
Andreas Gampe
50b8776159 Merge "Frameworks: Remove AsyncTask from preloaded-classes" am: 0af2cf259b am: 34c4073744
am: 522ff2b27b

Change-Id: I7fd89ace4ece0100245655e71d80331650c3434f
2018-09-21 18:25:11 -07:00