Commit Graph

14092 Commits

Author SHA1 Message Date
Sergey Vasilinets
0de0eca772 Deprecate Activity.onStateNotSaved
This callback is no longer accurate, because it is basically
onPreResume(), but onSaveInstance isn't related to Pause/Resume
at all. In addition, this callback was added for framework fragments
and they are deprecated

bug: 113134425
Test: no logic changes
Change-Id: I8f961846b52032d9760d5050a2d8ee5ec57c49cd
2018-08-23 19:38:30 -07:00
Jorim Jaggi
acfabaa32b Merge "BootAnimation: Fix boot animation with hidden cutout" into pi-dev am: e387ce18d8
am: 2c68abc9fc

Change-Id: I1a0db9f30f7270d49136fa3984dc8d9633ead690
2018-08-22 16:38:27 -07:00
Jorim Jaggi
2c68abc9fc Merge "BootAnimation: Fix boot animation with hidden cutout" into pi-dev
am: e387ce18d8

Change-Id: I55c32ef69c4bb565376946ce65101f37ef0cce8a
2018-08-22 16:20:32 -07:00
Jorim Jaggi
e387ce18d8 Merge "BootAnimation: Fix boot animation with hidden cutout" into pi-dev 2018-08-22 23:06:35 +00:00
Adrian Roos
9ee5dff83c BootAnimation: Fix boot animation with hidden cutout
We do this by storing the masking inset in a persistent property.
The boot animation then animates itself to where it would be if that
masking inset were applied, then changes the viewport.

For this to work, we also need to make sure the DisplayManagerService
has the right overlay right at the start.

Bug: 112876936
Test: Hide cutout, then reboot. Verify boot animation is smooth.
Change-Id: I3e988b2340b2e0d2be3939bdc6878704c234ccc8
2018-08-22 21:37:39 +01:00
Jorim Jaggi
d4a386588e DO NOT MERGE Kill most processes when display size changes
am: 2bd9a25007

Change-Id: I43d3ae1ad36e96cd271fa3bc7f951177aa542249
2018-08-22 08:02:04 -07:00
Jorim Jaggi
2bd9a25007 DO NOT MERGE Kill most processes when display size changes
This isn't something apps generally can handle, so we kill all of
them for now.

Test: Change cutout overlay that changes display size
Test: Rotate screen
Bug: 112876936
Change-Id: Ic3b0f1b3ae1e9bd93ac8f2c6952aa093878602b8
2018-08-22 14:22:56 +02:00
Felipe Leme
dde594d606 Merge "Improved AutofillManager and Activity dump() methods:" into pi-dev
am: c9443e3894

Change-Id: I1fc878c1ff3dbd204c619c1514e989399dd51895
2018-08-20 18:38:29 -07:00
TreeHugger Robot
c9443e3894 Merge "Improved AutofillManager and Activity dump() methods:" into pi-dev 2018-08-21 01:18:09 +00:00
Richard Uhler
6ebc2bfb25 Merge changes I5610b42b,Ib7a52bd0 into pi-dev
am: e4e1b4fbec

Change-Id: Ia9eae991b930444a8f957fb405b7166d6ecc2583
2018-08-20 16:35:49 -07:00
TreeHugger Robot
93b48d31ed Merge "[JobScheduler] Typo fix" 2018-08-20 20:51:26 +00:00
Richard Uhler
a6ab55dc11 ResourceManager: Disable APK Assets cache for real.
Test: atest -v google/perf/app-startup/benchmark-app-hermetic/cold-dropcache-test
Bug: 111385832
Change-Id: I5610b42b51d3b12cc8587cae6556557362bf67d0
(cherry picked from commit 93090515b9)
2018-08-20 16:05:35 +01:00
Narayan Kamath
77e9589274 ResourceManager: Disable APK Assets cache.
The WeakReference based cache of Assets in use elsewhere in the
process remains unchanged.

Note that this change is larger than it needs to be because it is
an error to create an LruCache of size zero.

There seems to be no measurable difference as measured by the standard
app startup benchmarks.

Test: atest -v google/perf/app-startup/benchmark-app-hermetic/cold-dropcache-test
Bug: 111385832
(cherry picked from commit bc95621811)

Change-Id: Ib7a52bd03f6f13cdb76b82abc307d17227c4c1dc
2018-08-20 16:04:21 +01:00
TreeHugger Robot
c5f23bfc69 Merge "ResourceManager: Disable APK Assets cache for real." 2018-08-20 14:27:20 +00:00
TreeHugger Robot
b2484fa070 Merge "Add TestApi for CtsActivityManagerDeviceTestCases." 2018-08-20 13:30:18 +00:00
Richard Uhler
93090515b9 ResourceManager: Disable APK Assets cache for real.
Test: atest -v google/perf/app-startup/benchmark-app-hermetic/cold-dropcache-test
Bug: 111385832
Change-Id: I5610b42b51d3b12cc8587cae6556557362bf67d0
2018-08-20 14:11:37 +01:00
Laura Davis
ed3bc12e2a Merge "Docs: Inserted links to relevant guide pages." into pi-dev am: 283f55f7de
am: 6497c5bd21

Change-Id: Ida8426c0ca4f0fd755df2783fb16ea5d9e5e72ad
2018-08-17 16:13:46 -07:00
Laura Davis
6497c5bd21 Merge "Docs: Inserted links to relevant guide pages." into pi-dev
am: 283f55f7de

Change-Id: I1a42ff1b3485e35e152b354039aa5c072e0a1e70
2018-08-17 15:14:38 -07:00
Felipe Leme
4226033998 Improved AutofillManager and Activity dump() methods:
- Print compatibility mode info and activity token on AutofillManager.dump().
- Add --autofill option on Activity so it just dump autofill state.

Also fixed checkstyle import warnings on ActivityManagerShellCommand.

Bug: 112417431
Bug: 112584717

Test: adb shell dumpsys activity top --autofill

Change-Id: Id56b56a5d7e591d5204663a1da1322a15f8ef3aa
(cherry picked from commit b546ca7916)
2018-08-17 14:18:37 -07:00
TreeHugger Robot
ef734b2978 Merge "Improved AutofillManager and Activity dump() methods:" 2018-08-17 20:58:58 +00:00
TreeHugger Robot
9cbee64d26 Merge "ResourceManager: Disable APK Assets cache." 2018-08-17 13:17:30 +00:00
TreeHugger Robot
64094484fd Merge "Docs: fixed formatting for setLaunchBounds()" 2018-08-17 11:40:25 +00:00
Narayan Kamath
bc95621811 ResourceManager: Disable APK Assets cache.
The WeakReference based cache of Assets in use elsewhere in the
process remains unchanged.

Note that this change is larger than it needs to be because it is
an error to create an LruCache of size zero.

There seems to be no measurable difference as measured by the standard
app startup benchmarks.

Test: atest -v google/perf/app-startup/benchmark-app-hermetic/cold-dropcache-test
Bug: 111385832
Change-Id: I432c069e90124e884bddc5cd5be43a28e1b16d07
2018-08-17 11:50:29 +01:00
Jeff Chang
9744262ffa Merge "Support the toast Window to show on the secondary display." 2018-08-17 01:14:51 +00:00
Laura Davis
43e75d98d8 Docs: Inserted links to relevant guide pages.
This is the proof of concept for adding relevant
links in API pages to narrative content.
The design doc is hosted at:
https://docs.google.com/document/d/1Y6bFua27Gs7ONZ27gz0nHz3Djv0WND_V_rX-XvbeB3U/edit?usp=sharing

Test: make ds-docs

Bug: 112478848
Change-Id: Ic3842629c802fe89582d4d7b4a153e54d4ba1713
2018-08-16 16:57:18 -07:00
Felipe Leme
b546ca7916 Improved AutofillManager and Activity dump() methods:
- Print compatibility mode info and activity token on AutofillManager.dump().
- Add --autofill option on Activity so it just dump autofill state.

Also fixed checkstyle import warnings on ActivityManagerShellCommand.

Bug: 112417431
Bug: 112584717

Test: adb shell dumpsys activity top --autofill

Change-Id: Id56b56a5d7e591d5204663a1da1322a15f8ef3aa
2018-08-15 09:12:22 -07:00
Mathew Inwood
62a722476a Merge "Add @UnsupportedAppUsage annotations"
am: d08509363c

Change-Id: I380a6ba241998dbc694716986521dfcbf66fa7d2
2018-08-15 07:57:40 -07:00
TreeHugger Robot
48f928720f Merge "Docs: fixed a broken link in SystemUpdatePolicy" 2018-08-15 14:54:18 +00:00
TreeHugger Robot
21b2bb982f Merge "Add @UnsupportedAppUsage annotations" 2018-08-15 11:13:27 +00:00
Jeff Chang
48ecef4bfb Support the toast Window to show on the secondary display.
1) Looking for the specific display when add a toast window.

2) Modify the enqueueToast interface to support the toast with
   specific dispaly Id.
   2.1 Toast get the specific display id from context.
   2.1 Toast use the new interface with display id to communicate with
       the Notification manager servcie.

3) Support to add/remove toast window token according to the displayId.

Bug: 80001975
Test: atest WindowManagerSmokeTest ActivityManagerMultiDisplayTests
Test: atest android.widget.cts.ToastTest
Test: manual, use ActivityView & launch a toast testing app in virtual
      display
      1. Make a toast.
      2. Verify the toast if show on the virtual display

Change-Id: I3a95c291af647ed9c6e966b2a90924097df19b6a
2018-08-15 14:20:54 +08:00
TreeHugger Robot
14590e6d0e Merge "Fixed an issue when updating media actions" 2018-08-14 22:35:29 +00:00
Makoto Onuki
e2d8ba1db9 Merge "Print DB file sizes in "dumpsys dbinfo"" 2018-08-14 21:31:22 +00:00
Makoto Onuki
016dc59fef Print DB file sizes in "dumpsys dbinfo"
- This will be included in bugreports, but only for running processes.

Bug: 111939259
Test: dumpsys dbinfo (when device locked and unlocked)
Change-Id: If743b2c3340eac7e6bc873ac655ac352a46fb7dc
2018-08-14 12:30:06 -07:00
Mathew Inwood
4fb17d17ca Add @UnsupportedAppUsage annotations
For packages:
  android.app.usage
  android.app.trust
  android.app.timezonedetector
  android.app.timezone
  android.app.timedetector
  android.app.job
  android.app.backup
  android.app.assist
  android.app.admin
  android.app

This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 110868826
Test: m
Change-Id: I5d15d50344d7178617418846917f693cfabf006b
Merged-In: I618c5dc4462ae990d9df45c3e9ed3f092cc5138c
2018-08-14 14:25:44 +01:00
Mathew Inwood
61e8ae6144 Add @UnsupportedAppUsage annotations
For packages:
  android.app.usage
  android.app.trust
  android.app.timezonedetector
  android.app.timezone
  android.app.timedetector
  android.app.job
  android.app.backup
  android.app.assist
  android.app.admin
  android.app

This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 110868826
Test: m
Change-Id: I618c5dc4462ae990d9df45c3e9ed3f092cc5138c
2018-08-14 14:17:44 +01:00
Serik Beketayev
c68cef04fa [JobScheduler] Typo fix
Fixing wrong constaints used to identify state of the job

Test: WIP
Bug: 111413203
Change-Id: I161178a71a7d25d865e40da08bbb61f34450cf23
2018-08-11 02:34:02 +00:00
Julia Reynolds
efcdff4528 The quietening round 2 part 1
Allow the notification assistant to block or silence
incoming notifications, or demote notifications after they
are posted

Also temporarily silence everything by default

Plus: bonus refactoring of the cancel notification runnable so I could
write just one of those tests :)

Bug: 111475013
Test: manual, runtest systemui-notification
Change-Id: Ifa04a21919f60d06080cd63e7d7747180b641308
2018-08-10 15:47:54 -04:00
Neda Topoljanac
6e0404d4cc Merge "Modifing Javadoc for setStatusBarDisabled" 2018-08-09 10:53:41 +00:00
NedaTopoljanac
f132c26a13 Modifing Javadoc for setStatusBarDisabled
To clarify documentation for use in lock screen.

Test: not applicable
Bug: 110247271
Fixes: 110247271
Change-Id: I256a6f4bc01f0f117cb082b541863d7af3ba95cd
2018-08-09 10:38:09 +01:00
lumark
793e056aa1 Add TestApi for CtsActivityManagerDeviceTestCases.
1) Use @TestApis for verify AM related functions to replace using command.
2) Remove "development" protection level for some @TestApis permissions.

Bug: 77988683
Bug: 80415658
Test: atest CtsActivityManagerDeviceTestCases
Change-Id: I4bb10b45a2269c9e871f38f219d3e92cb45eeb9d
2018-08-08 15:14:15 +08:00
Felipe Leme
8d7f7f4f28 Added new API to support multi-activity autofill workflows.
For example, when an app uses one activity to enter username, another for
password.

Bug: 112051762

Test: atest MultiScreenLoginTest # new API
Test: atest CtsAutoFillServiceTestCases # to make sure it doesn't break anything
Test: m -j update-api

Change-Id: Ia95888901ab72f75938efb87103cd76f5ec8ce09
2018-08-07 11:36:20 -07:00
Serik Beketayev
75915d1b9c [JobScheduler] Add hidden API call surface for snapshotting job execution state
Test: WIP
Bug: 111413203
Change-Id: I5356d0821b3d6a657bf50249fdeabf6f0300bf81
2018-08-07 00:51:57 +00:00
Benjamin Miller
625f91aa46 Docs: fixed a broken link in SystemUpdatePolicy
{@docroot} is relative to the root dir, not the host.
Updated the destination and anchor text to reflect the new OTA guide.

Bug: 111521364
Test: make ds-docs and inspect generated HTML
Change-Id: I937f47338e8c18637947944467803c1764938754
2018-08-03 11:01:12 +00:00
Benjamin Miller
52e8f58b5e Merge "Docs: fixed example in SharedPreferencesBackupHelper" 2018-08-03 08:15:33 +00:00
Winson Chung
e4c7d37e03 Merge "Expose method to clear all visible recent tasks" 2018-08-02 21:08:56 +00:00
Winson Chung
e643910a33 Expose method to clear all visible recent tasks
- Atomically remove all the visible tasks so that SysUI doesn't need to
  remove each task individually.

Bug: 80471073
Test: atest FrameworksServicesTests:RecentTasksTest#testRemoveAllVisibleTasks
Change-Id: I23a6e152e94d5462948ab40adc9d7baf593847e1
2018-08-01 12:16:51 -07:00
Bernardo Rufino
f3b8c6fe3a Merge "[KV] State machine to linear task w/ RemoteCall" 2018-08-01 17:56:27 +00:00
Benjamin Miller
0160e156d5 Docs: fixed example in SharedPreferencesBackupHelper
Test: make ds-docs and manual inspection of generated HTML
Bug: 111822295
Change-Id: I415b891ca684684eb88e2ab42ca06460022f0e42
2018-08-01 15:41:22 +00:00
Malcolm Chen
9afe59bf1c Have proper permission check in getConfigForSubId
In CarrierConfigManager, add pass context in constructor, so that
when calling CarrierConfigLoader#getConfigForSubId, it can pass
callingPackage.

Bug: 73136824
Test: regression
Change-Id: I4bbff4ea30e2d5473c14d24d6833bf3ca3c595ec
Merged-In: I4bbff4ea30e2d5473c14d24d6833bf3ca3c595ec
2018-07-31 18:43:01 -07:00
Felipe Leme
849df8f351 Disable warning on blocking one-way call from autofill server.
This behavior existed since autofill was introduced on O and most likely
won't be fixed on Q, so there's no point on warning. In fact, the warning is
often a red herring for other issues, not to mention a big logcat spammer.

Bug: 35708678
Test: manual verification looking at logcat

Change-Id: I40be4ce25abc5b097ea67e5cb34bb9c4237f0826
(cherry picked from commit 385ee5393d)
2018-07-31 13:10:33 -07:00