Commit Graph

87553 Commits

Author SHA1 Message Date
TreeHugger Robot
07b2dbc2c5 Merge "Camera: Remove individual streaming request limitation" 2018-02-14 20:25:38 +00:00
TreeHugger Robot
4963ce8efc Merge "Add support for url_bar sanitization on autofill compat mode." 2018-02-14 20:22:31 +00:00
Wale Ogunwale
5f76688c5a Merge "Remove Activity#setDisablePreviewScreenshots from system API" 2018-02-14 19:39:12 +00:00
TreeHugger Robot
2f5b9c9b03 Merge "Updates statsd atoms.proto with small changes." 2018-02-14 19:18:39 +00:00
Andrew Hsieh
d80805fe01 Merge "Fix PDK build" 2018-02-14 18:55:11 +00:00
Sudheer Shanka
9bed261a30 Merge "Update BatteryStats cpustats collection to be asynchronous." 2018-02-14 18:34:59 +00:00
Felipe Leme
185de72695 Add support for url_bar sanitization on autofill compat mode.
Browsers typically use a standard class (like EditView) to hold the URL of the
page being loaded, and the content of that view is sanitized in the initial
autofill request. So, when running in compat mode, we need a mechanism to let
services tell which view contains the URL, so we can convert its contents to
a sanitized webScheme + webDomain pair or properties.

Test: manual verification
Fixes: 72994424

Change-Id: I8be5f3533d6c31f81f28036dc51d5de10a528079
2018-02-14 09:43:21 -08:00
Chavi Weingarten
f52c1e66be Merge "Use destroy in transaction for animation" 2018-02-14 16:31:36 +00:00
Wale Ogunwale
4357d119af Remove Activity#setDisablePreviewScreenshots from system API
Change-Id: Ie106fb77f4645cc0c9061f4b6f7a4546711e5cb3
Bug: 73250551
Test: N/A
2018-02-14 07:21:52 -08:00
Wale Ogunwale
427ef56c0f Merge "Deprecated onCreateThumbnail" 2018-02-14 14:28:18 +00:00
TreeHugger Robot
18869a30b6 Merge "NIAP: Log cert validation and key integrity failures." 2018-02-14 13:45:40 +00:00
Mathew Inwood
169cb3b494 Hidden API blacklisting killswitch.
Just support "*" for now, meaning disable all API blacklisting for all
apps.

Test: Manually verified by:
- installing test app that accesses hidden API
- manually blacklist the API
- $ adb shell settings put global hidden_api_blacklist_exemptions \\*

Change-Id: I9a41a104742c9aaaf3a753e7b0f3a1106e37d4d3
2018-02-14 11:34:07 +00:00
Logan Chien
404eb2bcd5 Fix PDK build
This commit moves "IConfirmationPromptCallback.aidl" and
"IKeystoreService.aidl" to "system/security/keystore/binder" so that
"libkeystore_aidl" can be built in PDK builds.

Test: Run `cts-tradefed run cts -m CtsKeystoreTestCases` on Pixel 2017
and the test results are idential with and without this CL.

Test: Build PDK with special manifest described in
http://b/69539820#comment18 and http://b/69539820#comment19.

Test: Build a target (described in http://b/72961456) with
`platform.zip` built from master FSK source tree.

Bug: 69539820
Bug: 72961456
Change-Id: I7350f0ca943b15a6f3e40023a6cc299bdf8aed0e
2018-02-14 15:46:50 +08:00
Philip Quinn
b6bd3018c2 Add feature flag for assist gesture hardware.
Bug: 73176604
Test: make -j

Change-Id: I59f1c1638afe74a596c04e379d6d63b7f8c2df25
2018-02-14 03:09:28 +00:00
Rubin Xu
7b7b3b2090 Merge "Add System API for system update clients" 2018-02-14 02:14:59 +00:00
TreeHugger Robot
2b0d4b0b54 Merge "Zen upgrade notification" 2018-02-14 00:27:05 +00:00
David Chen
0b5c90cd8c Updates statsd atoms.proto with small changes.
Renames the apphook atom to be more descriptive. Renames time
suffixes to match more clear convention (ms and msec are ambiguous).

Adds a field to CPU active time that's required for the metrics
to be usable.

Test: Test that statsd can still build.
Change-Id: I94866510738db994e8d757260f30e599ba995dbd
2018-02-13 16:17:25 -08:00
David Brazdil
145ecabda2 Merge "Refactor runtime hidden API flag from negative to positive" 2018-02-14 00:10:28 +00:00
Sudheer Shanka
f7431febe0 Merge "Update the internal state before sending the deltas to callback." 2018-02-13 23:44:56 +00:00
Phil Weaver
00ba26dd7b Merge "Add a11y titles for a few sysui windows" 2018-02-13 23:12:16 +00:00
Beverly
3bae4e5d86 Zen upgrade notification
Test: runtest --path /extra/master/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ZenModeHelperTest.java
Change-Id: Ia31f89af74d9bcee40e050bd6cc13f1e6a9a15d9
Fixes: 73000503
Fixes: 72876890
Fixes: 73110052
2018-02-13 17:29:59 -05:00
TreeHugger Robot
2566f5a2ff Merge "Add @throws clause to getInstallerPackageName" 2018-02-13 21:08:54 +00:00
Sudheer Shanka
125e4ec2dd Merge "check if per-uid cputimes proc file has correct no. of freqs." 2018-02-13 21:04:08 +00:00
TreeHugger Robot
e9f70acf05 Merge "Fix timeouts caused by destroy() waiting for the same lock on sort." 2018-02-13 20:44:42 +00:00
TreeHugger Robot
f93ae682e1 Merge "Fix race condition with calling stop() before run()" 2018-02-13 20:31:22 +00:00
Sudheer Shanka
c57729adae Update BatteryStats cpustats collection to be asynchronous.
- Collect cpu times info asynchronously when the screen state changes.
- Remove the redundant cpu collection during the battery state handling.
- Fix BatteryStatsNoteTest failing because of http://b/70808931

Bug: 70563832
Bug: 69054238
Test: atest hostsidetests/incident/src/com/android/server/cts/BatteryStatsValidationTest.java
Test: atest core/tests/coretests/src/com/android/internal/os/BatteryStatsTests.java
Test: atest core/tests/coretests/src/com/android/internal/os/BstatsCpuTimesValidationTest.java
Change-Id: Ic6441d45f94dc0703b8adc03cb8d3ab5f877626d
2018-02-13 12:27:50 -08:00
Makoto Onuki
501406650a Merge "Sync too many retries" 2018-02-13 20:14:21 +00:00
TreeHugger Robot
72698e6f39 Merge "Revert "Use ImageDecoder for NinePatchDrawable and BitmapDrawable"" 2018-02-13 20:13:04 +00:00
TreeHugger Robot
7608c744ad Merge "Switch to public API version" 2018-02-13 19:29:32 +00:00
Pavel Grafov
f8839eaaf7 NIAP: Log cert validation and key integrity failures.
Bug: 70886042
Test: manual, connect to EAP-TLS with self-signed cert.
Test: manual, create a key and damage it in /data/misc/keystore/user_0/
Change-Id: I61a8307da72bac38993f6588e9f184b360f6bf79
2018-02-13 19:22:04 +00:00
Todd Kennedy
9db6563b29 Add @throws clause to getInstallerPackageName
It's confusing that this method would throw the unchecked
IllegalArgumentException.

Test: Manual
Change-Id: I0e7fbf888d6408783fbcf698db0407e773661968
Fixes: 73279116
2018-02-13 11:12:35 -08:00
Phil Weaver
8583ae8a6a Add a11y titles for a few sysui windows
Adding for status bar, nav bar, and global actions dialog.
Also removing some extra code from global actions dialog
that populated window state changes. Apps in general don't
need this extra information, so we don't need to maintain
it in SysUi either.

In verifying the fix, I noticed that all windows were
considered anchored because of a mismatch between long and
int. Fixing that too.

Bug: 73131182
Test: With the testback a11y service, verified that these
titles do indeed appear in the window information provided
to accessibility services. Also noted that windows are no
longer reporting themselves as anchored.

Change-Id: Ie09fbb88250b3c9663d6c28001e0ce9f70c67954
2018-02-13 11:01:24 -08:00
Wale Ogunwale
578b3bd59d Deprecated onCreateThumbnail
API hasn't done anything in the platform for ages and there is not plan
to make it do anything.

Change-Id: I7d433a0d45aed860659c311381bc9f356eb9f986
Fixes: 73249948
Test: builds
2018-02-13 10:59:18 -08:00
David Brazdil
f7e31c0a2b Refactor runtime hidden API flag from negative to positive
There are only two situations in which we want to enable hidden API
access flag checks. Turning the flag from DISABLE_ to ENABLE_
simplifies logic in ART and reduces the number places where the flag
had to be passed down to ART.

Bug: 64382372
Test: boot device, install and run apps, check log messages
Change-Id: Ic5a531834360b614fc93d54221c7395579791184
2018-02-13 18:36:51 +00:00
Makoto Onuki
aad2b51bb1 Sync too many retries
- When an one-shot sync with app-standby exempt fails too many times in a row,
drop the "exempt from app-standby" flag.

- Also obtain some constants from global settings so we can change them
in CTS.

Bug: 72443754
Test: Manual test (CTS WIP)

Change-Id: Ibdbb348a7ff26a0be04b8f2c256e1f6ead39907d
2018-02-13 10:15:45 -08:00
Rhiannon Malia
619e2c0d61 Merge "Adding suppressShowOverApps to TvExtender" 2018-02-13 18:14:31 +00:00
Niels Egberts
32011ea4f1 Fix race condition with calling stop() before run()
The code assumed that when stop() is called before run(), it's not
neccessary to signal mNotFull, but in rare cases the synthesizer may
already have filled the buffer before run() is called.

Test: manual

Bug: 70887227
Change-Id: I83117f3541d37830b344bc9eda34e1f380b58e76
2018-02-13 18:13:36 +00:00
TreeHugger Robot
acc788a952 Merge "Reorganize MeasuredText API" 2018-02-13 17:51:13 +00:00
Phil Weaver
c110d25913 Merge "Migrate notification shade to use the a11y panes" 2018-02-13 16:59:27 +00:00
hansson
38a5423c70 Merge "fix misleading FATAL EXCEPTION IN SYSTEM PROCESS log" am: c0c9f53175 am: 78d15fd15a
am: 927afd1edf

Change-Id: I7c90804ed55df27244a25fe0e9075c4ec2147e74
2018-02-13 16:49:00 +00:00
hansson
927afd1edf Merge "fix misleading FATAL EXCEPTION IN SYSTEM PROCESS log" am: c0c9f53175
am: 78d15fd15a

Change-Id: Ie90bccf5aa5fb67e1b4769fcbb1013b1fae71063
2018-02-13 16:39:33 +00:00
hansson
78d15fd15a Merge "fix misleading FATAL EXCEPTION IN SYSTEM PROCESS log"
am: c0c9f53175

Change-Id: I25f1aad9e04c22e0cd4ffc848a53c30dd740bdac
2018-02-13 16:31:53 +00:00
TreeHugger Robot
40ce09581d Merge "Add OWNERS for preferences" 2018-02-13 13:17:21 +00:00
yuanhuihui
e669ac2520 fix misleading FATAL EXCEPTION IN SYSTEM PROCESS log
There will be the following situations about mApplicationObject:

1) fork app process will invoke ActivityThread.main(),
then set mApplicationObject.

2) fork system_server, don't set mApplicationObject value.

3) using app_process fork process except zygote, will inovke RuntimeInit,
don't set mApplicationObject value。

For example using command as below:
app_process /system/bin com.android.commands.am.Am "$@",

if this process throw uncaught exception,will output FATAL EXCEPTION IN SYSTEM PROCESS log,
it's not in system process but in normal process。

so should add condition: Process.SYSTEM_UID == Process.myUid()

BUG: 72759350
Test: manual

Change-Id: Ie8d769e4149cd9b938577058de871c4f8db9efe5
Signed-off-by: yuanhuihui <yuanhuihui@xiaomi.com>
2018-02-13 12:52:38 +00:00
Clara Bayarri
a137711868 Add OWNERS for preferences
Test: none
Change-Id: I1679ba3f10a89a4076888936aebf067c371bcf27
2018-02-13 11:28:02 +00:00
TreeHugger Robot
d71e03f0a1 Merge "Fix work profile shortcut launch" 2018-02-13 09:07:36 +00:00
Seigo Nonaka
7fd36d19e3 Reorganize MeasuredText API
This CL changes the MeasuredText API:
- Rename MeasuredText to PrecomputedText.
- PrecomputedText is no longer a Spanned.
- 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)

Here is a performance scores: (median, walleye-userdebug, N=20)

StaticLayout creation time (w/o patch -> w/ patch)
 PrecomputedText Balanced Hyphenation  :    743,615 ->    737,145: (-0.9%)
 PrecomputedText Balanced NoHyphenation:    551,544 ->    542,715: (-1.6%)
 PrecomputedText Greedy Hyphenation    :    500,343 ->    499,601: (-0.1%)
 PrecomputedText Greedy NoHyphenation  :    497,987 ->    492,587: (-1.1%)
 RandomText Balanced Hyphenation       : 19,100,592 -> 19,135,289: (+0.2%)
 RandomText Balanced NoHyphenation     :  8,015,088 ->  7,954,260: (-0.8%)
 RandomText Greedy Hyphenation         :  7,950,915 ->  7,877,424: (-0.9%)
 RandomText Greedy NoHyphenation       :  7,939,337 ->  7,863,471: (-1.0%)

PrecomputedText creation time (w/o patch -> w/ patch)
 NoStyled Hyphenation                  : 18,935,638 -> 18,925,422: (-0.1%)
 NoStyled Hyphenation WidthOnly        : 18,469,726 -> 18,978,413: (+2.8%)
 NoStyled NoHyphenation                :  7,940,792 ->  7,919,127: (-0.3%)
 NoStyled NoHyphenation WidthOnly      :  7,463,230 ->  7,922,643: (+6.2%)
 Styled Hyphenation                    : 14,822,501 -> 14,809,017: (-0.1%)
 Styled Hyphenation WidthOnly          : 13,891,770 -> 14,656,617: (+5.5%)
 Styled NoHyphenation                  : 14,511,134 -> 14,301,503: (-1.4%)
 Styled NoHyphenation WidthOnly        : 13,495,345 -> 14,264,314: (+5.7%)

StaticLayout draw time (w/o patch -> w/ patch)
 PrecomputedText NoStyled              :    663,974 ->    661,610: (-0.4%)
 PrecomputedText NoStyled WithoutCache :    648,294 ->    648,766: (+0.1%)
 PrecomputedText Styled                :    879,322 ->    852,770: (-3.0%)
 PrecomputedText Styled WithoutCache   :  1,084,570 ->  1,110,147: (+2.4%)
 RandomText NoStyled                   :    565,682 ->    555,435: (-1.8%)
 RandomText NoStyled WithoutCache      :  9,070,533 ->  9,064,825: (-0.1%)
 RandomText Styled                     :  2,955,202 ->  2,962,008: (+0.2%)
 RandomText Styled WithoutCache        : 12,242,325 -> 12,228,573: (-0.1%)

Bug: 67504091
Bug: 73091756
Test: bit FrameworksCoreTests:android.text.
Test: atest CtsWidgetTestCases:EditTextTest \
    CtsWidgetTestCases:TextViewFadingEdgeTest \
    FrameworksCoreTests:TextViewFallbackLineSpacingTest \
    FrameworksCoreTests:TextViewTest FrameworksCoreTests:TypefaceTest \
    CtsGraphicsTestCases:TypefaceTest CtsWidgetTestCases:TextViewTest \
    CtsTextTestCases
Change-Id: I7db9e2ca4db68a16648cfb8fcf63555f501304c2
2018-02-12 20:50:41 -08:00
TreeHugger Robot
08eabcf8d5 Merge "Send SHUTDOWN bc to registered receivers only" 2018-02-13 04:32:02 +00:00
TreeHugger Robot
f91f5dc809 Merge "API Review: Nullability annotation for DeviceAdminReceiver device owner user callback" 2018-02-13 04:18:32 +00:00
TreeHugger Robot
40240cf782 Merge "Revert "Add logging to MemoryIntArray"" 2018-02-13 03:13:43 +00:00