Commit Graph

354147 Commits

Author SHA1 Message Date
Ivan Lozano
5d00273328 Merge "Fix doFadingAnimationLocked in sanitized builds." am: 05284b6c6a am: b327eb682e
am: f74c76e2df  -s ours

Change-Id: I3fe3873a2f05db3ab0e916c90ceb1e280bcd0409
2018-01-16 22:00:55 +00:00
Ivan Lozano
f74c76e2df Merge "Fix doFadingAnimationLocked in sanitized builds." am: 05284b6c6a
am: b327eb682e

Change-Id: I109a08b8ae94cbeca28044f2c64c885a586f680a
2018-01-16 21:49:36 +00:00
TreeHugger Robot
0c69a8eef9 Merge "New management API for making backups mandatory." 2018-01-16 21:45:18 +00:00
Ivan Lozano
b327eb682e Merge "Fix doFadingAnimationLocked in sanitized builds."
am: 05284b6c6a

Change-Id: I5822b920fe1dec72f0f49af35256bfbf6d9474fa
2018-01-16 21:42:07 +00:00
TreeHugger Robot
619538b7bb Merge "Workaround a bug that causes multiple activity instances are created" 2018-01-16 21:30:21 +00:00
Jason Monk
1b41a2f941 Merge "Bring back the QS circles" 2018-01-16 21:27:28 +00:00
Lenka Trochtova
c141d08b70 New management API for making backups mandatory.
Let the device owner make backups with a chosen backup
transport mandatory.

BUG: 64012357
Test: make RunFrameworksServicesRoboTests
Test: manually together with the corresponding GmsCore change.
Test: cts-tradefed run cts -m CtsDevicePolicyManagerTestCases --test
com.android.cts.devicepolicy.DeviceOwnerTest#testGetAndSetMandatoryBackupTransport
Test: cts-tradefed run cts -m CtsBackupHostTestCase --test
android.cts.backup.BackupDeviceOwnerHostSideTest#testMandatoryBackupTransport

Change-Id: I9bfae5799beae3459659e697813b75a9b508ae55
2018-01-16 22:24:11 +01:00
TreeHugger Robot
f59809c014 Merge "Do not pause initializing activities when becoming visible." 2018-01-16 21:15:28 +00:00
TreeHugger Robot
4fe3599987 Merge "New Face Match icon" 2018-01-16 21:11:26 +00:00
Lucas Dupin
a2a7a40cfc Fix issue where SmartSpace color could be wrong in AOD
Test: visual
Fixes: 71599239
Change-Id: I5f4b8af78ae2034f4f8ebfbc42ffea5694c6a425
2018-01-16 21:10:03 +00:00
Pankaj Kanwar
03863ba526 Merge "Address IMSI privacy issues." 2018-01-16 20:57:07 +00:00
Ivan Lozano
05284b6c6a Merge "Fix doFadingAnimationLocked in sanitized builds." 2018-01-16 20:27:36 +00:00
Andreas Gampe
e8e016838a Merge "ActivityThread: Attempt to attach agent with app's classloader" am: f779d7e3be am: 9f1f950c31
am: 9853a65386

Change-Id: I064033ab86013dd80efa3cb4eb22b89ac143e7b6
2018-01-16 20:08:30 +00:00
Andreas Gampe
9853a65386 Merge "ActivityThread: Attempt to attach agent with app's classloader" am: f779d7e3be
am: 9f1f950c31

Change-Id: I0df113aff5a54c5a1dbc5f968679bb9d4f8ea158
2018-01-16 19:59:02 +00:00
TreeHugger Robot
020b579dd4 Merge "DisplayCutout: LayoutInDisplayCutoutMode API" 2018-01-16 19:58:17 +00:00
TreeHugger Robot
c48b83bb5e Merge "Don't show album art on AOD" 2018-01-16 19:56:42 +00:00
Andreas Gampe
9f1f950c31 Merge "ActivityThread: Attempt to attach agent with app's classloader"
am: f779d7e3be

Change-Id: Id5ae3b90ca4b75046419fb1a6c02ef556d225f77
2018-01-16 19:46:36 +00:00
Lucas Dupin
334f954714 New Face Match icon
Change-Id: Iac256cdd7b4a5f9f7f04365400381f892933eff4
Fixes: 72046152
Test: visual, unlock using Face Match
2018-01-16 11:24:46 -08:00
TreeHugger Robot
b0538e6dac Merge "[Magnifier - 14] Follow finger instead of cursor" 2018-01-16 19:22:36 +00:00
TreeHugger Robot
dede23b0f0 Merge "Created hidden constants and metrics for ScopedAccessProvider." 2018-01-16 19:14:58 +00:00
Bryce Lee
052957b6c0 Do not pause initializing activities when becoming visible.
makeVisibleIfNeeded was recently modified to ensure activities
becoming visible were not left in the stopped state. However, the
condition was based on simply not being in the paused state, rather
than requiring it be in the stopped/stopping state. This can lead
to lifecycle issues for moving an initializing activity into the
paused state.

This changelist ensures that only stopped/stopping activities are
considered.

Change-Id: I17fc6310db6ee111d1db8f69599090becd1e1760
Fixes: 72028454
Test: atest FrameworksServicesTests:com.android.server.am.ActivityRecordTests
2018-01-16 11:13:30 -08:00
Lorenzo Colitti
ff12e41c60 Merge changes I0d0c0fac,Ifb9b00b6 am: c3a209382c am: bfaf963337
am: e735296091

Change-Id: I919f21566d5caff9fb35f57c439048b9b48f0971
2018-01-16 18:59:02 +00:00
Lorenzo Colitti
e735296091 Merge changes I0d0c0fac,Ifb9b00b6 am: c3a209382c
am: bfaf963337

Change-Id: Ie943428132fbcfcc565d54b46830ed297227ef35
2018-01-16 18:41:46 +00:00
TreeHugger Robot
931abbc249 Merge "Binding on-demand #10: Remove permanent binding and add registration" 2018-01-16 18:39:27 +00:00
Lorenzo Colitti
bfaf963337 Merge changes I0d0c0fac,Ifb9b00b6
am: c3a209382c

Change-Id: If8f81cc1906668c82c2393e37600a7697cba2a05
2018-01-16 18:32:39 +00:00
Treehugger Robot
f779d7e3be Merge "ActivityThread: Attempt to attach agent with app's classloader" 2018-01-16 18:25:32 +00:00
John Reck
66792c4833 Merge "Update ripple alphas" 2018-01-16 17:54:12 +00:00
TreeHugger Robot
38e2249aa8 Merge "Reenable Strictmode disk reads checks in WebViewFactory." 2018-01-16 17:42:18 +00:00
Brad Ebinger
cc90cf002b Merge "Integrate IMS Registration API" 2018-01-16 17:30:54 +00:00
Felipe Leme
12e15cc6ed Created hidden constants and metrics for ScopedAccessProvider.
Test: echo 'Not yet!'
Bug: 63720392

Change-Id: I811cde225fdcf5271fda9b357da742e408de0627
2018-01-16 09:28:44 -08:00
Mihai Popa
1d1ed0cd6e [Magnifier - 14] Follow finger instead of cursor
This CL makes the magnifier follow the finger rather than the cursor in
text editing. Hence, the magnifier's movement becomes horizontally
smooth, rather than only jumping at the same time with the cursor.
Vertically it remains stable relative to the current line.

Bug: 70508649
Test: bit CtsWidgetTestCases:android.widget.cts.MagnifierTest
Change-Id: I7e06a7064f0a413379b30c5e2d11ee85d2ad3720
2018-01-16 17:28:11 +00:00
TreeHugger Robot
3c8c9c1c84 Merge "Pre-P target SDK can't silence alarms/media in dnd" 2018-01-16 17:16:29 +00:00
TreeHugger Robot
4cd050c227 Merge "Stats log interface for single node attribution chain." 2018-01-16 17:07:08 +00:00
Adrian Roos
fa02da6250 DisplayCutout: LayoutInDisplayCutoutMode API
Replace the FLAG2_LAYOUT_IN_DISPLAY_CUTOUT flag with a
dedicated layoutInDisplayCutout field; given the change
in behavior of SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN with respect
to the display cutout, apps that request this now also need
a way to request the same behavior as FLAG_FULLSCREEN.

Broadly, there's three categories of apps:

1) Apps that want to make dedicated use of the cutout
   area -> no letterbox ever

2a) Apps that hide the status bar, but don't expect the
    cutout to be there cutting into their content
    -> we want those to get letterboxed

 b) Some apps may only be transiently fullscreen, but always
    want to get letterboxed
     -> we want those to get letterboxed even if not currently
        fullscreen

3) Apps that never go fullscreen, and just draw the status
   bar background in the cutout area (i.e. the most common type
   of app)
   -> these need to get letterboxed whenever the cutout and
      status bar don't coincide (under our current guidelines
      that's only in fullscreen and landscape)

To cover each use case, we have:

ALWAYS: Always allow the app to draw into the cutout, never letterbox it; covers 1
NEVER: Never allow the app to draw into the cutout, always letterbox it; covers 2a and 2b
DEFAULT: Allow the app to draw into the cutout if that area is covered by the status bar
         anyways. This does the right thing for most existing apps (2a and 3).

Bug: 65689439
Test: atest PhoneWindowManagerLayoutTest
Change-Id: Ib8d551251e9be4ef9d580ca2151bf40a9678acae
2018-01-16 17:56:32 +01:00
Salvador Martinez
6644e252cd Merge "Refactor code to support overridden low battery warning" 2018-01-16 16:29:33 +00:00
TreeHugger Robot
d406ccab42 Merge "Fix wake up regression" 2018-01-16 16:21:45 +00:00
TreeHugger Robot
4ae9eacc84 Merge "Unhide InputMethodService#requestShowSelf()" 2018-01-16 16:10:53 +00:00
Yohei Yukawa
fbc2f7acd5 Unhide InputMethodService#requestShowSelf()
This is a follow up CL to a recent CL [1], which aimed to move several
APIs only for InputMethodService from InputMethodManager to
InputMethodService.

This CL removes InputMethodService#hideSoftInputFromInputMethod(),
which is exactly the same as InputMethodService#requestHideSelf() that
is already available as a public API for IME developers.

This CL also virtually renames
InputMethodService#showSoftInputFromInputMethod() to
InputMethodService#requestShowSelf(), which has existed as a
private method but not been exposed to IME developers yet.

 [1]: I3163f3cbe557c85103ca287bee0874a3b4194032
      d8d03a8e1b

Bug: 70282603
Test: atest CtsInputMethodTestCases
Change-Id: If6a786c5774805d041ea9672ef2721e4a38df7fc
2018-01-16 08:09:11 -08:00
Naomi Musgrave
ff350a2f35 Merge "Include ID in toString of NetworkEvent subclasses, DNS and Connect event" 2018-01-16 15:00:38 +00:00
Treehugger Robot
c3a209382c Merge changes I0d0c0fac,Ifb9b00b6
* changes:
  Split updateCapabilities into two methods.
  More strictly check NetworkCapabilities callbacks.
2018-01-16 14:25:13 +00:00
Bernardo Rufino
41349c02a8 Binding on-demand #10: Remove permanent binding and add registration
This CL is the last of the P1 CLs for binding on-demand. During
transport-usage migration to binding on-demand the permanent-bound
code was still there and we piggybacked on it to register the
transports. Now that everything is migrated we removed the permanent
binding and used the registration code created in the CL #9
(selectTransport) for registering all the transports.

I put a 3s delay on registration after bring-up. Any operation that uses
the transport before that will gracefully fail.

The TransportBoundListener does not return a boolean anymore because it
can't fail anymore (we pass it the data it needs so that it doesn't need
to be exposed to TransportNotRegistered exceptions). It's now called
OnTransportRegisteredListener.

Eligible transports were a similar thing to valid transports from the
permanent binding code, whose only need came from rebinding from what I
could tell. I saw no need for it anymore and removed it. If I missed
something please shout :)

I shuffled methods a bit in TransportManager.

There were a lot of changes to robo test infra to bring together
TransportManager tests and the rest and re-use mocking infra.

Change-Id: If61268228dd0bb724b718abd3dcafdad50e8b3dc
Ref: http://go/br-binding-on-demand
Bug: 17140907
Test: m -j RunFrameworksServicesRoboTest
Test: runtest -p com.android.server.backup frameworks-services
Test: gts-tradefed run commandAndExit gts-dev -m GtsBackupTestCases
Test: gts-tradefed run commandAndExit gts-dev -m GtsBackupHostTestCases
Test: cts-tradefed run commandAndExit cts-dev -m CtsBackupTestCases
Test: adb shell bmgr enable true/false
Test: adb shell bmgr list transports [-c]
Test: adb shell bmgr transport <transport_name>/-c <transport_component>
Test: adb shell bmgr restore <token>/<token> <package>/<package>
Test: adb shell bmgr backup <pacakge>
Test: adb shell bmgr run
Test: adb shell bmgr wipe <transport> <package>
Test: adb shell bmgr fullbackup <package>
Test: adb shell bmgr backupnow --all/<packages>
Test: adb shell cmd jobscheduler run -f android <job_id>
Test: adb shell dumpsys backup
Test: D2D scenario
2018-01-16 14:22:23 +00:00
TreeHugger Robot
fb0152d494 Merge "DisplayCutout: Do not letterbox LAYOUT_FULLSCREEN windows" 2018-01-16 14:13:33 +00:00
Lorenzo Colitti
870a596ed3 Merge "Update netId to nethandle mapping in NetworkTest." am: a04d0cc72f am: 503135596b
am: d9d2a71d6f

Change-Id: I6feaa589fc43ff8ee1635be0fbd58aaa25679a5a
2018-01-16 13:46:46 +00:00
Lorenzo Colitti
d9d2a71d6f Merge "Update netId to nethandle mapping in NetworkTest." am: a04d0cc72f
am: 503135596b

Change-Id: I5e8e57f38580742eae38f63f43e37cc647412212
2018-01-16 13:34:46 +00:00
Lorenzo Colitti
503135596b Merge "Update netId to nethandle mapping in NetworkTest."
am: a04d0cc72f

Change-Id: Ie4524e17f1839bae832d03248a2208693b1b1e95
2018-01-16 13:23:05 +00:00
Lorenzo Colitti
aa7f7e4a6a Split updateCapabilities into two methods.
This makes the code a bit easier to follow.

Test: ConnectivityServiceTest continues to pass
Change-Id: I0d0c0facc1e3ba07b53542b35da40ddc096ff92e
2018-01-16 21:25:10 +09:00
Treehugger Robot
a04d0cc72f Merge "Update netId to nethandle mapping in NetworkTest." 2018-01-16 12:23:02 +00:00
Paul Duffin
924431ff1a Merge "Replace legacy-test with android.test.base in bp files" am: 2285630e4b am: caacf3e7c4
am: 2b3bf45c73

Change-Id: I0c4b7705176b0ae7eb4b06bf5a138757d6b16e9c
2018-01-16 11:52:20 +00:00
Paul Duffin
2b3bf45c73 Merge "Replace legacy-test with android.test.base in bp files" am: 2285630e4b
am: caacf3e7c4

Change-Id: I0fa822af057afc2f4efb6285404653fe57bcd742
2018-01-16 11:40:57 +00:00
Paul Duffin
caacf3e7c4 Merge "Replace legacy-test with android.test.base in bp files"
am: 2285630e4b

Change-Id: If956b45e21b7d576daf5dcece9c1acea35d952a0
2018-01-16 11:29:21 +00:00