66 lines
1.7 KiB
Java
66 lines
1.7 KiB
Java
|
package com.google.android.libraries.places.internal;
|
||
|
|
||
|
import android.net.wifi.ScanResult;
|
||
|
import android.net.wifi.WifiInfo;
|
||
|
import android.text.TextUtils;
|
||
|
|
||
|
/* loaded from: classes2.dex */
|
||
|
public final class zzcl {
|
||
|
private final String zza;
|
||
|
private final int zzb;
|
||
|
private final zzck zzc;
|
||
|
private final boolean zzd;
|
||
|
private final int zze;
|
||
|
|
||
|
public zzcl(WifiInfo wifiInfo, ScanResult scanResult) {
|
||
|
zzck zzckVar;
|
||
|
String str = scanResult.BSSID;
|
||
|
String str2 = scanResult.capabilities;
|
||
|
int i = scanResult.level;
|
||
|
int i2 = scanResult.frequency;
|
||
|
if (TextUtils.isEmpty(str2)) {
|
||
|
zzckVar = zzck.OTHER;
|
||
|
} else {
|
||
|
String upperCase = str2.toUpperCase();
|
||
|
if (upperCase.equals("[ESS]") || upperCase.equals("[IBSS]")) {
|
||
|
zzckVar = zzck.NONE;
|
||
|
} else if (upperCase.matches(".*WPA[0-9]*-PSK.*")) {
|
||
|
zzckVar = zzck.PSK;
|
||
|
} else if (upperCase.matches(".*WPA[0-9]*-EAP.*")) {
|
||
|
zzckVar = zzck.EAP;
|
||
|
} else {
|
||
|
zzckVar = zzck.OTHER;
|
||
|
}
|
||
|
}
|
||
|
boolean z = false;
|
||
|
if (wifiInfo != null && !TextUtils.isEmpty(str) && str.equalsIgnoreCase(wifiInfo.getBSSID())) {
|
||
|
z = true;
|
||
|
}
|
||
|
this.zza = str;
|
||
|
this.zzb = i;
|
||
|
this.zzc = zzckVar;
|
||
|
this.zzd = z;
|
||
|
this.zze = i2;
|
||
|
}
|
||
|
|
||
|
public final boolean zze() {
|
||
|
return this.zzd;
|
||
|
}
|
||
|
|
||
|
public final String zzd() {
|
||
|
return this.zza;
|
||
|
}
|
||
|
|
||
|
public final zzck zzc() {
|
||
|
return this.zzc;
|
||
|
}
|
||
|
|
||
|
public final int zzb() {
|
||
|
return this.zzb;
|
||
|
}
|
||
|
|
||
|
public final int zza() {
|
||
|
return this.zze;
|
||
|
}
|
||
|
}
|