Merge "Move GameManager to android.app package." into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
b23f6d71ee
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.graphics;
|
||||
package android.app;
|
||||
|
||||
import android.annotation.IntDef;
|
||||
import android.annotation.SystemService;
|
||||
@@ -14,7 +14,7 @@
|
||||
** limitations under the License.
|
||||
*/
|
||||
|
||||
package android.graphics;
|
||||
package android.app;
|
||||
|
||||
/**
|
||||
* @hide
|
||||
@@ -73,7 +73,6 @@ import android.content.res.Resources;
|
||||
import android.content.rollback.RollbackManagerFrameworkInitializer;
|
||||
import android.debug.AdbManager;
|
||||
import android.debug.IAdbManager;
|
||||
import android.graphics.GameManager;
|
||||
import android.graphics.fonts.FontManager;
|
||||
import android.hardware.ConsumerIrManager;
|
||||
import android.hardware.ISerialManager;
|
||||
|
||||
@@ -37,6 +37,7 @@ import android.annotation.TestApi;
|
||||
import android.annotation.UiContext;
|
||||
import android.annotation.UserIdInt;
|
||||
import android.app.ActivityManager;
|
||||
import android.app.GameManager;
|
||||
import android.app.IApplicationThread;
|
||||
import android.app.IServiceConnection;
|
||||
import android.app.VrManager;
|
||||
@@ -5441,7 +5442,7 @@ public abstract class Context {
|
||||
|
||||
/**
|
||||
* Use with {@link #getSystemService(String)} to retrieve a
|
||||
* {@link android.graphics.GameManager}.
|
||||
* {@link GameManager}.
|
||||
*
|
||||
* @see #getSystemService(String)
|
||||
*
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
-->
|
||||
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.android.graphics.gamemanagertests"
|
||||
package="com.android.app.gamemanagertests"
|
||||
android:sharedUserId="android.uid.system" >
|
||||
|
||||
<application>
|
||||
@@ -24,7 +24,7 @@
|
||||
</application>
|
||||
|
||||
<instrumentation android:name="androidx.test.runner.AndroidJUnitRunner"
|
||||
android:targetPackage="com.android.graphics.gamemanagertests"
|
||||
android:targetPackage="com.android.app.gamemanagertests"
|
||||
android:label="Game Manager Tests"/>
|
||||
|
||||
</manifest>
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
</target_preparer>
|
||||
|
||||
<test class="com.android.tradefed.testtype.AndroidJUnitTest" >
|
||||
<option name="package" value="com.android.graphics.gamemanagertests" />
|
||||
<option name="package" value="com.android.app.gamemanagertests" />
|
||||
<option name="runner" value="androidx.test.runner.AndroidJUnitRunner" />
|
||||
<option name="hidden-api-checks" value="false" />
|
||||
</test>
|
||||
|
||||
@@ -14,11 +14,11 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.graphics;
|
||||
package android.app;
|
||||
|
||||
import static junit.framework.Assert.assertEquals;
|
||||
|
||||
import android.graphics.GameManager.GameMode;
|
||||
import android.app.GameManager.GameMode;
|
||||
import android.util.ArrayMap;
|
||||
import android.util.Pair;
|
||||
|
||||
@@ -31,7 +31,7 @@ import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
/**
|
||||
* Unit tests for {@link GameManager}.
|
||||
* Unit tests for {@link android.app.GameManager}.
|
||||
*/
|
||||
@RunWith(AndroidJUnit4.class)
|
||||
@SmallTest
|
||||
@@ -14,13 +14,13 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.android.server.graphics;
|
||||
package com.android.server.app;
|
||||
|
||||
import android.annotation.NonNull;
|
||||
import android.app.GameManager;
|
||||
import android.app.GameManager.GameMode;
|
||||
import android.app.IGameManagerService;
|
||||
import android.content.Context;
|
||||
import android.graphics.GameManager;
|
||||
import android.graphics.GameManager.GameMode;
|
||||
import android.graphics.IGameManagerService;
|
||||
import android.os.Environment;
|
||||
import android.os.Handler;
|
||||
import android.os.Looper;
|
||||
@@ -14,9 +14,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.android.server.graphics;
|
||||
package com.android.server.app;
|
||||
|
||||
import android.graphics.GameManager;
|
||||
import android.app.GameManager;
|
||||
import android.os.FileUtils;
|
||||
import android.util.ArrayMap;
|
||||
import android.util.AtomicFile;
|
||||
@@ -367,7 +367,7 @@ public final class SystemServer implements Dumpable {
|
||||
|
||||
private static final String ROLE_SERVICE_CLASS = "com.android.role.RoleService";
|
||||
private static final String GAME_MANAGER_SERVICE_CLASS =
|
||||
"com.android.server.graphics.GameManagerService$Lifecycle";
|
||||
"com.android.server.app.GameManagerService$Lifecycle";
|
||||
|
||||
private static final String TETHERING_CONNECTOR_CLASS = "android.net.ITetheringConnector";
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.android.server.graphics;
|
||||
package com.android.server.app;
|
||||
|
||||
import static org.hamcrest.CoreMatchers.is;
|
||||
import static org.junit.Assert.assertThat;
|
||||
@@ -14,11 +14,11 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.android.server.graphics;
|
||||
package com.android.server.app;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
||||
import android.graphics.GameManager;
|
||||
import android.app.GameManager;
|
||||
|
||||
import androidx.test.InstrumentationRegistry;
|
||||
import androidx.test.filters.SmallTest;
|
||||
Reference in New Issue
Block a user