Loading media/java/android/media/tv/ad/TvAdView.java +5 −0 Original line number Diff line number Diff line Loading @@ -659,6 +659,11 @@ public class TvAdView extends ViewGroup { } } /** @hide */ public TvAdManager.Session getAdSession() { return mSession; } private class MySessionCallback extends TvAdManager.SessionCallback { final String mServiceId; Loading services/core/java/com/android/server/tv/interactive/TvInteractiveAppManagerService.java +3 −3 Original line number Diff line number Diff line Loading @@ -349,6 +349,7 @@ public class TvInteractiveAppManagerService extends SystemService { } } userState.mAdServiceMap.clear(); userState.mAdServiceMap = adServiceMap; } Loading Loading @@ -988,7 +989,7 @@ public class TvInteractiveAppManagerService extends SystemService { return; } UserState userState = getOrCreateUserStateLocked(resolvedUserId); TvAdServiceState adState = userState.mAdMap.get(serviceId); TvAdServiceState adState = userState.mAdServiceMap.get(serviceId); if (adState == null) { Slogf.w(TAG, "Failed to find state for serviceId=" + serviceId); sendAdSessionTokenToClientLocked(client, serviceId, null, null, seq); Loading Loading @@ -3031,6 +3032,7 @@ public class TvInteractiveAppManagerService extends SystemService { ITvAdService service, IBinder sessionToken, int userId) { UserState userState = getOrCreateUserStateLocked(userId); AdSessionState sessionState = userState.mAdSessionStateMap.get(sessionToken); if (DEBUG) { Slogf.d(TAG, "createAdSessionInternalLocked(iAppServiceId=" + sessionState.mAdServiceId + ")"); Loading Loading @@ -3300,8 +3302,6 @@ public class TvInteractiveAppManagerService extends SystemService { private static final class UserState { private final int mUserId; // A mapping from the TV AD service ID to its TvAdServiceState. private Map<String, TvAdServiceState> mAdMap = new HashMap<>(); // A mapping from the name of a TV Interactive App service to its state. private final Map<ComponentName, AdServiceState> mAdServiceStateMap = new HashMap<>(); // A mapping from the token of a TV Interactive App session to its state. Loading Loading
media/java/android/media/tv/ad/TvAdView.java +5 −0 Original line number Diff line number Diff line Loading @@ -659,6 +659,11 @@ public class TvAdView extends ViewGroup { } } /** @hide */ public TvAdManager.Session getAdSession() { return mSession; } private class MySessionCallback extends TvAdManager.SessionCallback { final String mServiceId; Loading
services/core/java/com/android/server/tv/interactive/TvInteractiveAppManagerService.java +3 −3 Original line number Diff line number Diff line Loading @@ -349,6 +349,7 @@ public class TvInteractiveAppManagerService extends SystemService { } } userState.mAdServiceMap.clear(); userState.mAdServiceMap = adServiceMap; } Loading Loading @@ -988,7 +989,7 @@ public class TvInteractiveAppManagerService extends SystemService { return; } UserState userState = getOrCreateUserStateLocked(resolvedUserId); TvAdServiceState adState = userState.mAdMap.get(serviceId); TvAdServiceState adState = userState.mAdServiceMap.get(serviceId); if (adState == null) { Slogf.w(TAG, "Failed to find state for serviceId=" + serviceId); sendAdSessionTokenToClientLocked(client, serviceId, null, null, seq); Loading Loading @@ -3031,6 +3032,7 @@ public class TvInteractiveAppManagerService extends SystemService { ITvAdService service, IBinder sessionToken, int userId) { UserState userState = getOrCreateUserStateLocked(userId); AdSessionState sessionState = userState.mAdSessionStateMap.get(sessionToken); if (DEBUG) { Slogf.d(TAG, "createAdSessionInternalLocked(iAppServiceId=" + sessionState.mAdServiceId + ")"); Loading Loading @@ -3300,8 +3302,6 @@ public class TvInteractiveAppManagerService extends SystemService { private static final class UserState { private final int mUserId; // A mapping from the TV AD service ID to its TvAdServiceState. private Map<String, TvAdServiceState> mAdMap = new HashMap<>(); // A mapping from the name of a TV Interactive App service to its state. private final Map<ComponentName, AdServiceState> mAdServiceStateMap = new HashMap<>(); // A mapping from the token of a TV Interactive App session to its state. Loading