Commit Graph

92091 Commits

Author SHA1 Message Date
TreeHugger Robot
c4ef64285d Merge "Make adjustNotification working no matter the notification is just enqueued or already posted" 2019-03-25 16:13:10 +00:00
Christine Franks
ac976f3089 Merge "Synchronize NightDisplayListener" 2019-03-25 16:12:16 +00:00
Stanislav Zholnin
052518f825 Merge "Add READ_DEVICE_CONFIG permission check to DeviceConfig API." 2019-03-25 15:59:02 +00:00
Remi NGUYEN VAN
525878a4be Merge "Add nullability annotations" am: a1ee1fc888 am: 3d48153a8f
am: b141a800ac

Change-Id: I43088399da1d81556ab903ef1ca716439129f00d
2019-03-25 06:56:43 -07:00
Tony Mak
dcef8e393b Make adjustNotification working no matter the notification is just
enqueued or already posted

BUG: 129042820

Test: atest frameworks/base/packages/ExtServices/tests/src/android/ext/services/notification/

Change-Id: I5df96b0e971e9b037b3efa9204c3fad3bfcf1081
2019-03-25 13:47:29 +00:00
Remi NGUYEN VAN
b141a800ac Merge "Add nullability annotations" am: a1ee1fc888
am: 3d48153a8f

Change-Id: Ic81850c2976e7412e85856c5d1336f30d0691125
2019-03-25 06:42:49 -07:00
Remi NGUYEN VAN
3d48153a8f Merge "Add nullability annotations"
am: a1ee1fc888

Change-Id: I47ec92d406b16eaff049ad4a5af1b1b407418e4d
2019-03-25 06:33:40 -07:00
Treehugger Robot
a1ee1fc888 Merge "Add nullability annotations" 2019-03-25 13:19:19 +00:00
Antoan Angelov
4d7990f458 Merge "Remove PROVISIONING_MODE_MANAGED_PROFILE_ON_FULLY_MANAGED_DEVICE" 2019-03-25 12:53:43 +00:00
Junyu Lai
356c5dfd42 Merge "Fix SocketKeepalive APIs which do not meet API review requirement" am: 8324c3e7e5 am: 08e1787088
am: d24f3fc8b1

Change-Id: I873a82de90efce6f3baa17761c0576dc9c8210be
2019-03-25 04:16:18 -07:00
Stanislav Zholnin
5579950a80 Add READ_DEVICE_CONFIG permission check to DeviceConfig API.
Test: atest FrameworksCoreTests:DeviceConfigTest
      atest FrameworksCoreTests:SettingsProviderTest
      atest SettingsProviderTest:DeviceConfigServiceTest

Bug:117663715
Change-Id: I04226876ddf910945bf343d25fa3dd04ba8eab31
2019-03-25 11:14:07 +00:00
Junyu Lai
d24f3fc8b1 Merge "Fix SocketKeepalive APIs which do not meet API review requirement" am: 8324c3e7e5
am: 08e1787088

Change-Id: Iead39e877aec917ff3c409fda1ff0c4dbaa21fcb
2019-03-25 04:06:39 -07:00
Junyu Lai
08e1787088 Merge "Fix SocketKeepalive APIs which do not meet API review requirement"
am: 8324c3e7e5

Change-Id: Id82be12a54e676c4ad18900ae910e6d08079e62c
2019-03-25 03:57:32 -07:00
Remi NGUYEN VAN
f6ae002aba Merge "Add nullable annotations to startActivityAsUser" am: 743a4b7872
am: 2704d2f4f6

Change-Id: I9f52f733b219acaae437c452bc238f6933bb0cec
2019-03-25 03:50:40 -07:00
Junyu Lai
8324c3e7e5 Merge "Fix SocketKeepalive APIs which do not meet API review requirement" 2019-03-25 10:42:37 +00:00
Remi NGUYEN VAN
2704d2f4f6 Merge "Add nullable annotations to startActivityAsUser"
am: 743a4b7872

Change-Id: Ifa44f448fd37ecc2051a16d979717b8aeaa05ebf
2019-03-25 03:41:34 -07:00
Treehugger Robot
743a4b7872 Merge "Add nullable annotations to startActivityAsUser" 2019-03-25 10:29:22 +00:00
Remi NGUYEN VAN
ef8f79292f Add nullable annotations to startActivityAsUser
This change is already in internal branches.

Test: m
Bug: 128935825
Change-Id: I6f6c939c26215fbc113a6edafbdf865d365c9105
Merged-In: I9b61d833a68528f168611c83a8539eb095a42e01
2019-03-25 16:59:27 +09:00
junyulai
0c66697770 Fix SocketKeepalive APIs which do not meet API review requirement
Per API review, change the use of FileDescriptor to
ParcelFileDescriptor.
This change also fix nullability according to API review
feedbacks.

Fix: 126698610
Fix: 126699425
Fix: 126699232
Fix: 126700278

Test: 1. m -j
      2. atest FrameworksNetTests --generate-new-metrics 50
      3. m -j doc-comment-check-docs
Change-Id: I19476c50dd1ca290bf3f41973829da2bd229796a
2019-03-25 15:56:35 +08:00
Remi NGUYEN VAN
45ecef3b4c Add nullability annotations
Add nullability annotations on the following methods:
 - StaticIpConfiguration#getRoutes
 - ValidationProbeEvent#getProbeName

Test: m
Bug: 128935825
Change-Id: I1c17d200f3125e684c4e4d67b2f7f079eda310b6
2019-03-25 16:46:34 +09:00
Remi NGUYEN VAN
516d750ae2 Merge "Separate NetworkMonitor/framework portal URL" am: bcd3bed561 am: 34198fac89
am: 4d975feb9f

Change-Id: I85e744d94d96ecf9ac558e62016418d8199bb98c
2019-03-24 20:23:39 -07:00
Remi NGUYEN VAN
4d975feb9f Merge "Separate NetworkMonitor/framework portal URL" am: bcd3bed561
am: 34198fac89

Change-Id: Ic6c16ccf98e943b7003524f6e2b98e100e543221
2019-03-24 20:11:49 -07:00
Remi NGUYEN VAN
34198fac89 Merge "Separate NetworkMonitor/framework portal URL"
am: bcd3bed561

Change-Id: I1926527f7875e459b4d3c84bfcd8b3aac9562cae
2019-03-24 20:02:39 -07:00
Remi NGUYEN VAN
cd08ecfdfd Merge "Fix API in CaptivePortal and ConnectivityManager" am: 3c959339ae
am: 79f2cf93d2

Change-Id: Ibe9d16bbf1e794eb05166ad9c6bccb3ad5bcae9d
2019-03-24 19:57:01 -07:00
Remi NGUYEN VAN
bcd3bed561 Merge "Separate NetworkMonitor/framework portal URL" 2019-03-25 02:50:37 +00:00
Remi NGUYEN VAN
79f2cf93d2 Merge "Fix API in CaptivePortal and ConnectivityManager"
am: 3c959339ae

Change-Id: I4cc3c61232c74bafe4eb549c1aba5de20a8bb3ff
2019-03-24 19:46:32 -07:00
Treehugger Robot
3c959339ae Merge "Fix API in CaptivePortal and ConnectivityManager" 2019-03-25 02:37:28 +00:00
Remi NGUYEN VAN
7ad556886e Merge "Refactor DhcpErrorEvent error codes" am: ed2e54a521 am: 150a395303
am: 78c80c1098

Change-Id: Icfc48ac2ac899a25836e142b5c22dae51fd1752f
2019-03-24 19:08:46 -07:00
Remi NGUYEN VAN
78c80c1098 Merge "Refactor DhcpErrorEvent error codes" am: ed2e54a521
am: 150a395303

Change-Id: I6f18975173a21526b3fe8a9c174b16625e1fab0e
2019-03-24 18:55:37 -07:00
Remi NGUYEN VAN
150a395303 Merge "Refactor DhcpErrorEvent error codes"
am: ed2e54a521

Change-Id: I5bbac5cedb73e1a7705914f190ff22f753791e96
2019-03-24 18:46:13 -07:00
Remi NGUYEN VAN
e2365d6644 Fix API in CaptivePortal and ConnectivityManager
- Remove CaptivePortal constructor from SystemApi. This constructor was
   added in Q timeframe and ends up being unnecessary since
   CaptivePortal creation was refactored to ConnectivityService because
   of visibility issues on ICaptivePortal.
 - Rename getAvoidBadWifi to shouldAvoidBadWifi
 - Add permission annotation for shouldAvoidBadWifi

(already merged in internal as:
I09545c00af3519dbf141dd5951b28f49e37b3e80)

Test: flashed, WiFi and captive portal works
Bug: 128935314
Bug: 128935673
Merged-In: I09545c00af3519dbf141dd5951b28f49e37b3e80
Change-Id: I7395d4a4db6a64398a827692aee1956c011873e5
2019-03-25 01:43:48 +00:00
Remi NGUYEN VAN
ed2e54a521 Merge "Refactor DhcpErrorEvent error codes" 2019-03-25 01:33:59 +00:00
Jackal Guo
a4d92da88d Merge "Refine adjustIsVisibleToUser" 2019-03-25 01:11:36 +00:00
Jeff Sharkey
ff200957fd Query specific collections for properties.
We're now enforcing the public API schema, so clients like MTP need
to query specific collections when asking for properties that are
specific to those media types.

Also refactor MediaScanner calls to go through MediaProvider, so
they can be handled by ModernMediaScanner.  We no longer directly
try inserting items, and instead rely completely on the scanner.

Bug: 127625964, 122263824
Test: atest MediaProviderTests
Test: atest cts/tests/tests/provider/src/android/provider/cts/MediaStore*
Change-Id: Ic86982766606a619afafe725f9c60013a5671840
2019-03-24 14:21:01 -06:00
Varun Shah
06c5aacde7 Merge "Remove deprecated USM#registerAppUsageLimitObserver." 2019-03-23 22:14:40 +00:00
Jeff Sharkey
788f9d3847 Merge "Helper methods for constructing MediaStore Uris." 2019-03-23 19:31:56 +00:00
Jeff Sharkey
ae80b5417b Merge changes from topic "mar22z"
* changes:
  Point people towards ModernMediaScanner.
  Translate paths before leaving app sandbox.
2019-03-23 17:59:03 +00:00
Jeff Sharkey
f9ebfc9af0 Helper methods for constructing MediaStore Uris.
Bug: 128787096
Test: atest MediaProviderTests
Test: atest cts/tests/tests/provider/src/android/provider/cts/MediaStore*
Change-Id: I2848feb616df1c4df0b1bb71544769f61b9d84e8
2019-03-23 11:54:45 -06:00
TreeHugger Robot
4b58630ef2 Merge "Fixed a property naming mismatch." 2019-03-23 09:55:19 +00:00
TreeHugger Robot
f09c91b279 Merge "Converting EXTRA_PACKAGE_NAME to a link tag" 2019-03-23 06:19:42 +00:00
TreeHugger Robot
8b6cecb841 Merge "Api feedback for status bar icon api" 2019-03-23 06:00:18 +00:00
Tej Singh
e5f5a10478 Merge "Public StatsLog API for generic mainline logging." 2019-03-23 05:00:52 +00:00
TreeHugger Robot
778423d951 Merge "Make Resources.Theme.rebase() public API" 2019-03-23 05:00:14 +00:00
TreeHugger Robot
1987dfa035 Merge "Added a "lite" flag on ContentCaptureOptions." 2019-03-23 04:33:21 +00:00
TreeHugger Robot
66837a62b9 Merge "Code cleanup in ZygoteProcess.java." 2019-03-23 01:18:00 +00:00
Chris Wailes
da5b64e7f2 Fixed a property naming mismatch.
Device configuration properties in ZygoteConfig.java used old names for
certain values.  These name strings have been updated to the correct
values and additional logging has been added to help catch future
issues.

Test: m
Test: boot and check log for USAP messages
Change-Id: I2fb92afe7edd9b1254dd3be659ec5063aa0b8e16
2019-03-22 17:45:28 -07:00
TreeHugger Robot
dd72d2f8cd Merge "Restrict access to FLAG_USE_CHILD_DRAWING_ORDER." 2019-03-23 00:26:47 +00:00
TreeHugger Robot
23537e3995 Merge "Conversation Actions: support multiple models." 2019-03-22 23:36:21 +00:00
Jeff Sharkey
9c9ee953e6 Translate paths before leaving app sandbox.
When sending the ACTION_MEDIA_SCANNER_SCAN_FILE broadcast, an app
provides a raw filesystem path, which might be inside of their
sandbox.

Once the broadcast is delivered, we don't know where it came from,
so we need to translate the path before leaving the app process.

Bug: 117909601
Test: atest cts/tests/tests/provider/src/android/provider/cts/MediaStore*
Change-Id: Ibddd72a2d85e1f6541e0d6209e539fe6b5c4bde0
2019-03-22 17:18:40 -06:00
Chris Wailes
6a17f8393e Code cleanup in ZygoteProcess.java.
Generic code cleanup.  Changed access scopes, replaced code with utility
functions, and outlined some code.

Test: m
Test: treehugger
Change-Id: I6d9a827abf88dc30eac611642723d69cb75bb351
2019-03-22 16:13:47 -07:00