Commit Graph

79836 Commits

Author SHA1 Message Date
Nate Fischer
65e3be0255 WebView: add @NonNull annotation to API
No change to logic, only an annotation change.

startSafeBrowsing() should never receive a null Context. This adds
@NonNull to hint to developers not to pass null Contexts.

Test: N/A
Change-Id: I46d863047bf7563ea2a1adf592f3f381be95ca49
2018-03-01 00:55:35 -08:00
nharold
e7e42ceb02 Merge "Fix ConnectivityServiceTest for NATT Keepalive" am: 6d5aea8811 am: ad96984eb5
am: 0a177afbb8

Change-Id: I2ce9d740b82f591b847150ec1eaffa39bfbd0241
2018-02-20 23:21:59 +00:00
nharold
0a177afbb8 Merge "Fix ConnectivityServiceTest for NATT Keepalive" am: 6d5aea8811
am: ad96984eb5

Change-Id: I3c28cbb55f8226776792df9cacf1b5e527389157
2018-02-20 23:07:53 +00:00
nharold
ad96984eb5 Merge "Fix ConnectivityServiceTest for NATT Keepalive"
am: 6d5aea8811

Change-Id: Idbdffc7bbd2d9a96f6e6052810722df04a20a65c
2018-02-20 22:55:38 +00:00
Seigo Nonaka
e68ba070bb Merge "Reorganize MeasuredText API (2nd)" 2018-02-20 21:14:53 +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
nharold
6d5aea8811 Merge "Fix ConnectivityServiceTest for NATT Keepalive" 2018-02-20 19:17:23 +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
TreeHugger Robot
761b33299a Merge "Log deferred jobs metrics to batterystats" 2018-02-20 18:52:24 +00:00
TreeHugger Robot
414189fefe Merge "APIs to watch active op changes" 2018-02-20 18:46:57 +00:00
Kodlee Yin
3feba764d6 Merge "Add Notification.Action.SEMANTIC_ACTION_CALL" 2018-02-20 18:39:19 +00:00
TreeHugger Robot
35289c475b Merge "Add OWNERS for webview directories in framework." 2018-02-20 18:32:14 +00:00
Narayan Kamath
28ff9ceeeb Merge "Revert "Log the apk optimization state in the MetricsLogger"" 2018-02-20 18:17:34 +00:00
Phil Weaver
6ef5bbc9b1 Merge "Get text positions from transformed text" 2018-02-20 17:32:27 +00:00
Narayan Kamath
203a9ab766 Revert "Log the apk optimization state in the MetricsLogger"
This reverts commit 0a8bea818c.


E AndroidRuntime: *** FATAL EXCEPTION IN SYSTEM PROCESS: ActivityManager
E AndroidRuntime: java.lang.NullPointerException: Attempt to read from field 'java.lang.String com.android.server.am.ProcessRecord.requiredAbi' on a null object reference
E AndroidRuntime:        at com.android.server.am.ActivityMetricsLogger.logAppTransition(ActivityMetricsLogger.java:504)
E AndroidRuntime:        at com.android.server.am.ActivityMetricsLogger.access$100(ActivityMetricsLogger.java:62)

Bug: 73626352
Change-Id: Idd50e0d2cf34e5393b4ae76ef8bc48b0067532eb
2018-02-20 17:06:21 +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
TreeHugger Robot
6b10cbd0f2 Merge "Add tracing tags to vibrator" 2018-02-19 21:38:23 +00:00
Calin Juravle
6e24ac8948 Merge "Log the apk optimization state in the MetricsLogger" 2018-02-19 19:36:08 +00:00
TreeHugger Robot
422ec51d13 Merge "Fixing URL encoding of geo intent links" 2018-02-19 15:18:42 +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
TreeHugger Robot
944836c6c7 Merge "TextClassifier: Support service intents." 2018-02-19 11:04:16 +00:00
Amith Yamasani
977e11f335 Log deferred jobs metrics to batterystats
Log the deferred jobs event count, number of deferred jobs,
time since last job execution and break those down into
different time-since buckets in case the average becomes
too noisy.

Bug: 70297451
Test: dumpsys batterystats --checkin

Change-Id: Iafad6137989246f203a623ce1511140d4eac35b0
2018-02-18 22:43:13 -08:00
Chalard Jean
473b3b7f03 Merge "DO NOT MERGE : fix useless import" 2018-02-18 23:14:42 +00:00
Bernardo Rufino
b331d1f1ef Merge "Add local transport parameters for transport flags GTS test" 2018-02-18 18:00:22 +00:00
TreeHugger Robot
d64db3a88b Merge "Add OWNERS for AccountManager." 2018-02-17 13:55:37 +00:00
TreeHugger Robot
0c200baed4 Merge "Minor autofill changes to support compat mode CTS tests." 2018-02-17 11:17:05 +00:00
Scott Kennedy
9c356d7590 Merge "Add @Nullable to return values in Uri" am: cfc6897a39 am: a03c35d74a
am: 68636f2e8a

Change-Id: Iac3c67b843418ca3529be782667c02f4a35fee9c
2018-02-17 08:08:30 +00:00
Scott Kennedy
68636f2e8a Merge "Add @Nullable to return values in Uri" am: cfc6897a39
am: a03c35d74a

Change-Id: Ia145a065eabe75e72051287005cd5ab341fe2824
2018-02-17 07:58:31 +00:00
Scott Kennedy
a03c35d74a Merge "Add @Nullable to return values in Uri"
am: cfc6897a39

Change-Id: I109bd5952643598c5306ab27debb4dd2b30fffed
2018-02-17 07:45:37 +00:00
Treehugger Robot
cfc6897a39 Merge "Add @Nullable to return values in Uri" 2018-02-17 04:49:23 +00:00
Robert Sesek
c0276a54ec Merge "Add Zygote.startChildZygote() to fork a new process that itself is a zygote." am: 554cfd1f1d am: 5b9410c74b
am: 4523bf284a

Change-Id: Ib714e447f06323d38c98de683f5547e66749856e
2018-02-17 04:08:15 +00:00
Robert Sesek
4523bf284a Merge "Add Zygote.startChildZygote() to fork a new process that itself is a zygote." am: 554cfd1f1d
am: 5b9410c74b

Change-Id: I5e9d5c960b9f78cfa7ca7ab88e9d2075f97daca8
2018-02-17 03:51:28 +00:00
Seigo Nonaka
beafa1f9d2 Reorganize MeasuredText API (2nd)
This is 2nd attempt of I7db9e2ca4db68a16648cfb8fcf63555f501304c2

This CL changes the MeasuredText API:
- Rename MeasuredText to PrecomputedText.
- Introduce PrecomputedText.Param which holds all text layout parameters.
- Add API to get PrecomputedText.Param from TextView.
- Remove MeasuredText.Builder and add PrecomputedText.create method instead.
- Remove setRange from MeasuredText since it is not for normal use case.
  (It can not be used for TextView)

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

Change-Id: Ie73bce52c6c673cda58973ddad04627a7cf2e5e9
2018-02-16 19:42:00 -08:00
Robert Sesek
5b9410c74b Merge "Add Zygote.startChildZygote() to fork a new process that itself is a zygote."
am: 554cfd1f1d

Change-Id: I723f75be6488390932a60b411ac04660c16d93d1
2018-02-17 03:41:55 +00:00
Svetoslav Ganov
2d20fb47f4 APIs to watch active op changes
System singed components can watch for starting/finishing of
long running app ops. Also protected the APIs to watch op mode
changes with a singature permission for the cross-uid use case.

Test: atest com.android.server.appops.AppOpsActiveWatcherTest

bug:64085448

Change-Id: Id7fe79ce1de4c5690b4f52786424ec5a5d9eb0fa
2018-02-16 18:29:04 -08:00
Svet Ganov
47b37aa034 Minor autofill changes to support compat mode CTS tests.
Bug: 72811561
Test: atest CtsAutoFillServiceTestCases:VirtualContainerActivityCompatModeTest

Change-Id: I6ec2563cea75afc77a1598805988d8e6c433c574
2018-02-16 18:01:17 -08:00
TreeHugger Robot
3d9ae24567 Merge "Add feature annotation to UsbManager" 2018-02-17 01:56:06 +00:00
Treehugger Robot
554cfd1f1d Merge "Add Zygote.startChildZygote() to fork a new process that itself is a zygote." 2018-02-17 01:39:54 +00:00
Abodunrinwa Toki
2f19b92c75 TextClassifier: Support service intents.
Previously, the TextClassifier only supported Activity intents.

Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest
Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest
Change-Id: Ic488e2f6241eb91a6cd6e16d9f84a49a679164dc
2018-02-17 01:30:55 +00:00
Hans Boehm
81e7e3c908 Merge "Avoid BinderProxy duplicate native registration" 2018-02-17 01:28:49 +00:00
Nathan Harold
63dd81390d Fix ConnectivityServiceTest for NATT Keepalive
Fix test breakages I caused when adding cell
support for NATT keepalives.

-Make the minimum keepalive interval a constant in
 ConnectivityManager and use it in tests.
-Re-Disallow IPv6 Keepalives

Bug: 73327535
Test: 'runtest -x ConnectivityServiceTest' now passes
Change-Id: I5ec4367d250ee371014e65c897c3897a25a05e2d
2018-02-16 16:34:50 -08:00
Phil Weaver
cc595bb4a7 Get text positions from transformed text
Using the non-transformed text is bad because the
transformed text is what's actually on the screen,
so it is the thing whose position is relevant.

Bug: 69044691
Test: Updating a11y cts test to use an all-caps
german strong s, which causes the transformed text
to be longer than the original text. That changed
test fails without this fix.

Change-Id: Ia7aac3b4322ffb48f10771f4d1b33c80ca28b120
2018-02-16 16:23:35 -08:00
Calin Juravle
0a8bea818c Log the apk optimization state in the MetricsLogger
Log the apk optimization state for app transition events. This will allow
precise measurement of the events based on the level of optimizations
performed.

Test: manual, adb logcat -b events | grep sysui_multi_action
Bug: 73102540
Change-Id: Ia8ccddff4ebe4120e05bb5d1dfb1cd458fa61e8a
2018-02-16 15:46:14 -08:00
Sandra Kwan
e1395b42ef Add OWNERS for AccountManager.
Test: no code change.

Change-Id: I6dabe8ff503a68d0ac2082a9149c23e0d4fd46ea
2018-02-16 15:40:27 -08:00
Sudheer Shanka
ac417a56af Merge "Read per-uid cpu times less often." 2018-02-16 23:37:45 +00:00
TreeHugger Robot
243239504a Merge "Always remeasure weighted children, even if there's no excess space" 2018-02-16 22:53:42 +00:00
Adrian Roos
1d96275756 Merge "OverlayManager: Add categories" 2018-02-16 22:47:11 +00:00
Jeff Sharkey
5e4bebb891 Merge "Better handling of NTP-based clocks." 2018-02-16 22:13:01 +00:00