Commit Graph

9994 Commits

Author SHA1 Message Date
David Brazdil
7ac9e3a1c7 Merge "Greylist requested hidden API" am: 473654c377 am: 9582cf7c1b
am: e10a083e57

Change-Id: Ie1b9085d2766bae6e4725ae50250cdb8b5efd9c6
2018-08-22 08:35:11 -07:00
David Brazdil
e10a083e57 Merge "Greylist requested hidden API" am: 473654c377
am: 9582cf7c1b

Change-Id: I635076240a90acd213a4ec73460e882b6a1a2a74
2018-08-22 07:32:03 -07:00
Mathew Inwood
aa3a71bd85 Merge "Add @UnsupportedAppUsage annotations" am: df82ab2de2
am: b6c87140c7

Change-Id: I659cfb3d4b18ccaf860721f5908a0d6d4814b3b1
2018-08-22 07:18:53 -07:00
Anton Hansson
a101ff0571 Merge "Support /product-services partition" 2018-08-22 13:58:00 +00:00
David Brazdil
9582cf7c1b Merge "Greylist requested hidden API"
am: 473654c377

Change-Id: I01c25f8570851fee7f5db6f355de071acc1f095d
2018-08-22 06:08:03 -07:00
Mathew Inwood
b6c87140c7 Merge "Add @UnsupportedAppUsage annotations"
am: df82ab2de2

Change-Id: I05a2fa49b9400036f3388709e54f0165737887ee
2018-08-22 05:58:59 -07:00
David Brazdil
473654c377 Merge "Greylist requested hidden API" 2018-08-22 09:14:05 +00:00
TreeHugger Robot
3c98e02d43 Merge changes Ied0d0a83,Id649a1ed
* changes:
  Add ability to pass user sentiment to assistant
  Add AndroidTest file for ExtServices
2018-08-21 22:00:50 +00:00
Julia Reynolds
fd4099d74f Add ability to pass user sentiment to assistant
Test: runtest systemui-notification
Bug: 4798501
Change-Id: Ied0d0a83c4fbbdde59ee8f4e9394161792c42c03
2018-08-21 12:58:30 -04:00
Mathew Inwood
6dd61f53df Merge "Greylist methods erroneously removed in ag/4397724." 2018-08-21 16:29:54 +00:00
David Brazdil
47451322ee Greylist requested hidden API
Greylist APIs from public requests which used to be off-limits because
the classes were not discovered by Doclava.

Bug: 79904498
Bug: 79902686
Test: N/A
Change-Id: If6678bed5c2da076f97e3de7ff0bc4e7ebaf1965
2018-08-21 16:59:24 +01:00
Mathew Inwood
da2db6bb84 Greylist methods erroneously removed in ag/4397724.
Due to b/79409988, these methods were removed from the greylist when
they should not have been. Reinstate them.

Bug: 79409988
Test: m
Change-Id: I20777f2abb3faba9e915b9ed6884ec8e9adc9767
2018-08-21 15:01:49 +01:00
Mathew Inwood
8a8f138d1d Merge "Add @UnsupportedAppUsage annotations" 2018-08-21 13:40:29 +00:00
Eugene Susla
07d718be62 Deprecate HandlerCaller in favor of PooledLambda
Test: proofread
Change-Id: I9e7200e6985d13bfd78df9efea94d5861db2cf56
2018-08-20 15:33:55 -07:00
Mathew Inwood
c185f08c4a Add @UnsupportedAppUsage annotations
For packages:
  com.android.internal
  com.android.internal.annotations
  com.android.internal.app
  com.android.internal.app.procstats
  com.android.internal.appwidget
  com.android.internal.backup
  com.android.internal.car
  com.android.internal.content
  com.android.internal.inputmethod
  com.android.internal.location
  com.android.internal.logging
  com.android.internal.midi
  com.android.internal.net
  com.android.internal.os
  com.android.internal.policy
  com.android.internal.statusbar
  com.android.internal.telecom
  com.android.internal.telephony.euicc
  com.android.internal.textservice
  com.android.internal.util
  com.android.internal.view
  com.android.internal.view.animation
  com.android.internal.view.menu
  com.android.internal.widget

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: I1c2954c5a579f073017c1794fd2d200e0a471602
Merged-In: Ib31b52e6957869e5744dadbb35cb4584ef17187f
2018-08-20 14:28:54 +01:00
Mathew Inwood
af972c802d Add @UnsupportedAppUsage annotations
For packages:
  com.android.internal
  com.android.internal.annotations
  com.android.internal.app
  com.android.internal.app.procstats
  com.android.internal.appwidget
  com.android.internal.backup
  com.android.internal.car
  com.android.internal.content
  com.android.internal.inputmethod
  com.android.internal.location
  com.android.internal.logging
  com.android.internal.midi
  com.android.internal.net
  com.android.internal.os
  com.android.internal.policy
  com.android.internal.statusbar
  com.android.internal.telecom
  com.android.internal.telephony.euicc
  com.android.internal.textservice
  com.android.internal.util
  com.android.internal.view
  com.android.internal.view.animation
  com.android.internal.view.menu
  com.android.internal.widget

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: Ib31b52e6957869e5744dadbb35cb4584ef17187f
2018-08-20 14:13:20 +01:00
Rafal Slawik
91b9e0b544 Cleanup: delete unused local variable and sort imports
Test: cleanup CL, existing unit tests still pass
Change-Id: I29e2ef36aad23e2e2a23617455be9348847c2d19
2018-08-20 09:56:26 +00:00
Selim Cinek
c1e76b87ce Merge "Fixed an issue where the message could be empty" into pi-dev am: 99168a6371
am: e206929da3

Change-Id: Id90f348bb753c503df3823c2017d258ecb6f15cb
2018-08-17 16:19:24 -07:00
Selim Cinek
e206929da3 Merge "Fixed an issue where the message could be empty" into pi-dev
am: 99168a6371

Change-Id: I848486310a74b37dcac41bf81a5746ca15dc0d7d
2018-08-17 15:26:03 -07:00
Dario Freni
2bef1768a8 Support /product-services partition
This CL is largely an adaptation of Change-Id
I16175933cebd9ec665d190cc5d564b5414a91827 . I also used the same way for
testing the change.

This CL will support the followings.
- installing a RRO package for framework from /product-services/overlay
- installing apps from /product-services/app
- installing priv-apps from /product-services/priv-app
- installing permissions from
  /product-services/etc/[default-permissions|permissions|sysconfig]

Bug: 80741439
Test: `mm` under frameworks/base/tests/[libs|privapp]-permissions
  adb sync && adb reboot
  adb shell cmd package list libraries
    => confirmed com.android.test.libs.product_services library
  adb shell cmd package dump \
    com.android.framework.permission.privapp.tests.product_services
    => confirmed that the package is a priv-app

  And I moved vendor/overlay/framework-res__auto_generated_rro.apk
  into system/product-services/overlay/ on taimen, and I confirmed that the
  RRO was installed properly.

Change-Id: I7a6a30bf8e8db9f2738594d187bb9148f138b8da
(cherry picked from commit a4af41736894bd3bf5bdc2a279acbeed2a24dd3d)
2018-08-17 16:34:03 +00:00
Lucas Dupin
c81702eb62 Reach gesture implementation
Add configurable doze gesture. OEMs should define the gesture type
on a device overlay.

Bug: 111414690
Test: look at logs in adb shell dumpsys activity service com.android.systemui
Test: manual with alternative sensor event
Change-Id: I048b99b53151427006e42eb6b4780a420020cd78
2018-08-16 11:59:29 -07:00
Riddle Hsu
a4d6fa229c Get gravity of menu panel by display
Also:
 - Reorganize import of DisplayContent and PhoneWindow.
 - Fix DisplayContent leakage in wm test.
   (SurfaceFlinger abort in createLayer -> addClientLayer with
    "Suspected IGBP leak: 4097 IGBPs (4096 max)")

Bug: b/111362047
Test: atest FrameworksServicesTests:DisplayContentTests# \
      testGetPreferredOptionsPanelGravityFromDifferentDisplays

Change-Id: I9c5a0f59a86fda08bd532cb2b66bab76b2dfa6c8
2018-08-15 20:51:57 +08:00
Selim Cinek
3c2fd6a1d7 Fixed an issue where the message could be empty
We're now making sure that the last message can never be too short
and we will therefore always see at least one message

Bug: 111576198
Test: Send message with "Text\r\n"
Change-Id: I4db0708511c45710540653501c845df5dd813545
2018-08-14 17:24:45 -07:00
Andrew Lehmer
d42decc7af Merge "Double tap and lift should take to lock screen" 2018-08-13 15:54:27 +00:00
Lucas Dupin
4359b559f2 Double tap and lift should take to lock screen
The current ambient display design doesn't make sense when the
display is not 'always on', let's wake-up directly to the lock
screen instead.

Change-Id: I217720dcf01a507f43e9da6e1970b2246fb75211
Test: double tap from AOD or screen off
Test: lift from AOD or screen off
Test: receive pulsing notification, long press
Fixes: 73148491
Fixes: 111881300
Bug: 111414690
2018-08-10 14:05:02 -07:00
Dianne Hackborn
eaed0ba69f Flesh out procstats protobufs to have ALL THE INFO!
This involved re-arranging some of the protobuf structs.
What is there now is kind-of awkward, but I didn't want to go
through and just completely change the whole thing.

Bug: 110957691
Test: atest CtsStatsdHostTestCases:ProcStatsValidationTests
Change-Id: I1d59c15c4d0f3dbdea2cf71307debfcafed7938a
2018-08-10 09:28:12 -07:00
Makoto Onuki
7388dd5419 Merge "Add a hidden API for fgetfilecon(3)" am: 9b04b2fd0b am: c5d7fdef72 am: 39ddb130ec
am: 09663b4ada

Change-Id: I88f58139f5539b2f46256f1f522ad3d05ce47b93
2018-08-08 17:19:13 -07:00
Hugo Benichi
f5f5457232 Merge "VPN: Implement toString for VpnConfig." am: c874462c2d am: 52f56a2948 am: e4e1ab85d9
am: 6d915c711f

Change-Id: I33281bdf6342d5053ddb9ceff03fbe03c4c6ce16
2018-08-08 17:02:51 -07:00
Remi NGUYEN VAN
2c871f9241 Merge "Add codewiz@, reminv@ to OWNERS for connectivity" am: 76f081be5c am: a96779b592 am: fb9247e38d
am: f76484af05

Change-Id: I1d77e198618d1de05f952ae58abb3b79e66e49e3
2018-08-08 16:44:05 -07:00
Makoto Onuki
09663b4ada Merge "Add a hidden API for fgetfilecon(3)" am: 9b04b2fd0b am: c5d7fdef72
am: 39ddb130ec

Change-Id: Ib33c1e9f57ce727d6ecb1a5f799c0570c6b32208
2018-08-08 13:05:36 -07:00
Hugo Benichi
6d915c711f Merge "VPN: Implement toString for VpnConfig." am: c874462c2d am: 52f56a2948
am: e4e1ab85d9

Change-Id: If9b64dddcfafce5decf6b9de84481e2c1bc1dbab
2018-08-08 12:54:12 -07:00
Remi NGUYEN VAN
f76484af05 Merge "Add codewiz@, reminv@ to OWNERS for connectivity" am: 76f081be5c am: a96779b592
am: fb9247e38d

Change-Id: I755a029d35edb73924dbeccc698901dea533c57d
2018-08-08 12:21:25 -07:00
Makoto Onuki
39ddb130ec Merge "Add a hidden API for fgetfilecon(3)" am: 9b04b2fd0b
am: c5d7fdef72

Change-Id: I7a6876932b3eb8ecf61fa7c9470ae53ed1d8a0ae
2018-08-08 12:18:58 -07:00
Hugo Benichi
e4e1ab85d9 Merge "VPN: Implement toString for VpnConfig." am: c874462c2d
am: 52f56a2948

Change-Id: Ic07276029d19ac42da901183d247fe79a25c139a
2018-08-08 12:08:58 -07:00
Remi NGUYEN VAN
fb9247e38d Merge "Add codewiz@, reminv@ to OWNERS for connectivity" am: 76f081be5c
am: a96779b592

Change-Id: I781053bcceb117f3d83950a5ee477b766bb7e314
2018-08-08 11:57:20 -07:00
Makoto Onuki
9b04b2fd0b Merge "Add a hidden API for fgetfilecon(3)" 2018-08-08 14:51:19 +00:00
Hugo Benichi
c874462c2d Merge "VPN: Implement toString for VpnConfig." 2018-08-08 08:07:47 +00:00
Remi NGUYEN VAN
d2cb322e93 Add codewiz@, reminv@ to OWNERS for connectivity
Test: m
Change-Id: I11df4c93ac61b620fc576a2ff17192b7c9ecb984
2018-08-08 12:22:20 +09:00
TreeHugger Robot
17e78cef39 Merge "Improve binder calls stats sampling." 2018-08-06 22:53:16 +00:00
TreeHugger Robot
35863cda9a Merge "Minor changes on top of memory leak fix ag/4607657" 2018-08-06 22:51:36 +00:00
Makoto Onuki
9700015b36 Add a hidden API for fgetfilecon(3)
Test: manual test with the debug code
Bug: 111381531
Change-Id: Ie9d6fe9e737b852cc825990a83bda6eb95cf1160
2018-08-06 14:31:45 -07:00
Hui Yu
10571e0ce5 Minor changes on top of memory leak fix ag/4607657
Fix: 80443940
Test: "adb shell cmd battery unplug" and "adb shell cmd battery set ac 1",
observe memory usage from Android Monitor.

Change-Id: If095a5a88bf43485f2b1ab6da4cab0c87099b90b
2018-08-06 13:20:55 -07:00
Olivier Gaillard
359e2eef15 Merge "Set default sampling period to 100." 2018-08-06 20:11:42 +00:00
Olivier Gaillard
0d5f50428b Merge "Remove unused imports" 2018-08-06 20:10:48 +00:00
arangelov
8eedb5ad40 Merge "No disclaimer when switching profile for system SMS and dialer apps." into pi-dev am: a7a496f3a1
am: 487ca863a0

Change-Id: I7d5a8a2e2784adc31ae0f366cf81650819228007
2018-08-06 11:00:57 -07:00
arangelov
487ca863a0 Merge "No disclaimer when switching profile for system SMS and dialer apps." into pi-dev
am: a7a496f3a1

Change-Id: I7a14ee395b21c8b6d9c81dc6d13497110bc336b4
2018-08-06 10:44:32 -07:00
Olivier Gaillard
34ad8af018 Improve binder calls stats sampling.
- Decouple detailed tracking and sampling. Detailed tracking now control
which data wwe should track (e.g. exception, max reply size, ...),
sampling controls the % of requests to track
- Do not create a CallStat object just for the sake of tracking the call
count. Most of the keys have a really low call count (60% of keys below
10 call counts, 90% below 100 calls). When data sampling is enabled, we
can save lots of memory.

Test: unit test
Change-Id: If81b38023a76a8b1e07e655f9ecd8a098d401df4
2018-08-06 16:49:26 +01:00
Olivier Gaillard
c0eadf9976 Set default sampling period to 100.
Test: unit test
Change-Id: I23fb6dbb6de75c948c30b71bb93eaab557090424
2018-08-06 16:49:26 +01:00
Olivier Gaillard
94e6fe61c7 Remove unused imports
Test: unit test
Change-Id: I01c4d0001fa76cb79f1c40ce40d9a55e3bd5623a
2018-08-06 16:49:25 +01:00
Hugo Benichi
4d5c5d0ec4 VPN: Implement toString for VpnConfig.
Bug: 69426741
Test: Build, flashed, booted. Checked VpnConfig is printed as expected
in the logs.
Change-Id: I07629fa1df52b405de538953bb30f0fee5cf4fbf
2018-08-07 00:12:29 +09:00