本文整理汇总了Java中com.google.android.gms.ads.identifier.AdvertisingIdClient.Info类的典型用法代码示例。如果您正苦于以下问题:Java Info类的具体用法?Java Info怎么用?Java Info使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Info类属于com.google.android.gms.ads.identifier.AdvertisingIdClient包,在下文中一共展示了Info类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: zzCw
import com.google.android.gms.ads.identifier.AdvertisingIdClient.Info; //导入依赖的package包/类
final Pair<String, Boolean> zzCw()
{
checkOnWorkerThread();
long l = getClock().elapsedRealtime();
if ((this.zzbnx != null) && (l < this.zzbnz)) {
return new Pair(this.zzbnx, Boolean.valueOf(this.zzbny));
}
this.zzbnz = (l + zzc.zzBG());
AdvertisingIdClient.setShouldSkipGmsCoreVersionCheck(true);
try
{
AdvertisingIdClient.Info localInfo = AdvertisingIdClient.getAdvertisingIdInfo(getContext());
this.zzbnx = localInfo.zzpp;
this.zzbny = localInfo.zzpq;
AdvertisingIdClient.setShouldSkipGmsCoreVersionCheck(false);
return new Pair(this.zzbnx, Boolean.valueOf(this.zzbny));
}
catch (Throwable localThrowable)
{
for (;;)
{
zzBh().zzbnd.zzm("Unable to get advertising id", localThrowable);
this.zzbnx = "";
}
}
}
开发者ID:ChiangC,项目名称:FMTech,代码行数:27,代码来源:zzr.java
示例2: n
import com.google.android.gms.ads.identifier.AdvertisingIdClient.Info; //导入依赖的package包/类
private Info n() {
Info info = null;
try {
info = AdvertisingIdClient.getAdvertisingIdInfo(hn.a().c());
} catch (Exception e) {
ib.b(a, "GOOGLE PLAY SERVICES ERROR: " + e.getMessage());
ib.b(a, "There is a problem with the Google Play Services library, which is required for Android Advertising ID support. The Google Play Services library should be integrated in any app shipping in the Play Store that uses analytics or advertising.");
}
return info;
}
开发者ID:JackChan1999,项目名称:letv,代码行数:11,代码来源:hb.java
示例3: zzZ
import com.google.android.gms.ads.identifier.AdvertisingIdClient.Info; //导入依赖的package包/类
private zza zzZ()
throws IOException
{
try
{
if (!zznX.await(2L, TimeUnit.SECONDS))
{
zza localzza1 = new zza(null, false);
return localzza1;
}
}
catch (InterruptedException localInterruptedException)
{
return new zza(null, false);
}
try
{
if (zznW == null)
{
zza localzza2 = new zza(null, false);
return localzza2;
}
}
finally {}
AdvertisingIdClient.Info localInfo = zznW.getInfo();
return new zza(zzk(localInfo.zzpp), localInfo.zzpq);
}
开发者ID:ChiangC,项目名称:FMTech,代码行数:28,代码来源:zzan.java
示例4: zzb
import com.google.android.gms.ads.identifier.AdvertisingIdClient.Info; //导入依赖的package包/类
public final boolean zzb(String paramString, boolean paramBoolean)
{
if (this.zzoW == null) {
return false;
}
AdvertisingIdClient.Info localInfo = new AdvertisingIdClient.Info(paramString, paramBoolean);
this.zzoW.zznt = localInfo;
this.zzoX = true;
return true;
}
开发者ID:ChiangC,项目名称:FMTech,代码行数:11,代码来源:zzaz.java
示例5: onAdvertisingIdInfoChanged
import com.google.android.gms.ads.identifier.AdvertisingIdClient.Info; //导入依赖的package包/类
public final void onAdvertisingIdInfoChanged(AdvertisingIdClient.Info paramInfo)
{
Object[] arrayOfObject = new Object[2];
arrayOfObject[0] = Integer.valueOf(paramInfo.zzpp.hashCode());
arrayOfObject[1] = Boolean.valueOf(paramInfo.zzpq);
FinskyLog.d("AdId change: id (hash)=%d limit=%b", arrayOfObject);
}
开发者ID:ChiangC,项目名称:FMTech,代码行数:8,代码来源:AdIdListener.java
示例6: f
import com.google.android.gms.ads.identifier.AdvertisingIdClient.Info; //导入依赖的package包/类
a f(Context paramContext)
{
AdvertisingIdClient.Info localInfo;
try
{
localInfo = AdvertisingIdClient.getAdvertisingIdInfo(paramContext);
}
catch (GooglePlayServicesRepairableException localGooglePlayServicesRepairableException)
{
throw new IOException(localGooglePlayServicesRepairableException);
}
String str1 = localInfo.getId();
String str2 = str1;
if ((str1 != null) && (str2.matches("^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$")))
{
byte[] arrayOfByte = new byte[16];
int i = 0;
for (int j = 0; j < str2.length(); j += 2)
{
if ((j == 8) || (j == 13) || (j == 18) || (j == 23))
j++;
arrayOfByte[i] = ((byte)((Character.digit(str2.charAt(j), 16) << 4) + Character.digit(str2.charAt(j + 1), 16)));
i++;
}
str2 = this.dw.a(arrayOfByte, true);
}
return new a(str2, localInfo.isLimitAdTrackingEnabled());
}
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:29,代码来源:g.java
示例7: getTrackingEnabled
import com.google.android.gms.ads.identifier.AdvertisingIdClient.Info; //导入依赖的package包/类
public static Future<Boolean> getTrackingEnabled() {
FutureTask<Boolean> future = new FutureTask<Boolean>(new Callable<Boolean>() {
public Boolean call() throws Exception {
try {
Info adInfo = AdvertisingIdClient.getAdvertisingIdInfo(Growthbeat.getInstance().getContext());
return !adInfo.isLimitAdTrackingEnabled();
} catch (Throwable e) {
return null;
}
}
});
Growthbeat.getInstance().getExecutor().execute(future);
return future;
}
开发者ID:growthbeat,项目名称:growthbeat-android,代码行数:15,代码来源:DeviceUtils.java
示例8: getAdvertisingId
import com.google.android.gms.ads.identifier.AdvertisingIdClient.Info; //导入依赖的package包/类
public static Future<String> getAdvertisingId() {
FutureTask<String> future = new FutureTask<String>(new Callable<String>() {
public String call() throws Exception {
try {
Info adInfo = AdvertisingIdClient.getAdvertisingIdInfo(Growthbeat.getInstance().getContext());
return adInfo.getId();
} catch (Throwable e) {
return null;
}
}
});
Growthbeat.getInstance().getExecutor().execute(future);
return future;
}
开发者ID:growthbeat,项目名称:growthbeat-android,代码行数:15,代码来源:DeviceUtils.java
注:本文中的com.google.android.gms.ads.identifier.AdvertisingIdClient.Info类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论