本文整理汇总了Java中android.media.MediaRouter.RouteInfo类的典型用法代码示例。如果您正苦于以下问题:Java RouteInfo类的具体用法?Java RouteInfo怎么用?Java RouteInfo使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
RouteInfo类属于android.media.MediaRouter包,在下文中一共展示了RouteInfo类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: a
import android.media.MediaRouter.RouteInfo; //导入依赖的package包/类
public final void a(aay paramaay)
{
aax localaax = paramaay.a;
aao.a();
if (localaax.a != this)
{
Object localObject1 = this.i;
Object localObject2 = this.s;
MediaRouter.UserRouteInfo localUserRouteInfo = ((MediaRouter)localObject1).createUserRoute((MediaRouter.RouteCategory)localObject2);
abz localabz = new abz(paramaay, localUserRouteInfo);
((MediaRouter.RouteInfo)localUserRouteInfo).setTag(localabz);
Object localObject3 = this.r;
((MediaRouter.UserRouteInfo)localUserRouteInfo).setVolumeCallback((MediaRouter.VolumeCallback)localObject3);
a(localabz);
this.t.add(localabz);
((MediaRouter)this.i).addUserRoute((MediaRouter.UserRouteInfo)localUserRouteInfo);
}
int i1;
do
{
return;
i1 = g(((MediaRouter)this.i).getSelectedRoute(8388611));
} while ((i1 < 0) || (!((aby)this.n.get(i1)).b.equals(paramaay.b)));
aao.a();
aao.b.a(paramaay, 3);
}
开发者ID:ChiangC,项目名称:FMTech,代码行数:27,代码来源:abw.java
示例2: b
import android.media.MediaRouter.RouteInfo; //导入依赖的package包/类
public final void b(aay paramaay)
{
aax localaax = paramaay.a;
aao.a();
if (localaax.a != this)
{
int i1 = e(paramaay);
if (i1 >= 0)
{
abz localabz = (abz)this.t.remove(i1);
((MediaRouter.RouteInfo)localabz.b).setTag(null);
((MediaRouter.UserRouteInfo)localabz.b).setVolumeCallback((MediaRouter.VolumeCallback)null);
Object localObject1 = this.i;
Object localObject2 = localabz.b;
((MediaRouter)localObject1).removeUserRoute((MediaRouter.UserRouteInfo)localObject2);
}
}
}
开发者ID:ChiangC,项目名称:FMTech,代码行数:19,代码来源:abw.java
示例3: e
import android.media.MediaRouter.RouteInfo; //导入依赖的package包/类
public final void e(Object paramObject)
{
if (i(paramObject) == null)
{
int i1 = g(paramObject);
if (i1 >= 0)
{
aby localaby = (aby)this.n.get(i1);
int i2 = ((MediaRouter.RouteInfo)paramObject).getVolume();
if (i2 != localaby.c.a.getInt("volume"))
{
aad localaad = new aad(localaby.c);
localaad.a.putInt("volume", i2);
localaby.c = localaad.a();
a();
}
}
}
}
开发者ID:ChiangC,项目名称:FMTech,代码行数:20,代码来源:abw.java
示例4: a
import android.media.MediaRouter.RouteInfo; //导入依赖的package包/类
protected void a(aby paramaby, aad paramaad)
{
super.a(paramaby, paramaad);
if (!((MediaRouter.RouteInfo)paramaby.a).isEnabled()) {
paramaad.a.putBoolean("enabled", false);
}
if (a(paramaby)) {
paramaad.a.putBoolean("connecting", true);
}
Display localDisplay = ((MediaRouter.RouteInfo)paramaby.a).getPresentationDisplay();
if (localDisplay != null)
{
int i = localDisplay.getDisplayId();
paramaad.a.putInt("presentationDisplayId", i);
}
}
开发者ID:ChiangC,项目名称:FMTech,代码行数:17,代码来源:aca.java
示例5: f
import android.media.MediaRouter.RouteInfo; //导入依赖的package包/类
public final void f(Object paramObject)
{
int i = g(paramObject);
aby localaby;
Display localDisplay;
if (i >= 0)
{
localaby = (aby)this.n.get(i);
localDisplay = ((MediaRouter.RouteInfo)paramObject).getPresentationDisplay();
if (localDisplay == null) {
break label100;
}
}
label100:
for (int j = localDisplay.getDisplayId();; j = -1)
{
if (j != localaby.c.a.getInt("presentationDisplayId", -1))
{
aad localaad = new aad(localaby.c);
localaad.a.putInt("presentationDisplayId", j);
localaby.c = localaad.a();
a();
}
return;
}
}
开发者ID:ChiangC,项目名称:FMTech,代码行数:27,代码来源:aca.java
示例6: a
import android.media.MediaRouter.RouteInfo; //导入依赖的package包/类
public final boolean a(Object paramObject)
{
MediaRouter.RouteInfo localRouteInfo = (MediaRouter.RouteInfo)paramObject;
if (this.a != null) {}
try
{
int i = ((Integer)this.a.invoke(localRouteInfo, new Object[0])).intValue();
int j = this.b;
return i == j;
}
catch (InvocationTargetException localInvocationTargetException)
{
return false;
}
catch (IllegalAccessException localIllegalAccessException)
{
label51:
break label51;
}
}
开发者ID:ChiangC,项目名称:FMTech,代码行数:21,代码来源:abi.java
示例7: updatePresentation
import android.media.MediaRouter.RouteInfo; //导入依赖的package包/类
private void updatePresentation() {
MediaRouter.RouteInfo route = mediaRouter
.getSelectedRoute(MediaRouter.ROUTE_TYPE_LIVE_VIDEO);
Display presentationDisplay = route != null ? route
.getPresentationDisplay() : null;
if (displayPresentation != null
&& displayPresentation.getDisplay() != presentationDisplay) {
displayPresentation.dismiss();
displayPresentation = null;
}
if (displayPresentation == null && presentationDisplay != null) {
displayPresentation = new DisplayPresentation(this, presentationDisplay);
displayPresentation.setOnDismissListener(
new OnDismissListener() {
@Override
public void onDismiss(DialogInterface dialog) {
if (dialog == displayPresentation) {
displayPresentation = null;
}
}
}
);
displayPresentation.show();
displayPresentation.go(displayLayout.getCurrentSlidePos(), displayLayout.getCurrentSlidePhase());
}
}
开发者ID:StylingAndroid,项目名称:PresenterLite,代码行数:28,代码来源:StandaloneDisplayActivity.java
示例8: i
import android.media.MediaRouter.RouteInfo; //导入依赖的package包/类
private static abz i(Object paramObject)
{
Object localObject = ((MediaRouter.RouteInfo)paramObject).getTag();
if ((localObject instanceof abz)) {
return (abz)localObject;
}
return null;
}
开发者ID:ChiangC,项目名称:FMTech,代码行数:9,代码来源:abw.java
示例9: j
import android.media.MediaRouter.RouteInfo; //导入依赖的package包/类
private String j(Object paramObject)
{
Context localContext = this.a;
CharSequence localCharSequence = ((MediaRouter.RouteInfo)paramObject).getName(localContext);
if (localCharSequence != null) {
return localCharSequence.toString();
}
return "";
}
开发者ID:ChiangC,项目名称:FMTech,代码行数:10,代码来源:abw.java
示例10: h
import android.media.MediaRouter.RouteInfo; //导入依赖的package包/类
protected void h(Object paramObject)
{
if (this.u == null) {
this.u = new abc();
}
abc localabc = this.u;
MediaRouter localMediaRouter = (MediaRouter)this.i;
MediaRouter.RouteInfo localRouteInfo = (MediaRouter.RouteInfo)paramObject;
if (((0x800000 & localRouteInfo.getSupportedTypes()) == 0) && (localabc.a != null)) {}
try
{
Method localMethod = localabc.a;
Object[] arrayOfObject = new Object[2];
arrayOfObject[0] = Integer.valueOf(8388611);
arrayOfObject[1] = localRouteInfo;
localMethod.invoke(localMediaRouter, arrayOfObject);
return;
}
catch (InvocationTargetException localInvocationTargetException)
{
localMediaRouter.selectRoute(8388611, localRouteInfo);
return;
}
catch (IllegalAccessException localIllegalAccessException)
{
label96:
break label96;
}
}
开发者ID:ChiangC,项目名称:FMTech,代码行数:30,代码来源:abw.java
示例11: a
import android.media.MediaRouter.RouteInfo; //导入依赖的package包/类
protected final void a(aby paramaby, aad paramaad)
{
super.a(paramaby, paramaad);
CharSequence localCharSequence = ((MediaRouter.RouteInfo)paramaby.a).getDescription();
if (localCharSequence != null)
{
String str = localCharSequence.toString();
paramaad.a.putString("status", str);
}
}
开发者ID:ChiangC,项目名称:FMTech,代码行数:11,代码来源:acb.java
示例12: abc
import android.media.MediaRouter.RouteInfo; //导入依赖的package包/类
public abc()
{
if ((Build.VERSION.SDK_INT < 16) || (Build.VERSION.SDK_INT > 17)) {
throw new UnsupportedOperationException();
}
try
{
Class[] arrayOfClass = new Class[2];
arrayOfClass[0] = Integer.TYPE;
arrayOfClass[1] = MediaRouter.RouteInfo.class;
this.a = MediaRouter.class.getMethod("selectRouteInt", arrayOfClass);
return;
}
catch (NoSuchMethodException localNoSuchMethodException) {}
}
开发者ID:ChiangC,项目名称:FMTech,代码行数:16,代码来源:abc.java
示例13: abi
import android.media.MediaRouter.RouteInfo; //导入依赖的package包/类
public abi()
{
if (Build.VERSION.SDK_INT != 17) {
throw new UnsupportedOperationException();
}
try
{
this.b = MediaRouter.RouteInfo.class.getField("STATUS_CONNECTING").getInt(null);
this.a = MediaRouter.RouteInfo.class.getMethod("getStatusCode", new Class[0]);
return;
}
catch (IllegalAccessException localIllegalAccessException) {}catch (NoSuchMethodException localNoSuchMethodException) {}catch (NoSuchFieldException localNoSuchFieldException) {}
}
开发者ID:ChiangC,项目名称:FMTech,代码行数:14,代码来源:abi.java
示例14: updatePresentation
import android.media.MediaRouter.RouteInfo; //导入依赖的package包/类
private void updatePresentation() {
// Get the current route and its presentation display.
MediaRouter.RouteInfo route = mMediaRouter.getSelectedRoute(
MediaRouter.ROUTE_TYPE_LIVE_VIDEO);
Display presentationDisplay = route != null ? route.getPresentationDisplay() : null;
// Dismiss the current presentation if the display has changed.
if (mPresentation != null && mPresentation.getDisplay() != presentationDisplay) {
Log.i(TAG, "Dismissing presentation because the current route no longer "
+ "has a presentation display.");
mPresentation.dismiss();
mPresentation = null;
}
// Show a new presentation if needed.
if (mPresentation == null && presentationDisplay != null) {
Log.i(TAG, "Showing presentation on display: " + presentationDisplay);
mPresentation = new DemoPresentation(this, presentationDisplay);
mPresentation.setOnDismissListener(mOnDismissListener);
try {
mPresentation.show();
} catch (WindowManager.InvalidDisplayException ex) {
Log.w(TAG, "Couldn't show presentation! Display was removed in "
+ "the meantime.", ex);
mPresentation = null;
}
}
// Update the contents playing in this activity.
updateContents();
}
开发者ID:luoqii,项目名称:ApkLauncher,代码行数:32,代码来源:PresentationWithMediaRouterActivity.java
示例15: onRoutePresentationDisplayChanged
import android.media.MediaRouter.RouteInfo; //导入依赖的package包/类
public void onRoutePresentationDisplayChanged(MediaRouter router, RouteInfo info) {
updatePresentation();
}
开发者ID:StylingAndroid,项目名称:PresenterLite,代码行数:4,代码来源:StandaloneDisplayActivity.java
示例16: onRouteAdded
import android.media.MediaRouter.RouteInfo; //导入依赖的package包/类
public void onRouteAdded(MediaRouter paramMediaRouter, MediaRouter.RouteInfo paramRouteInfo)
{
this.a.b(paramRouteInfo);
}
开发者ID:ChiangC,项目名称:FMTech,代码行数:5,代码来源:aba.java
示例17: onRouteChanged
import android.media.MediaRouter.RouteInfo; //导入依赖的package包/类
public void onRouteChanged(MediaRouter paramMediaRouter, MediaRouter.RouteInfo paramRouteInfo)
{
this.a.d(paramRouteInfo);
}
开发者ID:ChiangC,项目名称:FMTech,代码行数:5,代码来源:aba.java
示例18: onRouteRemoved
import android.media.MediaRouter.RouteInfo; //导入依赖的package包/类
public void onRouteRemoved(MediaRouter paramMediaRouter, MediaRouter.RouteInfo paramRouteInfo)
{
this.a.c(paramRouteInfo);
}
开发者ID:ChiangC,项目名称:FMTech,代码行数:5,代码来源:aba.java
示例19: onRouteSelected
import android.media.MediaRouter.RouteInfo; //导入依赖的package包/类
public void onRouteSelected(MediaRouter paramMediaRouter, int paramInt, MediaRouter.RouteInfo paramRouteInfo)
{
this.a.a(paramRouteInfo);
}
开发者ID:ChiangC,项目名称:FMTech,代码行数:5,代码来源:aba.java
示例20: onRouteVolumeChanged
import android.media.MediaRouter.RouteInfo; //导入依赖的package包/类
public void onRouteVolumeChanged(MediaRouter paramMediaRouter, MediaRouter.RouteInfo paramRouteInfo)
{
this.a.e(paramRouteInfo);
}
开发者ID:ChiangC,项目名称:FMTech,代码行数:5,代码来源:aba.java
注:本文中的android.media.MediaRouter.RouteInfo类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论