OSDN Git Service

android-x86/frameworks-base.git
6 years agoUse timeout consts in all ConnService tests
Remi NGUYEN VAN [Thu, 26 Jul 2018 09:41:36 +0000 (18:41 +0900)]
Use timeout consts in all ConnService tests

Fix some timeouts that were forgotten in parent CL.

Bug: b/111778226
Test: runtest --no-hidden-api-checks -x ConnectivityServiceTest.java
Change-Id: Ib848eaba8c69c07ac596aa4386a741c9a2a87fc9

6 years agoIncrease linger delay and test callback timeout
Remi NGUYEN VAN [Thu, 26 Jul 2018 07:39:45 +0000 (16:39 +0900)]
Increase linger delay and test callback timeout

Tests appear to have become much slower on apct in recent runs, although
local runs do not seem to be affected. As a first measure, increase our
timeouts to eliminate flakyness.

Bug: b/111778226
Test: runtest --no-hidden-api-checks -x ConnectivityServiceTest.java
Change-Id: I7a3bfb646eb554bcd9d50d026142f2a2cff74beb

6 years agoMerge "Merge generated greylists into final greylist."
Mathew Inwood [Thu, 26 Jul 2018 07:37:29 +0000 (07:37 +0000)]
Merge "Merge generated greylists into final greylist."

6 years agoMerge "Disable generating Binder#getTransactionName."
Treehugger Robot [Wed, 25 Jul 2018 18:31:22 +0000 (18:31 +0000)]
Merge "Disable generating Binder#getTransactionName."

6 years agoMerge "Fix order of hidl unlinkToDeath."
Steven Moreland [Wed, 25 Jul 2018 18:12:27 +0000 (18:12 +0000)]
Merge "Fix order of hidl unlinkToDeath."

6 years agoMerge "Fix edge effect not showing up on first scroll"
Treehugger Robot [Wed, 25 Jul 2018 16:43:11 +0000 (16:43 +0000)]
Merge "Fix edge effect not showing up on first scroll"

6 years agoDisable generating Binder#getTransactionName.
Olivier Gaillard [Wed, 25 Jul 2018 16:16:49 +0000 (17:16 +0100)]
Disable generating Binder#getTransactionName.

It might have introduce a performance regression.

Bug: 111791983
Test: manual
Change-Id: I459d9e4e4d2d5d0be0531742a7910848702a1384

6 years agoMerge "Turn droiddoc's metalava_merge_annotations_dir into a list."
Treehugger Robot [Wed, 25 Jul 2018 16:02:48 +0000 (16:02 +0000)]
Merge "Turn droiddoc's metalava_merge_annotations_dir into a list."

6 years agoTurn droiddoc's metalava_merge_annotations_dir into a list.
Pete Gillin [Thu, 19 Jul 2018 17:08:06 +0000 (18:08 +0100)]
Turn droiddoc's metalava_merge_annotations_dir into a list.

This change replaces droiddoc's metalava_merge_annotations_dir
parameter (which takes a single value) with
metalava_merge_annotations_dirs (which takes a list). This will makes
it possible to merge libcore annotations in from a separate directory
under ojluni, instead of adding them in a preprocessing step.

Test: `make metalava-api-stubs-docs` with a local change to add a second directory
Bug: 111639530
Change-Id: I8eb778038c1cb52ddb6fc86d972f555f49e836b2

6 years agoMerge "Update annotation name in class2greylist."
Treehugger Robot [Wed, 25 Jul 2018 10:42:12 +0000 (10:42 +0000)]
Merge "Update annotation name in class2greylist."

6 years agoUpdate annotation name in class2greylist.
Mathew Inwood [Wed, 25 Jul 2018 08:45:04 +0000 (09:45 +0100)]
Update annotation name in class2greylist.

Annotation was added with name @UnsupportedAppUsage after Android API
council discussion.

Bug: 110868826
Test: m class2greylist
Change-Id: I63ad61e97c5e8fdebfcead9e4ee5b060a60f97c7

6 years agoMerge "Increase TEST_LINGER_DELAY_MS"
Remi NGUYEN VAN [Wed, 25 Jul 2018 03:08:48 +0000 (03:08 +0000)]
Merge "Increase TEST_LINGER_DELAY_MS"

6 years agoMerge "don't call setSize() when creating SurfaceControl"
Treehugger Robot [Wed, 25 Jul 2018 02:31:13 +0000 (02:31 +0000)]
Merge "don't call setSize() when creating SurfaceControl"

6 years agoMerge "Remove test dependency on ubsan runtime"
Remi NGUYEN VAN [Wed, 25 Jul 2018 02:28:21 +0000 (02:28 +0000)]
Merge "Remove test dependency on ubsan runtime"

6 years agoFix order of hidl unlinkToDeath.
Steven Moreland [Tue, 24 Jul 2018 20:11:53 +0000 (13:11 -0700)]
Fix order of hidl unlinkToDeath.

Calling unlinkToDeath after linking to death multiple
times will unregister the most recently registered
death recipient as expected.

Bug: 67503915
Test: hidl_test_java
Change-Id: Ia7774c3d1f8932660890716e0edb7a1180430de7

6 years agoMerge changes from topic "deprecate-iis-closed"
Paul Duffin [Tue, 24 Jul 2018 15:22:30 +0000 (15:22 +0000)]
Merge changes from topic "deprecate-iis-closed"

* changes:
  Deprecate InflaterInputStream.closed field
  Correct ordering of TelephonyManager methods

6 years agoMerge "Make BinderProxy @hide public class."
Treehugger Robot [Tue, 24 Jul 2018 14:12:13 +0000 (14:12 +0000)]
Merge "Make BinderProxy @hide public class."

6 years agoMerge "Add annotation for hidden members used by apps."
Mathew Inwood [Tue, 24 Jul 2018 14:00:23 +0000 (14:00 +0000)]
Merge "Add annotation for hidden members used by apps."

6 years agoMerge "Move UriCodec to be near its one user"
Treehugger Robot [Tue, 24 Jul 2018 13:58:39 +0000 (13:58 +0000)]
Merge "Move UriCodec to be near its one user"

6 years agoAdd annotation for hidden members used by apps.
Mathew Inwood [Tue, 26 Jun 2018 13:06:27 +0000 (14:06 +0100)]
Add annotation for hidden members used by apps.

This annotation will be added to existing hidden methods and fields that are
known to be used by apps.

These annotations will be used to replace the existing hard coded greylist
text files.

See go/hidden-api-annotations for more context.

Test: m
Bug: 110868826

Change-Id: I1b86ad8460525c2896fb84d7f1f95a521f582b9c

6 years agoMerge "Break some dependencies on libcore internals"
Neil Fuller [Tue, 24 Jul 2018 08:50:50 +0000 (08:50 +0000)]
Merge "Break some dependencies on libcore internals"

6 years agoMerge "Remove dependency on InflaterInputStream.closed field."
Paul Duffin [Tue, 24 Jul 2018 08:14:31 +0000 (08:14 +0000)]
Merge "Remove dependency on InflaterInputStream.closed field."

6 years agoRemove test dependency on ubsan runtime
Remi NGUYEN VAN [Tue, 24 Jul 2018 02:28:29 +0000 (11:28 +0900)]
Remove test dependency on ubsan runtime

Requirement for this dependency was removed in aosp/696863.

Bug: b/79785496
Test: runtest frameworks-net (aosp), atest FrameworksNetTests
Change-Id: I14bb65c8f0a9b55aeae6376ff04ce18be7dc7f22

6 years agoMerge "Access Identity and SignalStrength from CellInfo"
Nathan Harold [Mon, 23 Jul 2018 21:35:00 +0000 (21:35 +0000)]
Merge "Access Identity and SignalStrength from CellInfo"

6 years agoMerge "Check for /dev/memcg/system/tasks before writing to it"
Treehugger Robot [Mon, 23 Jul 2018 19:21:19 +0000 (19:21 +0000)]
Merge "Check for /dev/memcg/system/tasks before writing to it"

6 years agoMove UriCodec to be near its one user
Neil Fuller [Fri, 13 Jul 2018 19:02:58 +0000 (20:02 +0100)]
Move UriCodec to be near its one user

The only user of UriCodec is android.net.Uri so it can
be moved to android.net.

This change moves the UriCodecTest to the unit tests
and there is an associated change to Uri's CTS tests
to ensure we're testing public method behavior there too.

Test: make droid && make cts
Bug: 111055375
Change-Id: Id032f849b439adf3fd7cb1a3c8b234a5eec68fac

6 years agoMerge "Avoid onServiceDisconnected() for unbind Service"
Treehugger Robot [Mon, 23 Jul 2018 17:27:13 +0000 (17:27 +0000)]
Merge "Avoid onServiceDisconnected() for unbind Service"

6 years agoMerge generated greylists into final greylist.
Mathew Inwood [Wed, 11 Jul 2018 14:55:32 +0000 (15:55 +0100)]
Merge generated greylists into final greylist.

With annotations for greylist entries, each java target generates it own
greylist.txt file. Merge all of these into the final greylist.txt.

Bug: 110868826
Test: m
Change-Id: I6a64c65000f1fd9f49e09b5b498bdccc3560d606

6 years agoMerge "Quick style fixup of ISmsImplBase"
Brad Ebinger [Mon, 23 Jul 2018 16:41:51 +0000 (16:41 +0000)]
Merge "Quick style fixup of ISmsImplBase"

6 years agoMerge "Add new "class2greylist" tool."
Mathew Inwood [Mon, 23 Jul 2018 15:51:06 +0000 (15:51 +0000)]
Merge "Add new "class2greylist" tool."

6 years agoAvoid onServiceDisconnected() for unbind Service
Gopal Krishna Shukla [Thu, 19 Jul 2018 13:07:46 +0000 (18:37 +0530)]
Avoid onServiceDisconnected() for unbind Service

onServiceDisconnected() and unbindLocked() both
are responsible to make mRemoteInstanceas null,
so ensure that the service is not unbinded already
while calling onServiceDisconnected()

Fixes:111631529
Test: Build Successful and device Running.
Change-Id: I505d97e32c4e76f06a358850e91fe189bf02654c

6 years agoDeprecate InflaterInputStream.closed field
Paul Duffin [Mon, 23 Jul 2018 15:03:26 +0000 (16:03 +0100)]
Deprecate InflaterInputStream.closed field

As recommended by the Android API Council this field is being
deprecated and will be removed from the API in a future release.

Bug: 111592689
Test: make checkbuild

Change-Id: I9aab7396b8b9faadb764fe9d43e80747b3eec018

6 years agoCorrect ordering of TelephonyManager methods
Paul Duffin [Thu, 19 Jul 2018 14:42:14 +0000 (15:42 +0100)]
Correct ordering of TelephonyManager methods

A previous change (db6a391957f51c6ed9a768f0c39c61ff7a4f3603) seems to
have added some new methods to the api/current.txt manually as they are
in the wrong order. This change corrects the ordering so that they do
not affect future changes to the api/current.txt file.

Bug: 74613795
Test: make checkbuild
Change-Id: I83f9c2ff3cd9f43add297e1c9411598f3eef094f

6 years agoBreak some dependencies on libcore internals
Neil Fuller [Wed, 11 Jul 2018 12:59:45 +0000 (13:59 +0100)]
Break some dependencies on libcore internals

This commit swaps some internal details of libcore for some
abstractions on dedicated "internal facing" APIs. This reduces the
number of internal APIs used. There is an associated change in
libcore/

Bug: 111055375
Test: build / boot
Change-Id: Idddada1922701bd15475c840eaa76c505e545d33

6 years agoRemove dependency on InflaterInputStream.closed field.
Paul Duffin [Tue, 17 Jul 2018 15:14:42 +0000 (16:14 +0100)]
Remove dependency on InflaterInputStream.closed field.

In upstream OpenJDK the InflaterInputStream.closed field is private.
During integration of OpenJDK into Android it was changed to be
protected so that it could be used by StrictJarFile, and in the process
was accidentally made part of the public API. This change removes the
StrictJarFile dependency on that field.

Bug: 111061052
Test: checkbuild, flash and run FrameworkCoreTests
Change-Id: I8aee1c444cf27e7078b848c65e0433c831ab06a0

6 years agoAdd new "class2greylist" tool.
Mathew Inwood [Mon, 9 Jul 2018 14:07:56 +0000 (15:07 +0100)]
Add new "class2greylist" tool.

This extracts signatures of methods that have the @UsedByApps annotation
for generating the greylist. It will be integrated into the build to
replace many members on greylist.txt.

Test: $ atest class2greylisttest
Bug: 110868826
Change-Id: Ifaf5859b60076c051de6be5a912ef70734330ce7

6 years agoMerge "Enable the generate transaction name for system server."
Olivier Gaillard [Mon, 23 Jul 2018 10:32:49 +0000 (10:32 +0000)]
Merge "Enable the generate transaction name for system server."

6 years agoEnable the generate transaction name for system server.
Olivier Gaillard [Tue, 17 Jul 2018 10:25:11 +0000 (11:25 +0100)]
Enable the generate transaction name for system server.

Size of vdex,art,oat files (flag off -> on)
- framework/boot*.vdex: +10K  (3.589M -> 3.599M)
- framework/arm64/boot*.{art,oat}: +20K  (4.378M -> 4.398M)

Test: manual
Change-Id: I4938ca5459004494a50ec81db9ef9e0f0e6e7a60

6 years agoMake BinderProxy @hide public class.
Martijn Coenen [Mon, 9 Jul 2018 18:22:10 +0000 (20:22 +0200)]
Make BinderProxy @hide public class.

To make some future refactoring easier.

Added some JavaDoc (mostly links to android.os.IBinder)
to make checkstyle happy.

Test: builds
Merged-In: If9dd6913868a34ea1e3d14fee1860a4ff368e06b
Change-Id: If9dd6913868a34ea1e3d14fee1860a4ff368e06b
(cherry picked from commit 03e6d923c579ec79939944e7a9a8ac1b36aa2bbb)

6 years agoMerge changes from topic "bionic_fdsan_java"
Treehugger Robot [Sat, 21 Jul 2018 02:06:06 +0000 (02:06 +0000)]
Merge changes from topic "bionic_fdsan_java"

* changes:
  ParcelFileDescriptor: support bionic's fd ownership tracking.
  Reenable fdsan in the zygote post-fork.

6 years agoParcelFileDescriptor: support bionic's fd ownership tracking.
Josh Gao [Tue, 26 Jun 2018 21:20:29 +0000 (14:20 -0700)]
ParcelFileDescriptor: support bionic's fd ownership tracking.

Also, delete a bunch of deprecated functions that are package-private,
and not called anywhere in the package.

Test: booted walleye
Change-Id: I728e63e7d6f9e1ba42644f93983cfcd6a2d2634c

6 years agoReenable fdsan in the zygote post-fork.
Josh Gao [Tue, 26 Jun 2018 23:05:12 +0000 (16:05 -0700)]
Reenable fdsan in the zygote post-fork.

By default, fdsan is disabled after forking to avoid breaking 'fork();
close(0..1024); exec(...)'. Reenable it in the zygote manually.

Bug: http://b/110100358
Test: booted walleye-aosp
Change-Id: I8706e4153e4e91306f50d215a62fe02d445082e1

6 years agoMerge "Correct Telus gid"
Treehugger Robot [Fri, 20 Jul 2018 17:23:11 +0000 (17:23 +0000)]
Merge "Correct Telus gid"

6 years agoCheck for /dev/memcg/system/tasks before writing to it
Jeff Vander Stoep [Thu, 23 Nov 2017 07:09:23 +0000 (23:09 -0800)]
Check for /dev/memcg/system/tasks before writing to it

Fixes the following errors in the logs on devices without /dev/memcg
mounted:

09-08 10:07:22.991   732   732 E Zygote  : couldn't write 1124 to
/dev/memcg/system/tasks
09-08 10:07:22.986   732   732 W main    : type=1400 audit(0.0:8):
avc: denied { create } for name="tasks" scontext=u:r:zygote:s0
tcontext=u:object_r:cgroup:s0 tclass=file permissive=0

Bug: 67860826
Test: boot Taimen, no more error/denial in the logs.
Change-Id: I37f481fa4e9e9116688cca4f090aa26f96f602c9
Merged-In: I37f481fa4e9e9116688cca4f090aa26f96f602c9
(cherry picked from commit 6bdc3a28e75bdb936e7c172bc8d305b2c30c9f06)

6 years agoMerge "Use StrictJarManifest.ATTRIBUTE_NAME_NAME instead of Attributes.Name.NAME."
Treehugger Robot [Fri, 20 Jul 2018 15:50:59 +0000 (15:50 +0000)]
Merge "Use StrictJarManifest.ATTRIBUTE_NAME_NAME instead of Attributes.Name.NAME."

6 years agoMerge "Fix an incorrect null check"
Treehugger Robot [Fri, 20 Jul 2018 12:41:17 +0000 (12:41 +0000)]
Merge "Fix an incorrect null check"

6 years agoCorrect Telus gid
Meng Wang [Wed, 29 Mar 2017 19:12:12 +0000 (12:12 -0700)]
Correct Telus gid

Bug: 34036790
Test: static code review
Change-Id: I3f81c98919425c35471d0bfcf88d77eb88895d12

6 years agoQuick style fixup of ISmsImplBase
Brad Ebinger [Wed, 27 Jun 2018 18:21:05 +0000 (11:21 -0700)]
Quick style fixup of ISmsImplBase

Test: Compiles
Change-Id: Ic27db060e402d8a3239fe588a229c246c3228184

6 years agoAccess Identity and SignalStrength from CellInfo
Nathan Harold [Mon, 9 Jul 2018 18:59:53 +0000 (11:59 -0700)]
Access Identity and SignalStrength from CellInfo

Accessing common CellIdentity and CellSignalStrength
information should not require RTTI. Thus, add
overloaded methods that allow the access the common
versions of these functions from a top level CellInfo.

Bug: 10151416
Test: compilation

Change-Id: I18f31c5cec075dcd68cc493e24c2d551138dd73c

6 years agoMerge "Ensure dropbox could copy tombstone files to special folder."
Treehugger Robot [Thu, 19 Jul 2018 21:10:43 +0000 (21:10 +0000)]
Merge "Ensure dropbox could copy tombstone files to special folder."

6 years agoMerge "Frameworks: Let GuardedBy accept multiple locks"
Treehugger Robot [Thu, 19 Jul 2018 17:29:03 +0000 (17:29 +0000)]
Merge "Frameworks: Let GuardedBy accept multiple locks"

6 years agoEnsure dropbox could copy tombstone files to special folder.
Jinguang Dong [Tue, 17 Jul 2018 03:53:18 +0000 (11:53 +0800)]
Ensure dropbox could copy tombstone files to special folder.

Process of tombstoned have changed the generation flow for
tombstone, and dropbox could not be notified when generating new
tombstone file any more, so dropbox could not copy and compress
tombstone file to /data/system/dropbox. We need to modify
observer events from CLOSE_WRITE to CREATE, and it could
work normally.

Bug: http://b/111608961
Test: 1 After tombstone is triggered, we could see the tombstone
      file in the data/system/dropbox directory.

Signed-off-by: Haoran Li <lihaoran5@huawei.com>
Change-Id: I9d6a31773e4a58658ffab214b1e337f27e9f3ae6

6 years agoMerge "Use Base64 from android.util in LocalTransport"
Neil Fuller [Thu, 19 Jul 2018 15:38:37 +0000 (15:38 +0000)]
Merge "Use Base64 from android.util in LocalTransport"

6 years agoFrameworks: Let GuardedBy accept multiple locks
Andreas Gampe [Thu, 19 Jul 2018 15:10:57 +0000 (08:10 -0700)]
Frameworks: Let GuardedBy accept multiple locks

Widen the definition to take advantage of errorprone support.

Bug: 72666911
Test: m
Test: m RUN_ERROR_PRONE=true javac-check
Change-Id: Id792ee70b41b786da717f916e143786fe6308937

6 years agoFix an incorrect null check
Edward Savage-Jones [Thu, 19 Jul 2018 10:23:58 +0000 (12:23 +0200)]
Fix an incorrect null check

Found an incorrect null check when debugging.

Test: Manual
Change-Id: I7ea3e2cf88117ccef48f994719986e371e45d777

6 years agoIncrease TEST_LINGER_DELAY_MS
Remi NGUYEN VAN [Wed, 11 Jul 2018 09:17:06 +0000 (18:17 +0900)]
Increase TEST_LINGER_DELAY_MS

The current timeout is short enough that lingered networks are torn down
before assertions can be run, causing flakyness in testMultipleLingering.
This CL sets the timeout to 300 in that particular test.

Verified that 300ms is enough with 500 successful runs on Sailfish.

An alternative would be to mock firing of the lingering timer, but
keeping the WakeupMessage logic realistic has already proven useful in
detecting races.

Bug: b/110673602
Test: runtest --no-hidden-api-checks frameworks-net
Change-Id: I6f9a656190bcff0b071ae2584d0f5fa74158472b

6 years agoUse Base64 from android.util in LocalTransport
Bernardo Rufino [Tue, 17 Jul 2018 09:17:43 +0000 (10:17 +0100)]
Use Base64 from android.util in LocalTransport

Stop using bouncycastle as requested in the bug.

Bug: 111440841
Test: 1. Without changes
         a. adb shell bmgr transport android/com.android.internal.backup.LocalTransport
         b. adb shell bmgr backupnow com.android.providers.settings
         c. adb shell ls /cache/backup/1/_delta/<kv_package> #=> Base64 encoded keys
      2. Build and flash this CL
         a. adb shell bmgr restore 1 com.android.providers.settings #=> verify stuff restored
         b. adb shell rm /cache/backup/1/_delta/com.android.providers.settings/* /data/backup/com.android.internal.backup.LocalTransport/com.android.providers.settings
 c. adb shell bmgr backupnow com.android.providers.settings
 d. adb shell ls
 /cache/backup/1/_delta/com.android.providers.settings # Verify same keys as 1c

Merged-In: I305bbae0e0af3639c1d45def19872e6da84624df
Change-Id: I305bbae0e0af3639c1d45def19872e6da84624df
(cherry picked from commit 7a6e03271995fa20754663a66cd334aebf077e84)

6 years agoMerge "API updated for ICU4J 62.1"
Treehugger Robot [Wed, 18 Jul 2018 15:03:59 +0000 (15:03 +0000)]
Merge "API updated for ICU4J 62.1"

6 years agoMerge "[DO NOT MERGE] Do not dismiss volume dialog onAnimationEnd while dialog is...
Treehugger Robot [Wed, 18 Jul 2018 14:59:20 +0000 (14:59 +0000)]
Merge "[DO NOT MERGE] Do not dismiss volume dialog onAnimationEnd while dialog is showing"

6 years agoAPI updated for ICU4J 62.1
Fredrik Roubert [Tue, 5 Jun 2018 04:28:49 +0000 (21:28 -0700)]
API updated for ICU4J 62.1

- ICU 62 upgrades to Unicode 11. Add new APIs for Unicode 11.0

Bug: 109930825
Bug: 109837373
Test: make
Change-Id: I3f23bbe624a10511a613cb07fd35e8272d1461a2

6 years agoMerge "[DO NOT MERGE] Update P light greylist in AOSP"
David Brazdil [Wed, 18 Jul 2018 11:49:00 +0000 (11:49 +0000)]
Merge "[DO NOT MERGE] Update P light greylist in AOSP"

6 years ago[DO NOT MERGE] Update P light greylist in AOSP
David Brazdil [Wed, 18 Jul 2018 09:29:10 +0000 (10:29 +0100)]
[DO NOT MERGE] Update P light greylist in AOSP

Publish the final light greylist of P for external developers.

Test: N/A
Change-Id: I5513ee2ee555bf1dced7f52b36de3df7ac85747a

6 years ago[DO NOT MERGE] Do not dismiss volume dialog onAnimationEnd while dialog is showing
eddy-sh.chen [Mon, 16 Jul 2018 06:12:04 +0000 (14:12 +0800)]
[DO NOT MERGE] Do not dismiss volume dialog onAnimationEnd while dialog is showing

Bug: 80362864
Bug: 111478851

Change-Id: Iec6e27285bf35238d378e6561896f1d0b303fa24

6 years agoMerge "Ensure Notification re-post with setOnlyAlertOnce(true) silences sound."
Tyler Gunn [Tue, 17 Jul 2018 20:29:59 +0000 (20:29 +0000)]
Merge "Ensure Notification re-post with setOnlyAlertOnce(true) silences sound."

6 years agoMerge "UsbDescriptor: Add finite timeout to control transfer"
Jerry Zhang [Tue, 17 Jul 2018 19:47:29 +0000 (19:47 +0000)]
Merge "UsbDescriptor: Add finite timeout to control transfer"

6 years agoEnsure Notification re-post with setOnlyAlertOnce(true) silences sound.
Tyler Gunn [Tue, 3 Jul 2018 19:38:49 +0000 (12:38 -0700)]
Ensure Notification re-post with setOnlyAlertOnce(true) silences sound.

Where a notification channel has an associated looping sound, it should
be possible to re-post the notification with setOnlyAlertOnce(true) to
cause the notification channel's sound to silence.

When re-posting the notification, this CL fixes an issue where
NotificationManagerService wouldn't call clearSoundLocked to stop playing
the sound, resulting in the notification continuing to playing the sound
associated with the notification channel.

Test: Manual testing, updated unit test
Bug: 110348674
Merged-In: I3ec26f0804bcf59f7356a2329b73ba8ed8f7ea51
Change-Id: I3ec26f0804bcf59f7356a2329b73ba8ed8f7ea51

6 years agoMerge "Remove unneeded JNI method"
Treehugger Robot [Tue, 17 Jul 2018 17:00:30 +0000 (17:00 +0000)]
Merge "Remove unneeded JNI method"

6 years agoMerge "Track OkHttp changes"
Treehugger Robot [Tue, 17 Jul 2018 13:43:10 +0000 (13:43 +0000)]
Merge "Track OkHttp changes"

6 years agoTrack OkHttp changes
Neil Fuller [Tue, 10 Jul 2018 20:13:34 +0000 (21:13 +0100)]
Track OkHttp changes

As part of creating a full facade over OkHttp code there
are some changes to OkHttp-related classes that must be tracked.
See the related external/okhttp commit for details.

Some non-functional lint / WS changes have been made as part of this
change.

Test: Ran CtsLibcoreOkHttpTestCases entirely
Test: Ran CtsLibcoreTestCases entirely
Test: run cts-dev -m CtsNetTestCases -t android.net.http.cts.HttpResponseCacheTest
Bug: 111055375
Change-Id: I0b0ec21fa376ea33e2fa5486e203e92d3c3337cf

6 years agoMerge changes If285d71a,Iffe5be7c
David Brazdil [Tue, 17 Jul 2018 08:24:36 +0000 (08:24 +0000)]
Merge changes If285d71a,Iffe5be7c

* changes:
  Revert^2: Build dark greylist from public + light grey API
  [DO NOT MERGE] Revert "Build dark greylist from public + light grey API"

6 years agoMerge "Remove SimChangeListener from Tethering"
Mark Chien [Tue, 17 Jul 2018 05:49:09 +0000 (05:49 +0000)]
Merge "Remove SimChangeListener from Tethering"

6 years agoRemove unneeded JNI method
John Reck [Tue, 7 Nov 2017 00:02:49 +0000 (16:02 -0800)]
Remove unneeded JNI method

Test: ran PFD CTS tests
Change-Id: I9a40319595c757835f7e19a50dc0311077c9e627
Merged-In: I9a40319595c757835f7e19a50dc0311077c9e627
(cherry picked from commit d7bd9190759e3a6658455ada987453928caec8a8)

6 years agoMerge "old paths contains all entries when updating"
Mathieu Chartier [Mon, 16 Jul 2018 23:16:13 +0000 (23:16 +0000)]
Merge "old paths contains all entries when updating"

6 years agoMerge "Revert "Revert "Update SubscriptionInfo o use strings for mccmnc"""
Hall Liu [Mon, 16 Jul 2018 22:52:10 +0000 (22:52 +0000)]
Merge "Revert "Revert "Update SubscriptionInfo o use strings for mccmnc"""

6 years agoold paths contains all entries when updating
Todd Kennedy [Wed, 2 May 2018 09:59:45 +0000 (10:59 +0100)]
old paths contains all entries when updating

In certains circumstances, only the base and split APKs were included in
the "old paths" list when updating the application info. Instead, this
list should contain _all_ elements, including any additional libraries
that may be added to the overall classpath.

Bug: 77342775
Bug: 80337129

Test: Manual. Install a package. Install a split with --dont_kill. See that the path doesn't contain duplicate entries
Test: Uninstall GMS updates and reinstall. Verify that GMS Dex files aren't extrated out of the APK.

(cherry picked from commit b9656a93aac435cefaa4ca0e1b06495d690ba019)

Merged-In: Id9739cce215ab07bff1b17966583c0cf51a0b34a
Change-Id: I3c61b1b61dc1ab8a1a51a5be68f19ae9af586692

6 years agoRemove SimChangeListener from Tethering
markchien [Mon, 16 Jul 2018 11:54:26 +0000 (19:54 +0800)]
Remove SimChangeListener from Tethering

SimChangeListener is obsolete. It is replace by
ACTION_CARRIER_CONFIG_CHANGED.

Test: as follows
    - built, flashed, booted
    - runtest frameworks-net passes (with --no-hidden-api-checks)
    - tethering/hotspot on/off
Bug: 111490073

Change-Id: I82644ea136f43869a953a1f7b72dc489fe90f380

6 years agoMerge "Avoid use of DateUtilsBridge.icuTimeZone()"
Neil Fuller [Mon, 16 Jul 2018 07:44:58 +0000 (07:44 +0000)]
Merge "Avoid use of DateUtilsBridge.icuTimeZone()"

6 years agoMerge "Added documentation for network registration state"
Treehugger Robot [Sun, 15 Jul 2018 22:34:30 +0000 (22:34 +0000)]
Merge "Added documentation for network registration state"

6 years agoRevert "Revert "Update SubscriptionInfo o use strings for mccmnc""
Hall Liu [Sat, 14 Jul 2018 00:30:49 +0000 (00:30 +0000)]
Revert "Revert "Update SubscriptionInfo o use strings for mccmnc""

This reverts commit 0082b161ca42b41925fd5973f1779fc4c46f6034.

Reason for revert: build breaks fixed

Change-Id: I75ea63ceaae6e970ce51a971c9a4635d0ce3f9e4
Merged-In: I45c0bfefb7ffe98e3eab8e68d0e1170881ae9f4c

6 years agoMerge "Fix unnecessary copy initialization warnings"
Chih-hung Hsieh [Fri, 13 Jul 2018 22:42:26 +0000 (22:42 +0000)]
Merge "Fix unnecessary copy initialization warnings"

6 years agoAdded documentation for network registration state
Jack Yu [Wed, 6 Jun 2018 00:38:56 +0000 (17:38 -0700)]
Added documentation for network registration state

Also renamed denial reason to reject cause to match
the 3GPP spec.

Bug: 73659459
Test: Build
Change-Id: Ia67ebf94771c7ff5f5d90f6cdd303cb2716f9186
(cherry picked from commit b4094993f742fbe9d07bd5783030aa82a3045f79)

6 years agoFix unnecessary copy initialization warnings
Chih-Hung Hsieh [Fri, 13 Jul 2018 20:37:03 +0000 (13:37 -0700)]
Fix unnecessary copy initialization warnings

Bug: 30413862
Test: build with WITH_TIDY=1
Change-Id: I333d3a6b3394f50712148eeabf2253f1e01b21f3

6 years agoMerge "Re-Number RIL Message IDs to Match RIL.h"
Nathan Harold [Fri, 13 Jul 2018 19:57:06 +0000 (19:57 +0000)]
Merge "Re-Number RIL Message IDs to Match RIL.h"

6 years agoAvoid use of DateUtilsBridge.icuTimeZone()
Neil Fuller [Fri, 13 Jul 2018 18:49:51 +0000 (19:49 +0100)]
Avoid use of DateUtilsBridge.icuTimeZone()

DateUtilsBridge is only used in one place in framework.
The usage is avoidable by sticking to java.util. This
decreases the number of non-public libcore classes in
use by framework.

Test: build
Bug: 111055375
Change-Id: Ifd6576b5b6df1e154f16ec201a4575d0b95de66d

6 years agoMerge "Update InCallService API docs to explain how to show incoming call UI."
Treehugger Robot [Fri, 13 Jul 2018 18:52:52 +0000 (18:52 +0000)]
Merge "Update InCallService API docs to explain how to show incoming call UI."

6 years agoMerge "Make Connection#onSilence a public API."
Tyler Gunn [Fri, 13 Jul 2018 17:02:36 +0000 (17:02 +0000)]
Merge "Make Connection#onSilence a public API."

6 years agoMerge "Revert "Update SubscriptionInfo o use strings for mccmnc""
Treehugger Robot [Fri, 13 Jul 2018 16:34:30 +0000 (16:34 +0000)]
Merge "Revert "Update SubscriptionInfo o use strings for mccmnc""

6 years agoUse StrictJarManifest.ATTRIBUTE_NAME_NAME instead of Attributes.Name.NAME.
Tobias Thierer [Fri, 13 Jul 2018 15:44:45 +0000 (16:44 +0100)]
Use StrictJarManifest.ATTRIBUTE_NAME_NAME instead of Attributes.Name.NAME.

Introduce a constant StrictJarManifest.ATTRIBUTE_NAME_NAME so that
callers (StrictJarManifest{,Reader}) don't need to rely on
Attributes.Name.NAME which was added via an Android patch.

Bug: 35910877
Test: Treehugger

Change-Id: I292fbefc6c5561609dcd8281d1e2a931a1ffa5b2

6 years agoRevert^2: Build dark greylist from public + light grey API
David Brazdil [Thu, 31 May 2018 12:58:41 +0000 (13:58 +0100)]
Revert^2: Build dark greylist from public + light grey API

The dark greylist is meant to contain non-SDK APIs which are "related"
to APIs accessible to apps without restrictions. The list used to be
built as all non-SDK APIs in the same package as those on the light
greylist. That is not sufficient and should include the public SDK API
packages too.

This patch modifies the makefile to generate a list of public API DEX
signatures with Doclava and then use that as a basis for the dark
greylist generation.

Bug: 80461842
Bug: 64382372
Test: make out/target/common/obj/PACKAGING/hiddenapi-blacklist.txt
Change-Id: If285d71ab82c3046fca94c325d664bd9073c1a69

6 years ago[DO NOT MERGE] Revert "Build dark greylist from public + light grey API"
David Brazdil [Fri, 13 Jul 2018 14:42:49 +0000 (14:42 +0000)]
[DO NOT MERGE] Revert "Build dark greylist from public + light grey API"

This reverts commit 6f6a126b9c64e49abcabcb6ea7b563535d22b04e.

Reason for revert: Bad merge into internal

Change-Id: Iffe5be7c10e8438bd46f71dc22e0867c0d316d40

6 years agoRevert "Update SubscriptionInfo o use strings for mccmnc"
Yueming Wang [Fri, 13 Jul 2018 10:29:43 +0000 (10:29 +0000)]
Revert "Update SubscriptionInfo o use strings for mccmnc"

This reverts commit 0c149bd2d84d6e7c21dd4d7fff1e4dcfd51318f3.

Reason for revert:  reverting this topic as it breaks several branches.

Change-Id: Ia01984242e54b5db5d853135b322ebb1284a4d43
Merged-In: I45c0bfefb7ffe98e3eab8e68d0e1170881ae9f4c

6 years agoMerge "Update SubscriptionInfo o use strings for mccmnc"
Hall Liu [Thu, 12 Jul 2018 21:13:16 +0000 (21:13 +0000)]
Merge "Update SubscriptionInfo o use strings for mccmnc"

6 years agoRe-Number RIL Message IDs to Match RIL.h
Nathan Harold [Thu, 12 Jul 2018 18:34:17 +0000 (11:34 -0700)]
Re-Number RIL Message IDs to Match RIL.h

-Renumber RIL requests to match the message IDs
 for NATT Keepalive messages.
-Update comments to indicate RIL+HAL and HAL-only
 messages.
-Add new message offsets to explicitly support
 HAL-only messages in the list.

Bug: 110181475
Test: runtest frameworks-telephony
Change-Id: I58544f9291f426b5c195ece81113e15ed423d2df

6 years agoMerge "Audio assets: add NFC sounds"
Jean-Michel Trivi [Thu, 12 Jul 2018 19:41:51 +0000 (19:41 +0000)]
Merge "Audio assets: add NFC sounds"

6 years agoMerge "Revert "Added documentation for network registration state""
Jack Yu [Thu, 12 Jul 2018 18:16:26 +0000 (18:16 +0000)]
Merge "Revert "Added documentation for network registration state""

6 years agoMerge "Remove Duplicate Override for Operator Alphas"
Nathan Harold [Thu, 12 Jul 2018 18:08:05 +0000 (18:08 +0000)]
Merge "Remove Duplicate Override for Operator Alphas"

6 years agoRevert "Added documentation for network registration state"
Jack Yu [Thu, 12 Jul 2018 17:39:12 +0000 (17:39 +0000)]
Revert "Added documentation for network registration state"

This reverts commit b4094993f742fbe9d07bd5783030aa82a3045f79.

Reason for revert: Caused merge conflict. Need to come up with a better solution.

Change-Id: Id7b7f35c25775a7a095b77a90724cf3a0f8daf7e

6 years agoMerge "WRITE_APN_SETTINGS is also required to read"
Jordan Liu [Thu, 12 Jul 2018 17:36:15 +0000 (17:36 +0000)]
Merge "WRITE_APN_SETTINGS is also required to read"

6 years agoMerge "Move XML object factory logic to libcore"
Treehugger Robot [Thu, 12 Jul 2018 13:46:56 +0000 (13:46 +0000)]
Merge "Move XML object factory logic to libcore"

6 years agoMerge "Added documentation for network registration state"
Jack Yu [Thu, 12 Jul 2018 02:28:32 +0000 (02:28 +0000)]
Merge "Added documentation for network registration state"