Commit Graph

6688 Commits

Author SHA1 Message Date
Michael Wright
82e696d5d3 Merge "Ignore DND when FLAG_BYPASS_INTERRUPTION_POLICY is set." into qt-r1-dev am: 3af0a7b5e5
am: 3a0f715588

Change-Id: I6b3b912c16b4a8419e5e9c98c443bbe2b8aa9b7a
2019-06-25 14:46:59 -07:00
Michael Wright
3a0f715588 Merge "Ignore DND when FLAG_BYPASS_INTERRUPTION_POLICY is set." into qt-r1-dev
am: 3af0a7b5e5

Change-Id: I4942abf90c783c67f0a32dbbc018a6a3e4d1c76e
2019-06-25 13:50:46 -07:00
TreeHugger Robot
3af0a7b5e5 Merge "Ignore DND when FLAG_BYPASS_INTERRUPTION_POLICY is set." into qt-r1-dev 2019-06-25 19:49:32 +00:00
Michael Wright
7f378787dc Ignore DND when FLAG_BYPASS_INTERRUPTION_POLICY is set.
When DND is on, it sets AppOps to return MODE_IGNORED for any non-touch
vibrations. Unfortunately, this means it blocks critical vibrations as
well, like emergency alerts. In order to avoid this, we need to respect
FLAG_BYPASS_INTERRUPTION_POLICY when set on the vibration attributes.

Bug: 132112663
Bug: 135686242
Test: Manual
Change-Id: I59465eed057b077a4c0548af162e0fec1c29afdc
2019-06-25 16:57:10 +01:00
Daniel Rosenberg
58462dd8ca Merge "Merge "Make RescueParty call vold directly" into qt-dev am: 2618371aa5 am: 810274ed2d" into qt-r1-dev-plus-aosp
am: 2afc347abf

Change-Id: I3db4dd79a91bc61d5c24b49a9c9295a61b0ccc00
2019-06-24 15:10:34 -07:00
Daniel Rosenberg
2c8d9ec6d9 Merge "Make RescueParty call vold directly" into qt-dev am: 2618371aa5
am: 810274ed2d

Change-Id: Ibe6be230b5417cec8428516f6edbead1b0146976
2019-06-24 15:05:48 -07:00
Daniel Rosenberg
db5894d5a9 Merge "Make RescueParty call vold directly" into qt-dev
am: 2618371aa5

Change-Id: Id4b104e811a30722ea3c70add3750a9319245ff5
2019-06-24 15:00:57 -07:00
Daniel Rosenberg
810274ed2d Merge "Make RescueParty call vold directly" into qt-dev
am: 2618371aa5

Change-Id: I68af684fa3f8be2cc8d9518eee5bd9dbc1b118cb
2019-06-24 15:00:57 -07:00
Steven Moreland
f7aee2d576 Merge changes Ic2e27f56,Ie19e0995 am: 95f507f80d am: 6245e7efe6 am: df99ad0cf9
am: 18d2e90b1d

Change-Id: I1eb7121a1ec8b428d269b7c786f882b52286c432
2019-06-24 14:56:21 -07:00
Steven Moreland
18d2e90b1d Merge changes Ic2e27f56,Ie19e0995 am: 95f507f80d am: 6245e7efe6
am: df99ad0cf9

Change-Id: I0aa2d7bda198ff9bd73e173eb3d54f7f748ba8dc
2019-06-24 14:50:06 -07:00
Steven Moreland
df99ad0cf9 Merge changes Ic2e27f56,Ie19e0995 am: 95f507f80d
am: 6245e7efe6

Change-Id: Ic44dfe2b3defa6f60bee6062c049ff189223cb50
2019-06-24 14:46:25 -07:00
Daniel Rosenberg
d078d8b15c Make RescueParty call vold directly
This changes RescueParty to call vold over binder directly for
Checkpointing related calls. It turns out that if the system is in a bad
enough state, the other method would not work, as some of the services
required would not be running.

Bug: 135558798
Test: setprop persist.sys.enable_rescue 1
      setprop debug.crash_system 1 or setprop debug.crash_sysui 1
      vdc checkpoint startCheckpoint 3
      stop
      start
      Device should go through the rescueparty flow, and reboot.
      Repeat without checkpoint. Device should prompt reboot.

Change-Id: I8b11d68075cc291e9557d524bc87b54d17b370e4
2019-06-24 13:23:27 -07:00
TreeHugger Robot
1077ae03f3 Merge "Start process of next activity with top priority in advance" 2019-06-24 09:00:00 +00:00
Steven Moreland
f54791b388 Remove references to setPermissionController.
This method isn't implemented/used/etc..

Bug: 135768100
Test: TH
Change-Id: Ic2e27f5685cc16562815fcaf1226bc7789f8d882
2019-06-21 18:51:07 -07:00
Steven Moreland
3feab1b474 ServiceManagerNative: delete unused methods
This class is never instantiated (and should be deleted in the future),
doesn't need to inherit from anything, and only has one method that is
used (to get an instance of BpServiceManager defined here). Deleting
unused code, and we can delete the class once apps stop linking against
it.

Bug: 135768100
Test: TH
Change-Id: Ie19e099551b10599a4b7bab29b35d78d66cd3442
2019-06-21 18:28:55 -07:00
TreeHugger Robot
e493e60354 Merge "Remove SystemClock.uptimeMillisClock()." 2019-06-20 20:06:53 +00:00
Kweku Adams
bde8ba4100 Remove SystemClock.uptimeMillisClock().
It was marked @removed in Pie. Now removing it from the code.

Bug: 135214188
Test: atest FrameworksMockingServicesTests
Change-Id: Id8bdf28d8d10a767f54af1bf421185e179c0379a
2019-06-17 15:03:37 -07:00
Kweku Adams
f94be8a9f8 Remove PowerManager.ACTION_SCREEN_BRIGHTNESS_BOOST_CHANGED.
The action was marked as deprecated and removed in Oreo but left around.

Bug: 135214188
Test: atest android.os.PowerManagerTest
Test: atest android.os.cts.PowerManagerTest
Test: atest android.os.cts.PowerManagerTests
Change-Id: Icc3e039dd135fe7e8895b7830d11efdedcfa05c3
2019-06-14 16:58:25 -07:00
Yiwei Zhang
1eb64ef083 Merge "Game Driver: Process sphal libraries in GraphicsEnvironment" into qt-dev am: c0c88c6ed3 am: 74cc59e57b
am: 06bda8d229

Change-Id: I9b34d153379902c11434afd3e42d55fd4efb3b30
2019-06-13 20:13:08 -07:00
Yiwei Zhang
06bda8d229 Merge "Game Driver: Process sphal libraries in GraphicsEnvironment" into qt-dev am: c0c88c6ed3
am: 74cc59e57b

Change-Id: I9c8f18cfa600f1204e95498682fd99e84e808a3e
2019-06-13 19:18:52 -07:00
Yiwei Zhang
5e7b959fd6 Merge "Game Driver: Process sphal libraries in GraphicsEnvironment" into qt-dev
am: c0c88c6ed3

Change-Id: Ie4622fc2bffd73d6be9d2c3aba3bf5ac30e7c0e7
2019-06-13 19:15:01 -07:00
Yiwei Zhang
ab9a5baa4b Merge "Game Driver: add support to apply prerelease driver for all apps" into qt-dev am: 45315597ff am: 3625e21cbc
am: 31c2d89022

Change-Id: Ia9e7d153e67e92946408de56eb74a250c10a9804
2019-06-13 19:02:24 -07:00
Yiwei Zhang
74cc59e57b Merge "Game Driver: Process sphal libraries in GraphicsEnvironment" into qt-dev
am: c0c88c6ed3

Change-Id: I8306fe050ef1be06b185b0a7a3183e0c5a9bdf75
2019-06-13 18:58:31 -07:00
TreeHugger Robot
c0c88c6ed3 Merge "Game Driver: Process sphal libraries in GraphicsEnvironment" into qt-dev 2019-06-14 01:36:32 +00:00
Yiwei Zhang
31c2d89022 Merge "Game Driver: add support to apply prerelease driver for all apps" into qt-dev am: 45315597ff
am: 3625e21cbc

Change-Id: I7ed45f858f86147018f223bc293d6d17498fa44d
2019-06-13 18:19:33 -07:00
Yiwei Zhang
5229f699ee Merge "Game Driver: add support to apply prerelease driver for all apps" into qt-dev
am: 45315597ff

Change-Id: I31910c4b2360e1639cfd9017db66acac67e55347
2019-06-13 18:18:22 -07:00
Yiwei Zhang
3625e21cbc Merge "Game Driver: add support to apply prerelease driver for all apps" into qt-dev
am: 45315597ff

Change-Id: I0579e94650f81720eb5309996ec5a4ff0a309d42
2019-06-13 16:53:18 -07:00
Yiwei Zhang
e3490fce00 Game Driver: Process sphal libraries in GraphicsEnvironment
Previously, there's only one Game Driver existed in the system, so we process
sphal libraries in GPU service to save the launch time for loading Game Driver.
Now we need to support a separate prerelease driver, so we have to move the
processing back to app launch time.

Bug: 134881329
Test: Manual test with prerelease driver and Settings UI.
Change-Id: Ic1bb412a6a026c68f55243c906bd56fe1fee44c3
2019-06-13 14:40:56 -07:00
Yiwei Zhang
38f703fc57 Merge "Game Driver: Add support for prerelease channel" into qt-dev am: ba3f191bd5 am: 17704b8d1b
am: 47f93359d1

Change-Id: Ifad6870eef4fd0bdd0dbafebfd4dd310d1d148d0
2019-06-13 09:10:11 -07:00
Yiwei Zhang
47f93359d1 Merge "Game Driver: Add support for prerelease channel" into qt-dev am: ba3f191bd5
am: 17704b8d1b

Change-Id: I94281ba92d51f29dc8bf9a474b90e5f0c828787a
2019-06-13 08:52:39 -07:00
Yiwei Zhang
e92cac2b6e Merge "Game Driver: Add support for prerelease channel" into qt-dev
am: ba3f191bd5

Change-Id: I43d18ab2eeb588454b1c0752630bf1a0ee82d372
2019-06-13 08:46:41 -07:00
Yiwei Zhang
17704b8d1b Merge "Game Driver: Add support for prerelease channel" into qt-dev
am: ba3f191bd5

Change-Id: I73ec6c30adf0b084a3bbb191eaf66193b2151a47
2019-06-13 08:45:37 -07:00
Yiwei Zhang
ff9a4ee1c1 Game Driver: add support to apply prerelease driver for all apps
Bug: 134881329
Test: Manual test with prerelease driver and Settings UI.
Change-Id: I5f198b0845e9e6431066d44ef623f62e1f5c588a
2019-06-12 18:17:14 -07:00
Yiwei Zhang
5d0d4c6af2 Game Driver: Add support for prerelease channel
Bug: 134881329
Test: Manual test with prerelease driver.
Change-Id: I4865bbf0126df9c470aa7f1c163910eb58fb1a8b
2019-06-12 18:08:08 -07:00
Christian Wailes
6206fea8d3 Merge "Removes unused code from the SystemServer/Zygote classes." into qt-dev am: 7983bfb3e6
am: 63af175cf3

Change-Id: Ie595da6c0c53573aeeedd06621f445674a53725a
2019-06-12 13:12:25 -07:00
Christian Wailes
2997615e73 Merge "Removes unused code from the SystemServer/Zygote classes." into qt-dev
am: 7983bfb3e6

Change-Id: If63d2cbe8b3ba2061276826f88496db8ea283510
2019-06-12 13:09:40 -07:00
Christian Wailes
63af175cf3 Merge "Removes unused code from the SystemServer/Zygote classes." into qt-dev
am: 7983bfb3e6

Change-Id: Icd72a60403a1cec0db1dc72251ab241c7aa60d41
2019-06-12 13:06:29 -07:00
Chris Wailes
bed1976f85 Removes unused code from the SystemServer/Zygote classes.
This patch partially reversts ag/6991475 and ag/7161709.  These changes
are no longer needed due to a change in the graphics driver strategy for
Q.

In addition, the preloading of the graphics driver in the USAPs need to
be removed to avoid causing a memory regression on devices with graphics
driver preloading in the Zygote disabled.

Bug: 134526352
Test: Treehugger
Change-Id: I570037866d1ae90794c711622e6045ebbffa5b9c
Merged-In: I570037866d1ae90794c711622e6045ebbffa5b9c
(cherry picked from commit fcd68fd74b)
2019-06-11 16:34:40 -07:00
Alexey Kuzmin
81413f9014 Merge "Link to death of external vibrations" into qt-dev am: 192b61833d am: cd7cd3fd54
am: 233c84421d

Change-Id: I1cc32887b209b8ca39720bd3630ecb6a7c5c0b3a
2019-06-11 11:46:06 -07:00
Alexey Kuzmin
233c84421d Merge "Link to death of external vibrations" into qt-dev am: 192b61833d
am: cd7cd3fd54

Change-Id: Idbdea4be67ffe1bd9c9b617cd9cd6aee26f46525
2019-06-11 11:37:23 -07:00
Alexey Kuzmin
16c9004e14 Merge "Link to death of external vibrations" into qt-dev
am: 192b61833d

Change-Id: I48d2e57e9e9a0e6f75981a0d33d4c3c38c2b6cbe
2019-06-11 11:31:23 -07:00
Alexey Kuzmin
cd7cd3fd54 Merge "Link to death of external vibrations" into qt-dev
am: 192b61833d

Change-Id: I7e2a74de50ba7de660970f7588eca8030f75dfa8
2019-06-11 11:31:22 -07:00
Christopher Ferris
8e3731924f Merge "Clean-up places that try to read wrap property." 2019-06-11 16:17:34 +00:00
Alexey Kuzmin
133815450b Link to death of external vibrations
Bug: 133200481
Test: manual
Change-Id: I6a76b926d60a79fd450a2f7eaf9609243ac0aaf7
2019-06-11 15:06:59 +01:00
Riddle Hsu
32dbdca4f5 Start process of next activity with top priority in advance
In common cases, to resume the next activity we need to wait for the
current one to be paused. Since starting a process for activity is
asynchronous, if we already know the process of next activity has not
started yet, we can start the process earlier so the time waiting for
the pause to complete can be saved.

Also if the launching activity is going to be the top app, we can set
the top schedule group right after its process is started so the start
time before actually launching the activity can be improved.

Although before the current activity is paused, the next top activity
may still change and results some empty processes. That should not be
a common case and the process is still useful when going back the stack,
and the empty background processes are easier to be reclaimed.

Bug: 123043091
Test: AppLaunchTest
Test: Launch calculator from launcher, the event log am_proc_start will
      show "pre-top-activity".
Test: Cold launch a top activity, the system log should not show
      "not expected top priority".
Test: Use startActivities to start serveral activities in a sequence.
      Check "adb shell cat /proc/$pid/task/$pid/cgroup" for each process.
      Only the last one has top-app, others are background.

Change-Id: I9601b66e7cc0855fd7c2b573ded31fcf8d0711ae
2019-06-11 15:28:01 +08:00
Christopher Ferris
2d030bc4dd Clean-up places that try to read wrap property.
Create a global function that gets the wrap property so everyone uses
the same definition.

It also fixes a bug in ProcessList.java that always set the using wrapper
variable to true since SystemProperty.get() always returned an empty string.
When this is fixed, the function getInputDispatchingTimeout() in
ActivityTaskManagerService.java will return 5 seconds instead of 60 seconds.
Therefore, there is a chance there could be timeouts occurring that didn't
occur before.

Bug: 133515802

Test: Built on a non-USAP device and verified that the wrap property works.
Test: Built on a USAP device and verified that the wrap property works.
Test: Ran the CtsWrapWrapDebugTestCases (verifies wrap.sh still works).
Change-Id: Ia3a85b6572aca6aafaf1405f8d3d97f4bb2441f6
2019-06-10 17:12:46 -07:00
Chris Wailes
fcd68fd74b Removes unused code from the SystemServer/Zygote classes.
This patch partially reversts ag/6991475 and ag/7161709.  These changes
are no longer needed due to a change in the graphics driver strategy for
Q.

These changes are no longer needed due to a change in the graphics
driver strategy for Q.

Bug: 134524811
Test: Treehugger
Change-Id: I570037866d1ae90794c711622e6045ebbffa5b9c
2019-06-10 13:37:46 -07:00
Andreas Gampe
cf6fb06b12 Merge "Frameworks: Slightly refactor Parcel code" am: 9d519d808f am: 308b11e264 am: 2d651ebe25
am: 1faeca82c7

Change-Id: Iaa7d8179791d7a4472f0639e9bebbc7f32038812
2019-06-05 21:49:05 -07:00
Andreas Gampe
1faeca82c7 Merge "Frameworks: Slightly refactor Parcel code" am: 9d519d808f am: 308b11e264
am: 2d651ebe25

Change-Id: Ia9fccc108524bfe24eac7025431e249c892b6cfd
2019-06-05 21:19:26 -07:00
Sudheer Shanka
4d6e9a4ea9 Merge "Fix Environment.isExternalStorageLegacy() impl." into qt-dev am: c703d04fbb am: 7d231f164c
am: 0817f80a29

Change-Id: Id6b6083769fe37d98aac1b5693b677562627c2d6
2019-06-05 20:53:00 -07:00