Commit Graph

85215 Commits

Author SHA1 Message Date
Peter Visontay
1195083c0d Log an App Op when an accessibility service is registered.
Bug: 63907873
Test: manually tested that the app op is being logged for TalkBack when it's being registered as an accessibility service.
Change-Id: I10f36a86067950ef57c7afc7bf2f01efff46689c
2017-12-13 14:59:51 +00:00
Adrian Roos
ba5aaf1867 Merge "DisplayCutout: Only dispatch to apps requesting it" 2017-12-12 21:15:59 +00:00
Hansong Zhang
57365515d5 Merge "Make BluetoothPbap implement BluetoothProfile (1/3)" am: 5b6b73800c am: 64d81fbf33
am: 9c6044771f

Change-Id: I0390d33d0d56b29e3632a4fe78106fcae4fcfb32
2017-12-12 19:35:42 +00:00
Hansong Zhang
9c6044771f Merge "Make BluetoothPbap implement BluetoothProfile (1/3)" am: 5b6b73800c
am: 64d81fbf33

Change-Id: I1be05324ec0134c801de08e0f60139c341261f33
2017-12-12 19:22:12 +00:00
Treehugger Robot
5b6b73800c Merge "Make BluetoothPbap implement BluetoothProfile (1/3)" 2017-12-12 19:02:25 +00:00
TreeHugger Robot
a22a7c2f97 Merge "Add DevicePolicyManager.isEphemeralUser" 2017-12-12 18:40:04 +00:00
TreeHugger Robot
659f6b2204 Merge "Fix bug when generating the textclassifier intent." 2017-12-12 17:35:25 +00:00
Peter Visontay
ef1a2a4f4c Merge "Define an App Op for REQUEST_DELETE_PACKAGES." 2017-12-12 17:27:46 +00:00
Adrian Roos
2b0dcb3fd2 DisplayCutout: Only dispatch to apps requesting it
Fixes a compatibility issues, where apps that were not expecting
a cutout were dispatched one anyway, which caused the WindowInsets
dispatch to continue down the hierarchy even though the SystemInsets
were consumed by the app.

To avoid this, we pre-emptively consume the cutout for any apps that
did not request to be laid out in the cutout area. This is safe,
because for apps that don't request it, the status bar will take care
of consuming it, or they won't be laid out in the cutout at all.

If apps still need to know where the cutout is, they can query for it
via View.getRootWindowInsets().

Fixes: 65689439
Bug: 70490585
Test: atest android.view.cts.DisplayCutoutTest
Change-Id: If06674c619f095d4105be1b3a511fb5823b63d2b
2017-12-12 18:16:27 +01:00
TreeHugger Robot
ec646687c3 Merge "Add Slice.Builder#addBundle" 2017-12-12 16:44:13 +00:00
Seigo Nonaka
b507df4569 Merge "Introduce PremeasuredText" 2017-12-12 16:40:27 +00:00
TreeHugger Robot
14f9635110 Merge "Use IBinder#shellCommand() for 'adb shell ime'" 2017-12-12 14:49:25 +00:00
Jason Monk
fed72bf199 Add Slice.Builder#addBundle
Its for support lib expansion in the future, not for dev use.

Bug: 68378561
Test: atest cts/tests/tests/slice
Change-Id: Ifc73e56c391bd4abed3b8db3c597d7dc794c1a3c
2017-12-12 09:30:28 -05:00
TreeHugger Robot
ac6aaf5fdd Merge "Nullcheck to fix Autofill CTS" 2017-12-12 05:47:48 +00:00
Siyamed Sinir
ddd156bed5 Merge "Fix an incorrect display position of error popup in RTL layout" am: b7941c50a0 am: 0863cf4e40
am: 8fc08cc0f6

Change-Id: I96476450550e726c3ac6c07e39afcd175cfee043
2017-12-12 04:39:15 +00:00
Siyamed Sinir
8fc08cc0f6 Merge "Fix an incorrect display position of error popup in RTL layout" am: b7941c50a0
am: 0863cf4e40

Change-Id: Ief495fcc7e6f711696ed6337ab65face9d03c981
2017-12-12 04:25:54 +00:00
Siyamed Sinir
b7941c50a0 Merge "Fix an incorrect display position of error popup in RTL layout" 2017-12-12 03:57:43 +00:00
Seigo Nonaka
fbe63bddd6 Introduce PremeasuredText
By measuring the character widths beforehand, we can save at least 40%
of the StaticLayout construction time which typically happens on UI
thread.
Also verified this doesn't cause performance regression for not
premeasured text.

Raw performance score (Not premeasured -> premeasured, median, N=100)

No Style,   Greedy, Hyphenation OFF:  7,812,975 ->    503,245 (-93.6%)
No Style, Balanced, Hyphenation OFF:  7,843,254 ->    396,892 (-95.0%)

No Style,   Greedy, Hyphenation ON : 19,134,214 -> 11,658,928 (-39.1%)
No Style, Balanced, Hyphenation ON : 19,348,062 -> 11,634,942 (-39.9%)

Styled,     Greedy, Hyphenation OFF: 14,353,673 ->    572,840 (-96.0%)

Raw performance score (w/o patch -> w/ patch, median, N=100):

No Style,   Greedy, Hyphenation OFF:  7,732,894 ->  7,812,975 (+1.04%)
No Style, Balanced, Hyphenation OFF:  7,884,510 ->  7,843,254 (-0.52%)

No Style,   Greedy, Hyphenation ON : 18,986,958 -> 19,134,214 (+0.78%)
No Style, Balanced, Hyphenation ON : 19,232,791 -> 19,348,062 (+0.60%)

Styled,     Greedy, Hyphenation OFF: 14,319,690 -> 14,353,673 (+0.24%)

Bug: 67504091
Test: bit CtsTextTestCases:*
Test: bit CtsGraphicsTestCases:*
Test: bit CtsWidgetTestCases:*
Test: FrameworksCoreTests:android.text.MeasuredTextTest
Change-Id: I0b46f04b42cc012606a9c722eca0d51147a0dcc7
2017-12-11 18:55:12 -08:00
TreeHugger Robot
1a6d229e76 Merge "Proper autofill fix to let phone process autofill Settings activity." 2017-12-12 02:21:59 +00:00
TreeHugger Robot
950c769caf Merge "Convert screenshot hw Bitmap to sw Bitmap for screenshot preview." 2017-12-12 02:07:10 +00:00
Yohei Yukawa
926488d70d Use IBinder#shellCommand() for 'adb shell ime'
This is a preparation CL to add a new command to 'adb shell ime'.

Currently 'ime' command is written in Java language that relies directly
on the internal Binder IPC interface IInputMethodManager.

This is not ideal because:

 1. We have to keep maintaining IInputMethodManager methods used
    only by the 'ime' command.
 2. Adding new options to the 'ime' command is tedious when it
    requires new methods in IInputMethodManager.

With this CL, all features of 'ime' command are re-implemented inside
InputMethodManagerService (IMMS) on top of Binder's "shell command"
feature [1].  Like 'am' command was gone recently [2], now 'ime' command
is also a simple shell wrapper to forward options to 'cmd input_method',
which allows us to 1) reduce the code duplication and 2) give non-zero
status code when the command fails with Java exception.

 [1]: I76518ea6719d1d08a8ad8722a059c7f5fd86813a
      9461b6f91f
 [2]: Ia8187196af597046fd2e7092dbf19ce1dc1ea457
      1704e3cf0c

Bug: 70475949
Test: adb shell ime
Test: adb shell ime help
Test: adb shell ime dump
Test: adb shell ime list -a
Test: adb shell cmd input_method
Test: adb shell cmd input_method help
Test: adb shell cmd input_method dump
Test: adb shell cmd input_method list -a
Change-Id: I9a2dbbf1d4494addbe22c82e2c416eedc4d585f2
2017-12-11 17:24:55 -08:00
TreeHugger Robot
ce4a7401de Merge "incidentd: Removing history from batterystats dump." 2017-12-12 01:04:57 +00:00
TreeHugger Robot
efdede0f4a Merge "Cancel alarms & jobs when an app's data is cleared" 2017-12-12 00:48:22 +00:00
Todd Kennedy
57e6b4fb4d Merge "Fix package manager tests" 2017-12-12 00:37:35 +00:00
Felipe Leme
2a580d18f6 Proper autofill fix to let phone process autofill Settings activity.
Test: adb shell am start com.android.settings/.RadioInfo
Fixes: 70506888

Change-Id: Id29bad2d20b621f7379eb6144c95dcc819949b3d
2017-12-11 16:19:48 -08:00
TreeHugger Robot
841e3fba55 Merge "Add Chromium ARC EventLogTags" 2017-12-12 00:03:56 +00:00
Holly Jiuyu Sun
486385092b Merge "Carrier confirmation code." am: 6627d2c4df
am: 0e788e00b6

Change-Id: Ibbb439b724ee031b76ff42ecd84c3c1f2df69ae1
2017-12-11 23:58:48 +00:00
Eugene Susla
dfb43327da Nullcheck to fix Autofill CTS
Test: presubmit
Fixes: 70506475
Change-Id: I187bed4889a4901a7137a2995178ea651ed09186
2017-12-11 15:35:12 -08:00
Holly Jiuyu Sun
6627d2c4df Merge "Carrier confirmation code." 2017-12-11 23:29:34 +00:00
TreeHugger Robot
86b9d9b4b1 Merge "Fix testCursorIsOnRight test case" 2017-12-11 22:22:39 +00:00
TreeHugger Robot
8c919fd93c Merge "Introduce API to enable existing packages on shared users" 2017-12-11 22:21:12 +00:00
TreeHugger Robot
d8171027f3 Merge "OMS: Only allow trusted overlays to be registered." 2017-12-11 21:51:41 +00:00
TreeHugger Robot
42aecd7800 Merge "Change colors to allow transport of more generic ints" 2017-12-11 21:45:04 +00:00
Hansong Zhang
fef6d81156 Make BluetoothPbap implement BluetoothProfile (1/3)
* BluetoothPbap will implement BluetoothProfile to be consistent with
other profiles
* Changed the method names to match the BluetoothProfile method
signatures
* Removed doesClassMatchSink() as it is never used
* Disable default DEBUG logs

Test: test with carkits
Bug: 69417672
Change-Id: I0766188f77468808d7505780c781f5fd8608af60
2017-12-11 13:36:45 -08:00
Todd Kennedy
5b1df2fb5a Fix package manager tests
Test: bit FrameworksServicesTests:com.android.server.pm.
Change-Id: I06089adcdf6cdaebc7176cab30254cc2cbd836eb
2017-12-11 13:36:18 -08:00
TreeHugger Robot
b5079d1f47 Merge changes I2a808b9f,I8cbd4651
* changes:
  Implements queryNanoApps API
  Implements the new loadNanoApp/unloadNanoApp APIs
2017-12-11 20:44:25 +00:00
Kweku Adams
6ccebf2393 incidentd: Removing history from batterystats dump.
Bug: 65750808
Test: N/A
Change-Id: I4790b616791f68833196b50b76d3fd24faa8d46b
2017-12-11 12:30:35 -08:00
Seigo Nonaka
4b6bceec36 Fix testCursorIsOnRight test case
This is partial revert of Ie932903845645e50cfa0cb428babb31a44babc47

The root cause is MeasuredText.getParagraphDir respect requsted text
direction even if it is an empty text. Ideally we don't need to create
MeasuredText object for empty string but for safety, reverted to the
original code.

Bug: 70384435
Test: bit FrameworksCoreTests:android.widget.EditorCursorTest
Change-Id: Id24405f476c50fa27743589a640281d96de1c9ce
2017-12-11 12:26:13 -08:00
susanta.patra
02775c7852 Merge "Fixed button bar alignment issue in RTL languages" am: 403c8f72e3 am: 2063b1f792
am: bf62defed2

Change-Id: I7113cb185049848344c01b857e8a8646e9967432
2017-12-11 20:00:17 +00:00
Jason Monk
740a650dac Change colors to allow transport of more generic ints
This is in preparation for sliders, also add some hints/types that
will be used for sliders.

Test: atest cts/tests/tests/slice
Bug: 68378584
Change-Id: I8f6a8bb7c80854b51c421a437318975f517a2169
2017-12-11 14:44:00 -05:00
susanta.patra
bf62defed2 Merge "Fixed button bar alignment issue in RTL languages" am: 403c8f72e3
am: 2063b1f792

Change-Id: I7493a720ef88f0b40ebed483d474a34ad9ee5da4
2017-12-11 19:41:40 +00:00
TreeHugger Robot
a21ae5cb5d Merge "Fix resizing when hardware renderer is off." 2017-12-11 19:36:57 +00:00
Ricardo Quesada
ab086c5a3b Add Chromium ARC EventLogTags
Add EventLogTags for org.chromium.arc package.

Small CL that enables org.chromium.arc EventLogTags in master.

Bug: 70513529
Test: compiled on marlin. did not generate any conflict. marlin worked
      Ok.

Change-Id: I4bda5985c337e0b3434774c4b6b11c83d3ac49ed
2017-12-11 11:26:53 -08:00
Treehugger Robot
403c8f72e3 Merge "Fixed button bar alignment issue in RTL languages" 2017-12-11 19:10:46 +00:00
Arthur Ishiguro
4493e14984 Implements queryNanoApps API
Bug: 67734082
Test: Run a test app to use the new query API, verify returns the
expected set of nanoapps
Change-Id: I2a808b9f80dd0d9168466f80b79ca1fa35da242c
2017-12-11 10:57:09 -08:00
Abodunrinwa Toki
46664a88fe Fix bug when generating the textclassifier intent.
Our automated tests should have caught this issue, but they weren't run
 on the offending cl (I294f7e4d16c98c6512d56d08d488b204c1f91d47).

Fixes: 70279108
Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest
Change-Id: I99ced41a7c92bece02754fc72966c5440752d8d6
2017-12-11 17:44:13 +00:00
Jeff Sharkey
27674aedc0 Merge "Add auto-doc support for @StringDef." 2017-12-11 16:47:13 +00:00
Neil Fuller
7888d2f9eb Merge "Tidy up changes for timezone update code" 2017-12-11 14:35:22 +00:00
Alex Chau
5343fcb77d Introduce API to enable existing packages on shared users
- Also unhide setKeepUninstalledPackages
- installExistingPackage accpets delegation API because all app
  managemnet PIs did the same, including setKeepUninstalledPackages and
  enableSytemApp

Bug: 70017947
Bug: 65842106
Test: Install apps already installed in u0 in shared user should succeed
Test: Install apps in setKeepUninstalledPackages cache in shared user
      should succeed
Test: Install apps via delegated package should succeed
Test: Install apps via unaffiliated profile owner should fail
Test: Install apps not installed in any user or in APK cache shoudl fail
Change-Id: Iba563b2050abd0d1f46bfa06cfc0526b7b476b3b
2017-12-11 14:13:00 +00:00
Alex Chau
8d6e18c879 Add DevicePolicyManager.isEphemeralUser
Bug: 67580550
Test: The AP returns false in primary user.
Test: Create ephemeral user with createAndManageUser, ensure the API return true.
Change-Id: I1e670ca8a8c6171ddb94a1e4b1cb1a958f12919d
2017-12-11 13:44:00 +00:00