400850 Commits

Author SHA1 Message Date
Tadashi G. Takaoka
2bc664065e Add generic SelectTest JUnit filter and CoreTestsFilter
The JUnit filter com.android.test.filters.SelectTest is a generic test
filter that can supersede |-e package| and |-e class| options of
AndroidJUnitRunner.

The com.android.server.wm.test.filters.CoreTestsFilter extends SelectTest
filter to filter out Window Manager Service releated tests in
FrameworksCoreTests.

Bug: 122451194
Test: Can select some tests from WmTests.
  $ adb shell am instrument -w \
      -e filter com.android.test.filters.SelectTest \
      -e selectTest com.android.test.filters.,com.android.server.wm.DockedStackDividerControllerTests \
      com.android.frameworks.wmtests/androidx.test.runner.AndroidJUnitRunner
Test: CoreTestsFilter works for FrameworksCoreTests.
  $ adb shell am instrument -w \
      -e filter com.android.server.wm.test.filters.CoreTestsFilter \
      -e selectTest_verbose true \
      com.android.frameworks.coretests/androidx.test.runner.AndroidJUnitRunner

Change-Id: Ic72637997bf17debef914e2596049f6cf3e753de
2019-01-23 10:36:44 +09:00
Felipe Leme
58cf528f53 Merge "Fixed bad merge." 2019-01-23 01:27:09 +00:00
TreeHugger Robot
4b06dcba98 Merge "Applies friction to non-dismiss drag only after the snap point." 2019-01-23 01:26:10 +00:00
Felipe Leme
479294a372 Fixed bad merge.
Bug:122858578
Test: echo "in TreeHugger we trust!'

Change-Id: I48274d874e6f870c042afc2fdc90ea394f14fe79
2019-01-22 17:24:09 -08:00
Remi NGUYEN VAN
58582a36fc Merge "Add getAvoidBadWifi system API" 2019-01-23 01:13:01 +00:00
Sal Savage
948ba47e14 Merge "Update config file documentation and examples for network type propagation" am: bfd44b60ef
am: a414bf1691

Change-Id: I86789fdd45ebff23fa6020c0fa702d06908d3d67
2019-01-22 17:11:06 -08:00
Jack Yu
0e9b2f0ca9 Merge "Supported data handover in DcTracker/DataConnection/ApnContext" 2019-01-23 01:10:22 +00:00
TreeHugger Robot
7b04d482cb Merge "Allow to listen to roleholder changes of all users" 2019-01-23 01:03:34 +00:00
TreeHugger Robot
e0e1169347 Merge "Stop using SkHalfToFloat" 2019-01-23 00:52:27 +00:00
David Su
6e8bb61990 Merge "Scan Optimization: Proto change for device mobility state PNO scan stats" 2019-01-23 00:50:19 +00:00
Kweku Adams
288e73b011 Adding job count quota limits.
The main change is to have a limit for the past 10 minutes to avoid
short job bursts/spam. I've included bucket limits in case we want to
try them, but the limits are extremely high, so they should only affect
bad/pathological cases.

Bug: 117846754
Bug: 111423978
Test: atest com.android.server.job.controllers.QuotaControllerTest
Change-Id: I7bf7f1da64981187fa0295d0f6382779667e09dc
2019-01-22 16:49:47 -08:00
TreeHugger Robot
f9f6102a42 Merge "Initial metrics for Augmented Autofill." 2019-01-23 00:45:24 +00:00
Sal Savage
a414bf1691 Merge "Update config file documentation and examples for network type propagation"
am: bfd44b60ef

Change-Id: I0b1690102776065a7f1c1156e9c4808a8c111e29
2019-01-22 16:43:27 -08:00
Sungsoo Lim
1a73f7393e Merge "Introduce MediaSessionEngine" 2019-01-23 00:37:16 +00:00
TreeHugger Robot
a3bc64302f Merge "Remove unused SleepUtils." 2019-01-23 00:35:24 +00:00
Soonil Nagarkar
0ef34932e3 Merge "Add location settings piercing in emergencies" 2019-01-23 00:26:52 +00:00
Tim Murray
31a11dcde0 compaction: fix full compaction action
The right action is "all," not full.

Test: compaction actually happens
bug 119988524

Change-Id: I5e4a93f9603f2c714c549d16b31dd8527078fd2f
2019-01-22 16:17:04 -08:00
Ryan Mitchell
f67808b78d Optimize aapt2 compile for pngs
Do not copy the png data when compiling pngs.

Bug: 122950060
Test: aapt2 compile -o . BaseAppPhoto1_copy.png

Change-Id: I78fbdaa9a40ada406d7b07cf072d6cd76124168e
2019-01-22 16:16:13 -08:00
Sal Savage
bfd44b60ef Merge "Update config file documentation and examples for network type propagation" 2019-01-23 00:10:24 +00:00
Dmitry Dementyev
4b15dd2134 Merge "Increase the timeout for SmartLock from 20 seconds to 4 hours." 2019-01-23 00:09:11 +00:00
Ryan Savitski
cfdc151d52 zygote children: propagate profileability to bionic for native heap profiling
go/heapprofd is a native heap profiler for android Q+. Its triggering is
implemented within /bionic/libc. App processes (i.e.  zygote children) are not
considered profileable by default on "user" builds. To opt-in into being
profileable, the app's manifest needs to have the Q+ go/profileable flag set
(or be marked as debuggable, which is its superset).

With this change, if the app is supposed to be profileable, post-fork runtime
init calls into bionic to mark itself as such, and possibly start "from
startup" profiling.

On userdebug, all zygote children are marked profileable via the same
mechanism. System server is also marked profileable on userdebug (and needs a
separate codepath, as it does not have an activity thread).

See go/heapprofd-java-trigger for details on why we're taking this approach.
Context on the profiler itself: go/heapprofd-design.

Test: flashed blueline-userdebug, confirmed that java profiling activates from startup and at runtime.
Test: flashed crosshatch-user, confirmed that no java profiling is enabled by default.
Bug: 120409382
Change-Id: Ia038871acfa6b9cae7b6a81f666aecce4b68a4fc
2019-01-23 00:08:15 +00:00
TreeHugger Robot
4edd7eacbd Merge "add OverlayManager.setEnabled to system-current.txt" 2019-01-23 00:07:31 +00:00
Chris Wailes
aa1c962ded Implemented native functions and types for blastula management.
This patch adds native support for spawning and managing blastula pools,
as well as several code cleanups and modernizations.

Changes includes:
* A function to fork blastulas
* A table for managing blastula-related data
* Functions for adding and removing blastula data from the
aforementioned table
* Switching from NULL to nullptr
* Replacing string-passing error handling with a curried failure
function
* Utility functions for handling managed objects
* JNI functions for blastula pool management

Change-Id: I12cd9f2c87a2e3c00d64b683edf3631e29a51551
Topic: zygot-prefork
Test: make & flash & launch apps & check log for messages
Bug: 68253328
2019-01-22 16:07:27 -08:00
Naina Nalluri
10ac0e811a Merge "Add config for cbrs" 2019-01-23 00:04:47 +00:00
Tomoharu Kasahara
a0d0c542b9 Enable phone apps to mute the BLUETOOTH_SCO stream
This change adds support for privileged apps with the MODIFY_PHONE_STATE
permission to mute the bluetooth sco stream using the adjustStreamVolume
method.
The change adds specific handling for BLUETOOTH_SCO as a mutable stream.

Bug: 111195322
Test: Mute works by AudioManager.adjustStreamVolume
 (STREAM_BLUETOOTH_SCO, ADJUST_MUTE, 0)

Change-Id: I932f9e152e9b6df93a749b083a7bcc7e08c2ad70
2019-01-23 09:04:42 +09:00
Mathieu Chartier
dccb7769f7 Merge "Add mathieuc to OWNERS for startop" 2019-01-22 23:56:46 +00:00
Andrii Kulian
f2d3f7425d Revert "Multiple resumed activities"
This reverts commit 5bca8b8c25e8a944daab643b4fbf3c51662cd385.

Reason for revert: b/123166999

Change-Id: Ie0f29213d314159c55c487d7afbd7417db537fe0
2019-01-22 23:41:54 +00:00
Mathieu Chartier
1e3c00cb28 Add mathieuc to OWNERS for startop
Bug: 111397239
Test: n/a
Change-Id: Ib4765833140c8c53806b48e4fcd4a3870931ea5d
2019-01-22 15:39:50 -08:00
Nick Kralevich
2280c5d8ae Merge "UsbDebuggingActivity.java: OK -> Allow" am: f9718dbe17 am: 56ed214f67
am: 889ff4966b

Change-Id: I54ce67321abe0d058920c96298d97e6cc2834b09
2019-01-22 15:38:34 -08:00
Android Build Merger (Role)
40931ce466 Merge "Merge changes If71fadd2,I42047185 am: 022daeb874 am: 6d1da29090 am: 5da014a5fb" 2019-01-22 23:30:02 +00:00
Chalard Jean
d068b9302a Merge changes If71fadd2,I42047185 am: 022daeb874 am: 6d1da29090
am: 5da014a5fb

Change-Id: Ia91e6eac1b53fabb018fb4e1f689bb986e895ca4
2019-01-22 15:29:37 -08:00
Nick Kralevich
889ff4966b Merge "UsbDebuggingActivity.java: OK -> Allow" am: f9718dbe17
am: 56ed214f67

Change-Id: Ieec3c59499c3a3770d92a52866aa324df1ce0473
2019-01-22 15:28:39 -08:00
Chavi Weingarten
a9b6d9c0b6 Merge "Use Transaction reparent to null instead of destroy for SC in DragState" 2019-01-22 23:26:09 +00:00
Anil Admal
0177f9087e Add config parameter NFW_PROXY_APPS to CarrierConfigManager
This new config parameter was added to GNSS Configuration as
part of the Non-Framework Location Management feature.

Bug: 122976033
Test: Verified with real device.
Change-Id: I77c348d4b199ed2cef3b4b087ca6438f0eee81c6
2019-01-22 15:22:06 -08:00
Chalard Jean
5da014a5fb Merge changes If71fadd2,I42047185 am: 022daeb874
am: 6d1da29090

Change-Id: Id181b0c617c209bdf01ce25a8920d96025f8421d
2019-01-22 15:20:30 -08:00
Nick Kralevich
56ed214f67 Merge "UsbDebuggingActivity.java: OK -> Allow"
am: f9718dbe17

Change-Id: I597e50b031334ff67641f9252d8081fbfca7f4b4
2019-01-22 15:19:11 -08:00
TreeHugger Robot
e54b7b5498 Merge changes I4054d6f4,Ib14e9a93,Iafbe6d51
* changes:
  CpuStats - Do not write debug entries to dump output
  Set ThreadLocalWorkSource when delivering Alarms
  Add WorkSource.getAttributionUid()
2019-01-22 23:14:25 +00:00
Chalard Jean
6d1da29090 Merge changes If71fadd2,I42047185
am: 022daeb874

Change-Id: Ie15258f09adb7f1cc53c558e1d3d5fdaf8d93476
2019-01-22 15:12:54 -08:00
Treehugger Robot
f9718dbe17 Merge "UsbDebuggingActivity.java: OK -> Allow" 2019-01-22 23:09:39 +00:00
Joel Galenson
4bed492179 Show only recent accesses
Pass an argument to the Permissions Hub telling it to show only
accesses in the last minute.

Test: Open this dialog, click the button, ensure last minute is
selected in the Permissions Hub.

Change-Id: I55a11248ba3f08723628cb38861c86254d8e9e11
2019-01-22 15:07:24 -08:00
Joel Galenson
c857f02a5b Add an intent extra that contains a number of milliseconds.
The Permissions Hub will use this to control the default time filter.

Bug: 63532550
Test: Pass argument to intent.
Change-Id: Iac607853f7020acdb50a20d82c7b8b9e1a0bd32e
2019-01-22 15:07:21 -08:00
Philip P. Moltmann
3c4a480185 Allow to listen to roleholder changes of all users
We just keep a separate listener-set around for USER_ALL and call it
every time something change for any user.

Bug: 110557011
Test: Registered a USER_ALL listener and triggered a role change
Change-Id: I6752d615193c86f6ac4aa896a8601b3535529dc1
2019-01-22 15:06:29 -08:00
TreeHugger Robot
9a8406418d Merge "Added trace points for ContentCapture." 2019-01-22 23:05:27 +00:00
Ugo Yu
4a33b88761 Skeleton implementation of Bluetooth metadata APIs
Bug: 121051445
Test: Build pass
Change-Id: I5e80210205b37294b1eb8356502ebf242e627ce4
2019-01-23 07:01:47 +08:00
Christian Wailes
afad518955 Merge "Add the blastula pool sockets to the Zygote whitelist." 2019-01-22 22:58:18 +00:00
Android Build Merger (Role)
efedc4eef8 Merge "[automerger skipped] Merge "Migrate ICaptivePortal to stable AIDL" am: eb7c53718a am: d15930fc27 am: 7a037988d0 -s ours am skip reason: change_id I62b457e709fa199822bb8f80b0eab990be4ded93 with SHA1 111e1c35e3 is in history" 2019-01-22 22:57:51 +00:00
Remi NGUYEN VAN
7518dfed13 [automerger skipped] Merge "Migrate ICaptivePortal to stable AIDL" am: eb7c53718a am: d15930fc27
am: 7a037988d0 -s ours
am skip reason: change_id I62b457e709fa199822bb8f80b0eab990be4ded93 with SHA1 111e1c35e3 is in history

Change-Id: If02574c9e6f3c77a0787c9747307d99eea4095e5
2019-01-22 14:57:23 -08:00
Quang Luong
c84e08203e Merge "Remove double quote from AP key from a WifiConfiguration" 2019-01-22 22:54:56 +00:00
Eric Laurent
f8c8483e40 Merge "AudioService: add checks when getting A2DP codec config from BT service" 2019-01-22 22:54:04 +00:00
Chalard Jean
022daeb874 Merge changes If71fadd2,I42047185
* changes:
  [MS10] Address leftover comments on MS03 and MS07
  [MS09] Implement isSameNetwork.
2019-01-22 22:50:21 +00:00