Commit Graph

3673 Commits

Author SHA1 Message Date
Anton Hansson
3ee84990de Merge "frameworks/base: Set LOCAL_SDK_VERSION where possible." 2018-02-28 17:09:04 +00:00
TreeHugger Robot
5ef4247352 Merge "Revert "Update A11y action serialization to use longs"" 2018-02-28 17:08:47 +00:00
Anton Hansson
ab6ec61251 frameworks/base: Set LOCAL_SDK_VERSION where possible.
This change sets LOCAL_SDK_VERSION for all packages where
this is possible without breaking the build, and
LOCAL_PRIVATE_PLATFORM_APIS := true otherwise.

Setting one of these two will be made required soon, and this
is a change in preparation for that. Not setting LOCAL_SDK_VERSION
makes the app implicitly depend on the bootclasspath, which is
often not required. This change effectively makes depending on
private apis opt-in rather than opt-out.

Test: make relevant packages
Bug: 73535841
Change-Id: I4233b9091d9066c4fa69f3d24aaf367ea500f760
2018-02-28 15:13:23 +00:00
Artem Iglikov
5e97621c97 Revert "Update A11y action serialization to use longs"
This reverts commit 54549163b0.

Reason for revert: breaks tests, b/73997494

Bug: 73997494
Change-Id: I122c260898277d876c019554cb92351ac13a9eb0
2018-02-28 15:07:31 +00:00
Phil Weaver
f75cd84398 Merge "Update A11y action serialization to use longs" 2018-02-27 04:13:57 +00:00
Mike Digman
0fc64594ff Merge "Add intro mode to rotate suggestion button" 2018-02-27 02:48:19 +00:00
TreeHugger Robot
0b48b075c8 Merge "Make a11y shortcut robust to services w/no summary" 2018-02-27 02:19:26 +00:00
Mike Digman
5075264b6d Add intro mode to rotate suggestion button
Ripples the button multiple times when in intro mode

Test: manual
Change-Id: I16ada6014077298aa393ca495db1cd2b275b90dd
2018-02-26 15:07:38 -08:00
Phil Weaver
54549163b0 Update A11y action serialization to use longs
Change-Id: If1c903cdf43e8fed0d22a823dcd28e1c08b6267e
Fixes: 73897184
Test: Updating test (which was failing) to use long.
2018-02-26 14:41:49 -08:00
Phil Weaver
0f9aa4c3a5 Make a11y shortcut robust to services w/no summary
Fixes: 73254116
Test: Configure shortcut for TestBack. Now works.
Also adding test to internal test that fails without
this change.

Change-Id: I6bb1359f80c5e0145997bc107fe1580686edb30e
2018-02-26 13:49:41 -08:00
TreeHugger Robot
d4461782ff Merge "Put line feed to the test case" 2018-02-26 19:15:17 +00:00
TreeHugger Robot
c44d5053f2 Merge "Remove account from WrappedApplicationKey" 2018-02-26 14:52:19 +00:00
TreeHugger Robot
423e631da1 Merge "Add test for KeyChainSnapshot Parcelable" 2018-02-26 12:42:11 +00:00
Robert Berry
8230c8e0d4 Add test for KeyChainSnapshot Parcelable
Bug: 73811828
Test: runtest frameworks-core -p android.security.keystore.recovery
Change-Id: I9448ff791f4f8b82621df2d4343febdce86dbf42
2018-02-26 11:17:55 +00:00
Robert Berry
5b6bcd8514 Add tests for Recovery Controller Parcelables
Bug: 73811828
Test: runtest frameworks-core -p android.security.keystore.recovery
Change-Id: I0e77713cc3a3c6ee19e134628792782879ec2849
2018-02-25 23:47:15 +00:00
Robert Berry
291bd32c9e Remove account from WrappedApplicationKey
Recovery controller will no longer be aware of accounts. It is up to
the recovery agent to decide where to upload keys, and if so what
accounts to use.

Bug: 73811828
Test: runtest frameworks-core -p android.security.keystore.recovery
Change-Id: I929076d948f4d36ba88b68cca08058a5cdde0107
2018-02-25 23:11:17 +00:00
Seigo Nonaka
1250aa860e Put line feed to the test case
ascent10em-descent10em.ttf covers U+000A but must not be included as the
line spaceing.

Bug: 73625594
Test: bit FrameworksCoreTests:android.text.
Test: atest CtsWidgetTestCases:EditTextTest
    CtsWidgetTestCases:TextViewFadingEdgeTest
    FrameworksCoreTests:TextViewFallbackLineSpacingTest
    FrameworksCoreTests:TextViewTest FrameworksCoreTests:TypefaceTest
    CtsGraphicsTestCases:TypefaceTest CtsWidgetTestCases:TextViewTest
    CtsTextTestCases

Change-Id: I5cccd596d660c1f3ee34b0b81a44a7e4b64f3d01
2018-02-23 18:17:15 -08:00
goneil
15f5a7ef45 Store carrier app name in global settings for SIM dialog/notification
Bug: 70042722
Test: Manual QA
Change-Id: If3e97e90a37ac4e585a64c21ddfe234259cd0813
2018-02-23 13:47:44 -08:00
TreeHugger Robot
fb83c73f37 Merge "STOPSHIP: Roll forward: Add UidCpuPower global setting" 2018-02-23 17:49:17 +00:00
Christine Franks
5649922b7c Merge "Support forced Night Display auto mode" 2018-02-23 17:39:21 +00:00
Bernardo Rufino
7524b7228a Merge "Extend XML parser to allow optional requiredFlags attribute for <include /> rules in <full-backup-content> specification" 2018-02-23 09:29:21 +00:00
TreeHugger Robot
c1be09f17b Merge "OMS: Make updates to category not reset the overlay's state" 2018-02-23 05:48:18 +00:00
Adam Lesinski
7b03181ab1 OMS: Make updates to category not reset the overlay's state
- Also change how default overlays are applied. Apply them if no other
overlay is enabled for the same category as the default overlay.

Bug: 73740686
Test: manual
Test: adb shell rm /data/system/overlays.xml && adb reboot #verify that colors are blue
Test: adb pull /data/system/overlays.xml \
          && <edit overlay to remove categories> \
          && adb push overlays.xml /data/system/overlays.xml \
          && adb reboot # verify that colors are blue

Change-Id: If42afd287703e2e159d0087e477c19409f724124
2018-02-22 23:16:08 +00:00
TreeHugger Robot
99ef04f717 Merge "DisplayCutout: Cache inflations from resources" 2018-02-22 18:34:37 +00:00
Michal Karpinski
b5e0931dcd Extend XML parser to allow optional requiredFlags attribute
for <include /> rules in <full-backup-content> specification

Give an app developer the option to include files based on the
transport flags exposed by the transport. This allows conditionally
including files as long as the transport identifies itself as
for instance encrypted or device-to-device.

Extend the parsing mechanism to read optional requiredFlags
attributes, and extend existing structures to encompass
that data for BackupAgent to retrieve and act on it
based on FullBackupDataOutput#getTransportFlags().

-- Changes in robotests/

The old version of this CL (that already got reverted) broke our Robolectric
suite because it added an inner class to FullBackup and a dependency on it from
BackupAgent. FullBackup wasn't being built from Android tree (instead it was in
a prebuilt Robolectric snapshot jar of the framework) but BackupAgent was,
which resulted in not finding the inner class.

So, also in this CL. Changing our tests to include everything under
platform/base/core/java/android/app/backup from Android tree.
`m -j RunFrameworksServicesRoboTests` is green now

Bug: 72484288
Test: m -j RunFrameworksServicesRoboTests
Test: runtest frameworks-core -c android.app.backup.FullBackupTest
Test: make cts -j40 && cts-tradefed run cts -m CtsBackupHostTestCases -t android.cts.backup.FullbackupRulesHostSideTest
Change-Id: Ideaed59f8337257aa6a882ff0ce80c170b17d55e
2018-02-22 13:18:02 +00:00
Adrian Roos
8d13bf132c DisplayCutout: Cache inflations from resources
Caches inflations from resources if the parameters did  not
change. This increases the hitrate of the rotation variants
cache in window manager, and avoids unnecessairy reinflations
whenever the display changes.

Change-Id: I2ed9a2c259158bf1a6b551b3422534efbfec99c9
Bug: 72444324
Test: atest DisplayCutoutTest
2018-02-22 13:27:31 +01:00
Jan Althaus
0aacdb665c Make default entity lists flag configurable
Bug: 73277686
Test: bit CtsViewTestCases:android.view.textclassifier.cts
CtsTextTestCases:android.text.util.cts
FrameworksCoreTests:android.view.textclassifier
Change-Id: I84be54fb407088ee25c3ba2d4d62708a898621ad
2018-02-22 12:55:29 +01:00
TreeHugger Robot
b3d049c20f Merge "Adding logging for generateLinks" 2018-02-22 11:31:29 +00:00
TreeHugger Robot
db61887309 Merge "Updates the name of the native library wrapper class, adds options and removes hints." 2018-02-22 04:01:25 +00:00
TreeHugger Robot
5d10883825 Merge "Binary Cpu Time Proc File Reader" 2018-02-22 01:26:09 +00:00
Lukas Zilka
f8c36bffb8 Updates the name of the native library wrapper class, adds options and removes hints.
Test: Built, tested on device, CTS passes.

bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest

Change-Id: I7c70427d28bec8218935ed45a39819b2ece8112a
2018-02-22 00:37:02 +01:00
Mike Ma
2ab0144266 Binary Cpu Time Proc File Reader
Kernel now exposes cpu time proc files in binary format to save cpu
cycles. New proc files are:
Per uid freq time: /proc/uid_cpupower/time_in_state
Per uid active time: /proc/uid_cpupower/concurrent_active_time
Per uid cluster time: /proc/uid_cpupower/concurrent_policy_time
(See PowerProfile.java on how these data are used)
KernelUidCpuActiveTimeReader, KernelUidCpuClusterTimeReader and
KernelUidCpuFreqTimeReader are modified to use these new data.

Meanwhile, statsd needs these data too. So the actual reading
fuctionality is delegated to singletons in KernelCpuProcReader to
accomodate concurrent access of these proc files by more than one
party. When multiple read requests hit the singleton within the
throttle interval, the singleton will return stale data.

Optimization
KernelCpuProcReader reuses the same ByteBuffer to save results.
KernelUid***Reader all reuse the same long[] array to send results
back to BatteryStatsImpl. Estimated saving of ~200 KB GC effort
per read request.

Add a flag to control throttle interval:
kernel_uid_readers_throttle_time

Bug: 72763654
Bug: 71906435
Bug: 71905885
Bug: 70517018
Fixes: 73166477
Fixes: 72172569
Test: BatteryStatsCpuTimesTest
Test: KernelUidCpuActiveTimeReaderTest
Test: KernelUidCpuClusterTimeReaderTest
Test: KernelUidCpuFreqTimeReaderTest
Test: KernelCpuProcReaderTest
Change-Id: I1012667ce3b9eb35e37882a058bd4bceccabbbe9
2018-02-21 15:35:34 -08:00
Christine Franks
8ad6f6d671 Support forced Night Display auto mode
Bug: 69973773
Test: make -j100

Change-Id: Ifc1cb5d35f5d5b4ad988b8add04008332cf37dbe
2018-02-21 10:51:57 -08:00
Bernardo Rufino
756d00b9b8 Merge "Revert "Extend XML parser to allow optional requiredFlags attribute"" 2018-02-21 11:00:11 +00:00
Richard Ledley
d173506597 Merge "Replace Entity Presets with hints and an explicit factory." 2018-02-21 09:33:05 +00:00
Jan Althaus
31efdc385c Adding logging for generateLinks
Bug: 67629726
Test: Added test and manually verified end-to-end
Change-Id: If5d20b7102b875a898a2fb897b624773554c9083
2018-02-21 09:35:31 +01:00
Maurice Lam
3b4dc851cd Revert "Extend XML parser to allow optional requiredFlags attribute"
This reverts commit 34b769d32b.

Reason for revert: b/73663127

Change-Id: I8595039777d69994f6fcc1f9a6911d202c8adbbf
2018-02-21 02:05:30 +00:00
Tomasz Wasilczyk
9678d36bfc Merge "Add twasilczyk and randolphs to broadcast radio directories OWNERS." 2018-02-21 00:51:37 +00:00
Marissa Wall
04e7a9b070 STOPSHIP: Roll forward: Add UidCpuPower global setting
This will help us run P/H experiments by controlling the
uid cpu power system property through P/H.

b/70517018
Test: adb shell settings put global sys_uidcpupower 1
      verify via getprop sys.uidcpupower

Change-Id: I8cf7365be885ef4910e37d3f993ba3079e15a37d
2018-02-20 14:25:27 -08:00
Tomasz Wasilczyk
fb8adc8b2c Add twasilczyk and randolphs to broadcast radio directories OWNERS.
Test: none
Change-Id: Ib21e81a8e77f7bc321e0ff71fa259e63956bf9ae
2018-02-20 19:36:56 +00:00
TreeHugger Robot
df0d0f1a84 Merge "Extend XML parser to allow optional requiredFlags attribute for <include /> rules in <full-backup-content> specification" 2018-02-20 19:20:00 +00:00
TreeHugger Robot
c370471082 Merge changes Iff58235b,I1ea44917
* changes:
  DisplayCutout: account for cutout in appWidth/appHeight etc.
  DisplayCutout: Dispatch all non-zero safeInsets
2018-02-20 18:59:50 +00:00
Adrian Roos
242642146d DisplayCutout: Dispatch all non-zero safeInsets
Ensures that even if the display cutout does not overlap
a window, the safe insets are still dispatched if the window
overlaps any part of the cutout area and the safe insets
are therefore non-zero.

To do that, we need to compute the insets once against the
display size, then only shrink or expand the safe insets
accordingly.

Bug: 73533636
Test: atest DisplayCutoutTest
Change-Id: I1ea449178e29c7effdd92cac78af1a3875ca7e70
2018-02-20 18:04:23 +01:00
Torne (Richard Coles)
9b73804cae Add OWNERS for webview directories in framework.
Bug: 73450992
Test: N/A
Change-Id: I20e186eca8b02fa4e2d0eb729b94df8a36983906
2018-02-20 10:48:51 -05:00
Michal Karpinski
34b769d32b Extend XML parser to allow optional requiredFlags attribute
for <include /> rules in <full-backup-content> specification

Give an app developer the option to include files based on the
transport flags exposed by the transport. This allows conditionally
including files as long as the transport identifies itself as
for instance encrypted or device-to-device.

Extend the parsing mechanism to read optional requiredFlags
attributes, and extend existing structures to encompass
that data for BackupAgent to retrieve and act on it
based on FullBackupDataOutput#getTransportFlags().

Bug: 72484288
Test: runtest frameworks-core -c android.app.backup.FullBackupTest
Test: make cts -j40 && cts-tradefed run cts -m CtsBackupHostTestCases -t android.cts.backup.FullbackupRulesHostSideTest
Change-Id: Ibf12995796963f87ed19d9e357ae8546037e5f53
2018-02-20 13:46:16 +00:00
Richard Ledley
1fc998b0fd Replace Entity Presets with hints and an explicit factory.
This remove APIs to inspect the list of entities a TextClassifier will choose. We decided the developer should have no need to see these, and by not exposing it we allow more flexibility on the TextClassifier.

Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest CtsViewTestCases:android.view.textclassifier.cts.TextClassificationManagerTest FrameworksCoreTests:android.view.textclassifier.TextLinksTest

Bug: 67629726

Change-Id: I70978e692bb8a1edee1567a10c31d5ded44baa49
2018-02-19 18:05:56 +00:00
Jan Althaus
eaff57ebfe Fixing URL encoding of geo intent links
Bug: 73106770
Test: Added test and manually verified
Change-Id: Ia86450e1f6721cd50567628e4dcdcc34bca0bdf7
2018-02-19 13:39:42 +01:00
Bernardo Rufino
b331d1f1ef Merge "Add local transport parameters for transport flags GTS test" 2018-02-18 18:00:22 +00:00
Sudheer Shanka
ac417a56af Merge "Read per-uid cpu times less often." 2018-02-16 23:37:45 +00:00
TreeHugger Robot
1d84b1734d Merge "Adding maximum input size checks" 2018-02-16 18:46:50 +00:00