Searched refs:GameScreenshotResult (Results 1 – 5 of 5) sorted by relevance
35 public final class GameScreenshotResult implements Parcelable { class75 public static final Parcelable.Creator<GameScreenshotResult> CREATOR =76 new Parcelable.Creator<GameScreenshotResult>() {78 public GameScreenshotResult createFromParcel(Parcel source) {79 return new GameScreenshotResult(source.readInt());83 public GameScreenshotResult[] newArray(int size) {84 return new GameScreenshotResult[0];94 public static GameScreenshotResult createSuccessResult() { in createSuccessResult()95 return new GameScreenshotResult(GAME_SCREENSHOT_SUCCESS); in createSuccessResult()102 public static GameScreenshotResult createInternalErrorResult() { in createInternalErrorResult()[all …]
434 AndroidFuture<GameScreenshotResult> takeScreenshotResult = in takeScreenshot()435 new AndroidFuture<GameScreenshotResult>().whenCompleteAsync((result, error) -> { in takeScreenshot()448 @NonNull GameScreenshotResult result, in handleScreenshotResult()457 @GameScreenshotResult.GameScreenshotStatus int status = result.getStatus(); in handleScreenshotResult()459 case GameScreenshotResult.GAME_SCREENSHOT_SUCCESS: in handleScreenshotResult()462 case GameScreenshotResult.GAME_SCREENSHOT_ERROR_INTERNAL_ERROR: in handleScreenshotResult()
43 import android.service.games.GameScreenshotResult;850 callback.complete(GameScreenshotResult.createInternalErrorResult()); in takeScreenshot()870 callback.complete(GameScreenshotResult.createInternalErrorResult()); in takeScreenshot()876 callback.complete(GameScreenshotResult.createInternalErrorResult()); in takeScreenshot()881 callback.complete(GameScreenshotResult.createInternalErrorResult()); in takeScreenshot()883 callback.complete(GameScreenshotResult.createSuccessResult()); in takeScreenshot()
63 import android.service.games.GameScreenshotResult;1030 AndroidFuture<GameScreenshotResult> resultFuture = new AndroidFuture<>(); in takeScreenshot_failureNoBitmapCaptured()1033 GameScreenshotResult result = resultFuture.get(); in takeScreenshot_failureNoBitmapCaptured()1034 assertEquals(GameScreenshotResult.GAME_SCREENSHOT_ERROR_INTERNAL_ERROR, in takeScreenshot_failureNoBitmapCaptured()1064 AndroidFuture<GameScreenshotResult> resultFuture = new AndroidFuture<>(); in takeScreenshot_success()1067 GameScreenshotResult result = resultFuture.get(); in takeScreenshot_success()1068 assertEquals(GameScreenshotResult.GAME_SCREENSHOT_SUCCESS, result.getStatus()); in takeScreenshot_success()
145 result.complete(GameScreenshotResult.createInternalErrorResult()); in takeScreenshot_gameManagerError_returnsInternalError()174 result.complete(GameScreenshotResult.createSuccessResult()); in takeScreenshot_gameManagerSuccess()