Commit Graph

23756 Commits

Author SHA1 Message Date
Kevin Rocard
a9c3a3a47b Merge changes from topic "APC-PackageManagerNative"
* changes:
  Allow to project audio from a Screen capture MediaProjection
  Expose allowAudioPlaybackCapture to PackageManagerNative
  Introduce playback capture application manifest flag
2019-02-28 05:19:58 +00:00
Remi NGUYEN VAN
48e139de39 Merge "Add Os.connect(fd, SocketAddress) to public API" am: 6c1f09f77e am: 29812e6a31
am: be412a4ecf

Change-Id: Ieaa5307f3dd82305e9a774c6e20f12eb7cc2635a
2019-02-27 21:11:26 -08:00
Remi NGUYEN VAN
be412a4ecf Merge "Add Os.connect(fd, SocketAddress) to public API" am: 6c1f09f77e
am: 29812e6a31

Change-Id: Ic00452af06f46a5a4ba603103553d66f82118f61
2019-02-27 21:02:12 -08:00
Remi NGUYEN VAN
6c1f09f77e Merge "Add Os.connect(fd, SocketAddress) to public API" 2019-02-28 04:42:36 +00:00
Remi NGUYEN VAN
72decd9258 Add Os.connect(fd, SocketAddress) to public API
1. There are already related socket API methods that return
   SocketAddress, such as Os.getpeername().
2. Having APIs that take SocketAddress are a closer match
   to the POSIX APIs that android.system.Os is exposing,
   and are more flexible than just taking InetAddress+port
   combinations since the latter only supports IPv4 and
   IPv6.

This was covered by tests in change:
Iadf9f10e26bbc650c5e1b9d03f32c5dafb6f21b4

And completes Ic496c1212dc2d97cf34db2a7c7d024b02790e8ed.

Test: m
Bug: 123062477
Change-Id: I885bfe1bf24a361bef2bb2f783622b934637ba99
2019-02-28 04:39:32 +00:00
TreeHugger Robot
4e417f607f Merge "Adding nullability annotation." 2019-02-28 02:47:04 +00:00
TreeHugger Robot
79c8d6623b Merge "Add API Service.getForegroundServiceType()" 2019-02-28 01:48:02 +00:00
Hongwei Wang
1cd36ecbf0 Merge changes from topic "renault-volume-group"
* changes:
  Add Volume per Attributes setter/getters
  Add Volume Groups API to AudioManager
  AudioVolumeGroup introspection & callback JAVA APIs
2019-02-28 00:44:51 +00:00
François Gaffie
9c36210d29 Add Volume Groups API to AudioManager
-put in cache collection in AudioService
-add helper function in Strategies and volume groups

Bug: 124767636
Test: dumpsys media.audio_policy
Change-Id: I688abf79ce7dead927fbd021e48bf6460d6cdc85
Signed-off-by: François Gaffie <francois.gaffie@renault.com>
2019-02-27 16:21:51 -08:00
François Gaffie
adcd00a7c8 AudioVolumeGroup introspection & callback JAVA APIs
This CL adds introspection APIs for Audio Volume group
and callback notification on group volume change.
It allows to keep the same level of service available today
in CarAudioManager and is a starting point to get rid of Stream Alias
hard coded in AudioServer.

Bug: 124767636
Test: dumpsys media.audio_policy
Change-Id: I48909df93c146f071acd24cd3ecc608cb98b4d7e
Signed-off-by: François Gaffie <francois.gaffie@renault.com>
2019-02-27 16:21:27 -08:00
David Brazdil
42ef8a164e Merge "Move ApplicationInfo to params in AppComponentFactory" 2019-02-27 23:56:03 +00:00
Malcolm Chen
e0e0f71e9b Adding nullability annotation.
For below APIs:
removeOnOpportunisticSubscriptionChangedListener
switchToSubscription

Bug: 126391202
Test: build
Change-Id: I791fd6307371ef9a1918b119f4a1b15623517157
2019-02-27 15:51:24 -08:00
Xiangyu/Malcolm Chen
6dabb47132 Merge "Add @Nullable on SubscriptionInfo#getGroupUuid" 2019-02-27 23:39:16 +00:00
Sunil Ravi
7ad5e8b779 Merge "Wi-Fi: @IntRange for getRx/TxLinkSpeedMbps" 2019-02-27 21:16:25 +00:00
Jordan Liu
ccef577e82 Merge "Implement isRemovable" am: eee18bd546
am: b63abf252b

Change-Id: Ifc5cf98c5b68e994568a6c2aedd3816ccfc274be
2019-02-27 13:09:04 -08:00
Jordan Liu
eee18bd546 Merge "Implement isRemovable" 2019-02-27 20:40:31 +00:00
David Brazdil
33bd343596 Move ApplicationInfo to params in AppComponentFactory
Tweak AppComponentFactory.instantiateClassLoader() API to accept
ApplicationInfo as an argument instead of an independent getter.

Bug: 124800390
Bug: 111342996
Test: atest CtsClassLoaderFactoryPathClassLoaderTestCases
Test: atest CtsClassLoaderFactoryInMemoryDexClassLoaderTestCases
Change-Id: I4a4d5af842446a5060083c88a0ac5bec014c0c55
2019-02-27 20:15:18 +00:00
Amruth Ramachandran
6cde03853b Merge "Expose DataSpecificRegistrationState as System API" am: d5386dfe1f am: e212a01efe
am: f6413dc707

Change-Id: I8541fde8fc1a38422b78d5b93cafb3ea60a4e3ad
2019-02-27 11:37:32 -08:00
Amruth Ramachandran
f6413dc707 Merge "Expose DataSpecificRegistrationState as System API" am: d5386dfe1f
am: e212a01efe

Change-Id: I7e40dcc45fc0674b9b66a7b58dfb5a02ecf6cd3a
2019-02-27 11:25:26 -08:00
Gustav Sennton
c81eb67413 Merge "Move NotificationAssistant flags into SystemUi namespace." 2019-02-27 19:09:33 +00:00
Amruth Ramachandran
d5386dfe1f Merge "Expose DataSpecificRegistrationState as System API" 2019-02-27 19:00:44 +00:00
Gustav Sennton
ddd78b2d4f Move NotificationAssistant flags into SystemUi namespace.
Create SystemUi DeviceConfig namespace and add a class to store all its
flags in. These flags will be shared between the SystemUi package and
other Notification packages - like ExtServices and
NotificationManagerService.

Performing experiments across different packages is much more involved
than performed single-package experiments. Therefore, we put flags
related to Notifications into the System UI experiment flag package.

Bug: 120792826
Test: atest AssistantSettingsTest
Change-Id: I83992291e660ab092bed8d22d1abaaa2bd9d6f9a
2019-02-27 16:51:47 +00:00
Roshan Pius
5f73a14085 Merge changes from topics "hide_scan_from_app_ops", "security_type"
* changes:
  WifiScanner: Add a flag to hide request from app-ops
  WifiConfiguration: Add @hide method to set security params
2019-02-27 15:06:01 +00:00
Issei Suzuki
f2d13673f4 Merge "Move AmbientDisplayConfiguration class out of internal package." 2019-02-27 14:28:36 +00:00
TreeHugger Robot
2d16430de5 Merge "WindowInsets: Add missing annotations and make Builder final" 2019-02-27 12:46:40 +00:00
Kevin Rocard
f91d50b620 Introduce playback capture application manifest flag
Allow apps to opt-out of their playback beeing recorded with an
application wide out-out.

Previously an application had to opt-out on each of its audio tracks.

Application targeting an SDK < Q are considered opt-out by default.
Application targeting an SDK >= Q are considered opt-in by default.

Test: adb shell audiorecorder --target /data/file1.raw &
      adb shell am start -a android.intent.action.VIEW -d file:///system/media/audio/ringtones/Lollipop.ogg -t audio/ogg
      adb dumpsys media.audio_policy # check playback is *not* recorded
      # change packages/apps/Music manifest to allowPlaybackCapture=true
      adb install out/target/product/walleye/system/product/app/Music/Music.apk
      adb shell am start -a android.intent.action.VIEW -d file:///system/media/audio/ringtones/Lollipop.ogg -t audio/ogg
      adb dumpsys media.audio_policy # check playback is recorded
      kill %1
      adb pull /data/file1.raw && sox -r 48000 -e signed -b 16 -c 2 file1.raw file.wav&& audacity file.wav
      # check that the audio file contains first silence then the ringtone after the manifest flag was added
Bug: 111453086
Change-Id: Ie617b15f481a7f148b6e9fc9d64e61acaa5ce71d
Signed-off-by: Kevin Rocard <krocard@google.com>
2019-02-27 03:15:50 -08:00
Narayan Kamath
01794b570b Merge "Drop support for device configurable "compatibility WAL"." 2019-02-27 11:03:29 +00:00
TreeHugger Robot
1f4f9f6e4b Merge "getScaledMinScalingSpan -> getScaledMinimum..." 2019-02-27 10:44:12 +00:00
TreeHugger Robot
fd25fe1206 Merge changes from topic "rnm-audio-product-strategies"
* changes:
  Add API to retrieve Audio Product Strategy from a given Audio Attributes
  AudioManager: add Audio Product Strategies introspection SystemAPI
2019-02-27 09:38:47 +00:00
Issei Suzuki
ca19e6e3ef Move AmbientDisplayConfiguration class out of internal package.
Test: m droid (run full build), atest SystemUITests
Bug: 126327497
Change-Id: Ife8303924bd02e9639008293bf9028f4871a9b16
2019-02-27 10:34:17 +01:00
Hyundo Moon
14b09a377a Merge "Add Session2Token#getExtras()" 2019-02-27 07:38:15 +00:00
Irina Dumitrescu
074a1c25b4 Merge "Add @NonNull annotation to set proxy on VPN parameter." am: 909baeddfa am: 121dab8e6b
am: 64f39de1de

Change-Id: Id84b4881dcfeb83d1faf55b7f1220b84efe63860
2019-02-26 22:28:10 -08:00
Irina Dumitrescu
64f39de1de Merge "Add @NonNull annotation to set proxy on VPN parameter." am: 909baeddfa
am: 121dab8e6b

Change-Id: Ic732bf56e8603ffe215d7689e2101e3c6f6c0b25
2019-02-26 22:19:29 -08:00
Treehugger Robot
909baeddfa Merge "Add @NonNull annotation to set proxy on VPN parameter." 2019-02-27 05:56:28 +00:00
Roshan Pius
fc900aa0e5 WifiScanner: Add a flag to hide request from app-ops
This flag is intended to be used by the NLP/FLP package on the device to
hide their request from app-ops logging. NLP/FLP module will be
responsible to blame (note in app-ops) their external clients who
eventually get the location computed using these raw results.

Also, removed a redundant permission tag in the previously added
|ignoreLocationSettings| flag. This entire surface is useable by apps
holding LOCATION_HARDWARE permission. So, there is no need to explicitly
call this out for that field.

Bug: 119833663
Test: Compiles
Change-Id: Idba70fe4a15e611d4485d05b771d71f2d707d0b5
2019-02-26 21:46:37 -08:00
François Gaffie
f4f3bfe747 Add API to retrieve Audio Product Strategy from a given Audio Attributes
In order to ensure only one matching algorithm is implemented in the
audio policy engine, we cannot use the list of audio product strategy
to let the client of this API inferring the product strategy to use.
It shall request the audio policy manager which product strategy shall be
followed by a given Audio Attributes.

Bug: 124767636
Test: dumpsys media.audio_policy
Change-Id: I372a47df4a35efd68a3ea327581af54823997dba
Signed-off-by: François Gaffie <francois.gaffie@renault.com>
2019-02-26 21:27:19 -08:00
François Gaffie
0699fecd47 AudioManager: add Audio Product Strategies introspection SystemAPI
Bug: 124767636
Test: dumpsys media.audio_policy
Change-Id: I31b970d7439f76604079d4cffc67bc9373df08e1
Signed-off-by: François Gaffie <francois.gaffie@renault.com>
2019-02-26 21:27:19 -08:00
Malcolm Chen
f386bfa13e Add @Nullable on SubscriptionInfo#getGroupUuid
SubscriptionInfo#getGroupUuid will return null if group is not set.

Bug: 123587615
Test: build
Change-Id: I592d35388d88bda1f908441824772fea36d43059
2019-02-26 19:44:22 -08:00
Tor Norbye
435846c6b5 Merge "Revert "Update MbmsDownloadServiceBase to reflect implements IInterface"" am: e701106d6e am: 588413cf2b
am: 84b78e71fc

Change-Id: Ie1a26be8f133f268cefa405a38b56773fe1dee03
2019-02-26 19:18:40 -08:00
Tor Norbye
84b78e71fc Merge "Revert "Update MbmsDownloadServiceBase to reflect implements IInterface"" am: e701106d6e
am: 588413cf2b

Change-Id: I1ce88f43e761c009100d8eec50fe85000a63f91a
2019-02-26 19:06:30 -08:00
Tor Norbye
e701106d6e Merge "Revert "Update MbmsDownloadServiceBase to reflect implements IInterface"" 2019-02-27 02:33:15 +00:00
Irina Dumitrescu
5155a2d7e4 Add @NonNull annotation to set proxy on VPN parameter.
Test: manual
Bug: 124883120
Change-Id: Ifb4bd98a69a006220b1a824033395fc6f12ea6ce
2019-02-27 01:06:00 +00:00
Tor Norbye
2c76358add Revert "Update MbmsDownloadServiceBase to reflect implements IInterface"
This reverts commit ddc496d622.

Reason for revert: b/126374865

Change-Id: I53f87d15712a0f2acc5787efcf68c72021e9b831
2019-02-27 00:21:39 +00:00
Jean-Michel Trivi
54beaa6c2a Merge "AudioPolicy API fixes" 2019-02-26 23:45:58 +00:00
shepshapard
192c635632 getScaledMinScalingSpan -> getScaledMinimum...
Fixes: 126376129
Test: android.view.cts.ViewConfigurationTest

Change-Id: Ie5ac265bb8a390d9b82a61cac32ac1dc02556eb7
2019-02-26 15:19:15 -08:00
Hall Liu
99e375f01a Merge "Rename the RTT audio flag in ImsStreamMediaProfile" am: 3d7b3fb737 am: d2fbd99a76
am: 9faf498f65

Change-Id: I342dc297d91f7bcd0f3d2efa6b5e21d220563853
2019-02-26 14:34:43 -08:00
Hall Liu
9faf498f65 Merge "Rename the RTT audio flag in ImsStreamMediaProfile" am: 3d7b3fb737
am: d2fbd99a76

Change-Id: Iff21bbda55f9a6afd9866ebd0042321c6745bf40
2019-02-26 14:25:33 -08:00
Amruth Ramachandran
e4cbd119d4 Expose DataSpecificRegistrationState as System API
LteVopsSupportInfo is currently not accessible for telephony
  APK since DataSpecificRegistrationState is @hide api. This info is
  required to determine if current LTE network support IMS. This
  change exposes DataSpecificRegistrationState and LteVops info
  as System API.

Bug: 112194535
Test: atest

Change-Id: Iec5c42ccef88b66c3f8ef05f8f96b2a4133ca63f
2019-02-26 14:16:40 -08:00
Varun Shah
ea548cc3ab Merge "Updated Nullable annotation for #registerAppUsageLimitObserver." 2019-02-26 22:13:20 +00:00
Varun Shah
652081146a Merge "Added @NonNull to LauncherApps#getAppUsageLimit parameters." 2019-02-26 22:12:52 +00:00