Commit Graph

5409 Commits

Author SHA1 Message Date
Eugene Susla
97fb2a69bf Merge "Revert "MemoryIntArray: track the owned file descriptor in a PFD."" into qt-dev
am: 1198fc4e71

Change-Id: Ifb91c1e8bb2c72e607bce0f733b0c95c5b5fdce6
2019-05-13 15:59:27 -07:00
Eugene Susla
1198fc4e71 Merge "Revert "MemoryIntArray: track the owned file descriptor in a PFD."" into qt-dev 2019-05-13 22:21:48 +00:00
Nandana Dutt
4338918e08 Merge "Add unittests for BugreportManager API" into qt-dev
am: d7affe7171

Change-Id: I470480454a4f1da40047b6da0155b816f1ea91e3
2019-05-13 04:42:25 -07:00
Nandana Dutt
d7affe7171 Merge "Add unittests for BugreportManager API" into qt-dev 2019-05-13 11:27:43 +00:00
Abodunrinwa Toki
de2a23c008 Merge "Test updates for I044ac25a19ba5b7fd0ee470ca0a13dc65cbd2679" into qt-dev
am: 030535d710

Change-Id: I49f1d8281bb57ccc11728245450d7b5409917ffa
2019-05-12 19:08:09 -07:00
TreeHugger Robot
030535d710 Merge "Test updates for I044ac25a19ba5b7fd0ee470ca0a13dc65cbd2679" into qt-dev 2019-05-13 01:55:24 +00:00
Aran Ink
4abf4bd58e Merge "Add secure setting for Global Actions Panel debug mode." into qt-dev
am: 0cde819fc6

Change-Id: Ic80b8a02f74e5be80f99e15e252ef1e7b9d65464
2019-05-10 08:52:47 -07:00
Svet Ganov
d2404405e7 Revert "MemoryIntArray: track the owned file descriptor in a PFD."
The reverted change causes a regression where we can get an IllegalStateException
during finalization as we are adopting the native fd in a ParcelFileDescriptor
which takes ownership of the fd. However, the order of finalization is undefined
and if the ParcelFileDescriptor is finalized before the MemoryIntArray we would
get an exception when running the finalization of the latter.

bug:124056170

This reverts commit c81f53f7f1.

Change-Id: I8debb9c5f4c87b1a657084139b27f40b7956fe59
2019-05-10 14:08:00 +00:00
Nandana Dutt
9600780ce8 Add unittests for BugreportManager API
BUG: 123578274
Test: frameworks/base/core/tests/bugreports/run.sh

Change-Id: I9551dba039aaa3d68e9de2cf75712163e7cee1f7
2019-05-10 14:41:12 +01:00
Aran Ink
93dd25cfe7 Add secure setting for Global Actions Panel debug mode.
Changes grid-based power menu logic to use new debug setting.

Bug: 123397865
Bug: 127644235

Test: Automated tests pass. Manual testing turning off/on debug setting.
Change-Id: Ic95188bd10a433f5c58f0f37a098a872e65d8150
2019-05-09 14:42:14 -04:00
Abodunrinwa Toki
0f1d77ef23 Test updates for I044ac25a19ba5b7fd0ee470ca0a13dc65cbd2679
Remove actions suggestions en model from system image.

Fixes: 129129336
Test: atest android.view.textclassifier
Change-Id: I43966c48e9167d3968981cd3ad514eba61f1d709
2019-05-09 00:56:50 +00:00
Kevin Chyn
a3884bd30f Merge "Added face education setting" into qt-dev
am: c03c8909e5

Change-Id: I809f8d309e3a920eb82b0295d996a07196a95e80
2019-05-08 17:25:27 -07:00
Kevin Chyn
c03c8909e5 Merge "Added face education setting" into qt-dev 2019-05-08 23:55:22 +00:00
joshmccloskey
421e2691f3 Added face education setting
Test: It builds
Bug: 131774352
Change-Id: I23cc05838052da7d40223a519bbf99895d165f86
2019-05-08 14:26:31 -07:00
Aran Ink
2d4fdc05e7 Merge "Add secure settings for Global Actions Panel." into qt-dev
am: c8cb13a537

Change-Id: I9afd4501b7f28e358394ee49b8537d26f9ab72db
2019-05-08 12:14:42 -07:00
Aaron Heuckroth
00ff1180b2 Add secure settings for Global Actions Panel.
Test: Automated tests pass.
Fixes: 131751030

Change-Id: I969a56ecc0b9310ed32cd5bd5d8ad0c2499ae63b
2019-05-07 14:59:28 -04:00
Tim Murray
9f0fd8c1ce Revert "Add optional reasons why permissions were denied"
am: d06c6d2932

Change-Id: I5f0d60ebdea3170f0c0769c8909e91b56b2848d9
2019-05-07 02:36:00 -07:00
Tim Murray
d06c6d2932 Revert "Add optional reasons why permissions were denied"
This reverts commit 3623f3219e.

Reason for revert: 40% startup perf regression

Test: revert
Bug 132129453
Exempt-From-Owner-Approval: critical revert

Change-Id: I19dc33e6a71c9254b4096154f4089c059fe408dd
2019-05-07 07:10:30 +00:00
Mårten Kongstad
f6f0a483c7 Merge "OMS: limit shell command output via optional args" into qt-dev
am: c283f6100d

Change-Id: I0cf89a970bbbbfac0fb5dafbcc8a35f834d2d63c
2019-05-06 15:24:19 -07:00
TreeHugger Robot
c283f6100d Merge "OMS: limit shell command output via optional args" into qt-dev 2019-05-06 22:12:37 +00:00
Amin Shaikh
bd35702425 Merge "Update icon packs." into qt-dev
am: 0452dcf0b4

Change-Id: Ie3448412c6a15dcfc019f8dcc07430464b90a9df
2019-05-06 11:11:00 -07:00
TreeHugger Robot
0452dcf0b4 Merge "Update icon packs." into qt-dev 2019-05-06 17:47:51 +00:00
Mårten Kongstad
a465aec843 OMS: limit shell command output via optional args
Update the list and dump commands to optionally limit their output to make it
easier to use the commands in automated tests.

Examples of the new arguments in use:

  $ adb shell cmd overlay list android
  android
  [ ] com.android.internal.display.cutout.emulation.corner
  [ ] com.android.internal.display.cutout.emulation.double
  [ ] com.android.theme.icon.square
  ...

  $ adb shell cmd overlay dump com.android.theme.icon.square
  com.android.theme.icon.square:0 {
    mPackageName...........: com.android.theme.icon.square
    mUserId................: 0
    mTargetPackageName.....: android
    ...
  }

  $ adb shell cmd overlay dump state com.android.theme.icon.square
  STATE_DISABLED

Bug: 130364252
Test: atest 'com.android.server.om.hosttest.InstallOverlayTests#testAdbShellOMSInterface'
Change-Id: Iee7d654e2600bb13b7755ce1623925df68f43463
2019-05-06 06:38:49 -07:00
Philip P. Moltmann
104cf9c862 Merge "Add optional reasons why permissions were denied" into qt-dev
am: dd82c4513b

Change-Id: Iba294f338743c86d126eb4c4d92eb4c3d1c31cf0
2019-05-05 23:40:52 -07:00
TreeHugger Robot
dd82c4513b Merge "Add optional reasons why permissions were denied" into qt-dev 2019-05-06 06:21:23 +00:00
Philip P. Moltmann
3623f3219e Add optional reasons why permissions were denied
Currently only for the ContextImpl.enforcePermission code paths and only
when 'secure debug_package_permission_check' is set.

This feature is disabled on user-builds.

Test: Enabled permission checking for my app and
      - checked runtime permision denial
      - permission denial because app is instant
Bug: 111075456
Change-Id: Ib85777db69ee490608e9dac32a3b97971c0ba215
2019-05-05 21:05:13 -07:00
Salvador Martinez
3139592fcd Merge "Prevent dark mode backup from applying in before setup" into qt-dev
am: 49d35968e6

Change-Id: I48b790afe44918528e208262f80503a906cbb002
2019-05-03 16:44:56 -07:00
Yohei Yukawa
d4cd66a8e2 Merge "Add an @hide way to adjust CursorAnchorInfo for another Matrix" into qt-dev
am: 0c8199dc59

Change-Id: Ia0a4c7ab444838144e0cb1c938aaf99e1de589b4
2019-05-03 14:11:46 -07:00
Salvador Martinez
49d35968e6 Merge "Prevent dark mode backup from applying in before setup" into qt-dev 2019-05-03 18:31:08 +00:00
Amin Shaikh
b7b4c25cad Update icon packs.
- Add back arrow for QS customizer
- Update work profile status bar / QS / corp badge icon to GM2
- Add Settings and Launcher overlay icons

Bug: 131346125
Test: visual
Change-Id: I61b56b04993ef19b5e66c9ad3d78eddcfce3aeb1
2019-05-03 14:29:54 -04:00
Felipe Leme
763536a513 Merge "Inject session id on all AutofillIds kept in the service." into qt-dev
am: b5112587de

Change-Id: Ida7b144c346a5a6fb57b0ec7c14871aafc07c6a9
2019-05-03 10:56:52 -07:00
Felipe Leme
4949fd4c3d Merge "New @TestApi: AutofillId.equalsIgnoreSession" into qt-dev
am: 77f574dfe9

Change-Id: Ia869c4c5e3b3681014013ae31105177b3d088e81
2019-05-03 09:15:35 -07:00
TreeHugger Robot
0c8199dc59 Merge "Add an @hide way to adjust CursorAnchorInfo for another Matrix" into qt-dev 2019-05-03 15:56:32 +00:00
Todd Kennedy
0f9db03af5 Merge "OverlayDeviceTests: don't rely on Thread#sleep" into qt-dev
am: 30093e8533

Change-Id: I721dd5f85e2ea266719f62a17549b8b3088f771a
2019-05-03 07:30:51 -07:00
Abodunrinwa Toki
772447f0bd Merge "Lazy-load textclassifier settings." into qt-dev
am: 9829cf5451

Change-Id: Ia96d8725c1375078161fe0d4cefc8104b17e3abd
2019-05-03 05:15:09 -07:00
TreeHugger Robot
b5112587de Merge "Inject session id on all AutofillIds kept in the service." into qt-dev 2019-05-03 02:17:37 +00:00
Salvador Martinez
c500b2741e Prevent dark mode backup from applying in before setup
This CL makes it so that UIModeManager will not allow dark mode
to be changed prior to initial setup wizard being completed.
Additionally, it makes it so that when UIModeManager starts it
will try to start in light mode prior to setup wizard completing
regardless of what the backed up value is. We also register for
an observer if when we start UIModeManager we notice that setup
wizard has not run and defer updating dark mode to the true value
until we see that setup wizard completes.

Test: Manual
Bug: 119666724
Change-Id: Ie9cf36c8483d9cdd9e7aadd3aae4cc0ef15e8d45
2019-05-02 17:59:17 -07:00
TreeHugger Robot
77f574dfe9 Merge "New @TestApi: AutofillId.equalsIgnoreSession" into qt-dev 2019-05-02 22:49:24 +00:00
Mårten Kongstad
82615642ed OverlayDeviceTests: don't rely on Thread#sleep
When a request to enable an overlay is received by the overlay manager
service, there is some lead time before the affected process is updated.
Tests need to wait until this happens. Remove the calls to Thread#sleep;
instead, poll for a change to AssetManager#getApkPaths (which is faster
and more reliable).

Bug: 130257643
Test: atest OverlayDeviceTests
Change-Id: I9f7e6207a68431859bacac0462a2bab94b4efc2d
2019-05-02 10:41:08 -07:00
Yohei Yukawa
e4410a135b Add an @hide way to adjust CursorAnchorInfo for another Matrix
This is a preparation to support CursorAnchorInfo API in ActivityView.

In order to enable the system to automatically adjust CursorAnchorInfo
object between the IME client and IME, there needs to be an @hide
method to create a new CursorAnchorInfo instance with applying an
additional coordinate transformation Matrix, which is what this CL
does.

This CL also cleans up CursorAnchorInfoTest.java as most of test there
were already moved to CTS [1].

Anyway, this is a mechanical change.  There should be no behavior
change in existing methods in CursorAnchorInfo.

 [1]: Ib758bddff34b4722b39c94e7ad4e8f8da2bb8b92
      c4ef1d6ec22dc2af2ed339fd4e78075903783be0

Bug: 115693908
Test: atest CtsInputMethodTestCases:CursorAnchorInfoTest
Test: atest FrameworksCoreTests:CursorAnchorInfoTest
Change-Id: Ic7f9057623ffc61ec7a6121735dc39adecf4649d
2019-05-02 06:52:02 -07:00
Abodunrinwa Toki
0634af3875 Lazy-load textclassifier settings.
Re-enables reading settings from device_config.
See: I6b7ab56e4015448ee068deb49e7f6fa133fea53c
Updates tests.
Updates documentation.

Bug: 129934185
Test: atest android.view.textclassifier
Test: (Performance) Test: frameworks/base/apct-tests/perftests/textclassifier/run.sh
      Compare performance results with ConfigParser.ENABLE_DEVICE_CONFIG
      set to true vs false. Trivial regression recorded i.e. 1.03x.
Test: (Manual) Change flags and see them reflected. e.g.
      adb shell cmd device_config put textclassifier system_textclassifier_enabled false
      Verify that app no longer uses the OEM TCS but the AOSP TC.
Change-Id: I4c6ff781c97fc2e3d3da55dc49123fa1d759670a
2019-05-02 12:55:58 +01:00
Felipe Leme
785777bb05 Inject session id on all AutofillIds kept in the service.
Android Q introduce the FLAG_DELAY_SAVE, which allows the autofill service to delay the SAVE UI by
keeping the session open. But this approach introduces a new problem, as fields from different
activities could have the same AutofillId.

Test: atest MultiScreenLoginTest#testSaveBothFieldsCustomDescription_sameIds
Test: atest AutofillIdTest
Test: atest CtsAutoFillServiceTestCases # sanity check

Fixes: 113593220

Change-Id: Ibd187f5c58c150f820972fcab6d88217294ffe2d
2019-05-01 18:10:00 -07:00
Felipe Leme
7b307ea7b2 New @TestApi: AutofillId.equalsIgnoreSession
Test: atest FrameworksCoreTests:android.view.autofill.AutofillIdTest
Bug: 113593220

Change-Id: I72c5727638558d3b8dc0c57045a8e43c1d506069
2019-05-01 17:04:37 -07:00
Tarandeep Singh
bed3be618f Merge "Propagate light nav bar info" into qt-dev
am: fabb5ebb59

Change-Id: I2bcd764e10e1919e03440ba29cb7709a3620adb2
2019-05-01 14:11:18 -07:00
TreeHugger Robot
fabb5ebb59 Merge "Propagate light nav bar info" into qt-dev 2019-05-01 18:44:39 +00:00
Kweku Adams
039b72df1f Merge "Creating separate flags for Time/QuotaControllers." into qt-dev
am: 956b55a733

Change-Id: I856fbbdbc4b744d437a4cb6efb794d2f0d2f1978
2019-05-01 09:30:04 -07:00
Kweku Adams
4e774a37db Creating separate flags for Time/QuotaControllers.
TimeController and QuotaController flags don't have to be changed
atomically with other JobScheduler constants, so it's best to have them
be separate. I think it's best to have the QuotaController constant
change be atomic, which is why the flag is set up as a key/value pair.

Bug: 120793892
Test: atest android.provider.SettingsBackupTest
Test: atest com.android.server.job.controllers.ConnectivityControllerTest
Test: atest com.android.server.job.controllers.QuotaControllerTest
Test: atest com.android.server.job.controllers.StateControllerTest
Test: atest com.android.server.job.controllers.TimeControllerTest
Test: atest CtsJobSchedulerTestCases
Change-Id: I5bf20c37ea87a58bbcf4326f8e81cd6bea0a7c08
2019-04-30 19:14:03 -07:00
Tarandeep Singh
e439dec155 Propagate light nav bar info
When SystemUI (notification UI) is pulled down, the windows behind are
dimmed, including navigation bar. At this point of time, navigationbar
color could be controlled by IME and system overrides it.
With this fix, we check if IME is already controlling navbar color.

Change-Id: I9f25860a5b7858f1d17d2921816910a938c656bb
Fix: 122439339
Test: Manually verified using steps in bug.
2019-04-30 14:41:23 -07:00
Svetoslav Ganov
c260897739 Merge "Address API council feedback" into qt-dev
am: 1a5d1728af

Change-Id: Ife0cafa6a2e6eff902ce4b1439c9d002eb4ed643
2019-04-30 11:55:25 -07:00
sanryhuang
d656550278 Merge "Fix app crash while running in second display" into qt-dev
am: 0fcd8ceef8

Change-Id: I65a04a80d5fe47f7ed41c06569387a2ea3ec45a1
2019-04-29 19:13:58 -07:00