Skip to content

Commit

Permalink
Merge branch 'themes-4.1' into cm10
Browse files Browse the repository at this point in the history
Change-Id: I61b0357ce457dc5a997b1ad4c8738128e2a82147
  • Loading branch information
rmcc committed Jul 25, 2012
2 parents d289474 + 44ffc93 commit 582ea70
Show file tree
Hide file tree
Showing 62 changed files with 4,201 additions and 184 deletions.
1 change: 1 addition & 0 deletions Android.mk
Expand Up @@ -172,6 +172,7 @@ LOCAL_SRC_FILES += \
core/java/com/android/internal/app/IBatteryStats.aidl \
core/java/com/android/internal/app/IUsageStats.aidl \
core/java/com/android/internal/app/IMediaContainerService.aidl \
core/java/com/android/internal/app/IAssetRedirectionManager.aidl \
core/java/com/android/internal/appwidget/IAppWidgetService.aidl \
core/java/com/android/internal/appwidget/IAppWidgetHost.aidl \
core/java/com/android/internal/backup/IBackupTransport.aidl \
Expand Down
25 changes: 25 additions & 0 deletions core/java/android/app/ActivityManager.java
@@ -1,5 +1,6 @@
/*
* Copyright (C) 2007 The Android Open Source Project
* This code has been modified. Portions copyright (C) 2010, T-Mobile USA, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -27,6 +28,7 @@
import android.content.pm.ConfigurationInfo;
import android.content.pm.IPackageDataObserver;
import android.content.pm.PackageManager;
import android.content.res.Configuration;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.Point;
Expand Down Expand Up @@ -1559,6 +1561,16 @@ public List<ApplicationInfo> getRunningExternalApplications() {
return null;
}
}
/**
* @hide
*/
public Configuration getConfiguration() {
try {
return ActivityManagerNative.getDefault().getConfiguration();
} catch (RemoteException e) {
return null;
}
}

/**
* Returns a list of application processes that are running on the device.
Expand Down Expand Up @@ -1869,4 +1881,17 @@ public boolean switchUser(int userid) {
return false;
}
}

/**
* @throws SecurityException Throws SecurityException if the caller does
* not hold the {@link android.Manifest.permission#CHANGE_CONFIGURATION} permission.
*
* @hide
*/
public void updateConfiguration(Configuration values) throws SecurityException {
try {
ActivityManagerNative.getDefault().updateConfiguration(values);
} catch (RemoteException e) {
}
}
}

0 comments on commit 582ea70

Please sign in to comment.