Merge "Fix issue #28431297: Crash in system process" into nyc-dev

am: 1a2f993

* commit '1a2f993ba5a81899500b989683364708025e13a5':
  Fix issue #28431297: Crash in system process

Change-Id: I46aec10a524e6864b414d12bb2a79bc24d8b47ae
This commit is contained in:
Dianne Hackborn
2016-04-28 01:16:12 +00:00
committed by android-build-merger
2 changed files with 6 additions and 2 deletions

View File

@@ -1748,7 +1748,7 @@ public abstract class ContentResolver {
*
* @hide
*/
public void notifyChange(Uri uri, ContentObserver observer, boolean syncToNetwork,
public void notifyChange(@NonNull Uri uri, ContentObserver observer, boolean syncToNetwork,
@UserIdInt int userHandle) {
try {
getContentService().notifyChange(
@@ -1765,7 +1765,7 @@ public abstract class ContentResolver {
*
* @hide
*/
public void notifyChange(Uri uri, ContentObserver observer, @NotifyFlags int flags,
public void notifyChange(@NonNull Uri uri, ContentObserver observer, @NotifyFlags int flags,
@UserIdInt int userHandle) {
try {
getContentService().notifyChange(

View File

@@ -352,6 +352,10 @@ public final class ContentService extends IContentService.Stub {
if (DEBUG) Slog.d(TAG, "Notifying update of " + uri + " for user " + userHandle
+ " from observer " + observer + ", flags " + Integer.toHexString(flags));
if (uri == null) {
throw new NullPointerException("Uri must not be null");
}
final int uid = Binder.getCallingUid();
final int pid = Binder.getCallingPid();
final int callingUserHandle = UserHandle.getCallingUserId();