.class public final Lyj/d; .super Ljava/lang/Object; .source "BluetoothUuid.java" # static fields .field public static final a:Landroid/os/ParcelUuid; .field public static final b:I = 0x2 .field public static final c:I = 0x4 .field public static final d:I = 0x10 # direct methods .method public static constructor ()V .locals 1 const-string v0, "00000000-0000-1000-8000-00805F9B34FB" .line 1 invoke-static {v0}, Landroid/os/ParcelUuid;->fromString(Ljava/lang/String;)Landroid/os/ParcelUuid; move-result-object v0 sput-object v0, Lyj/d;->a:Landroid/os/ParcelUuid; return-void .end method .method public constructor ()V .locals 0 .line 1 invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method .method public static a([B)Landroid/os/ParcelUuid; .locals 8 if-eqz p0, :cond_4 .line 1 array-length v0, p0 const/16 v1, 0x10 const/4 v2, 0x2 if-eq v0, v2, :cond_1 const/4 v3, 0x4 if-eq v0, v3, :cond_1 if-ne v0, v1, :cond_0 goto :goto_0 .line 2 :cond_0 new-instance p0, Ljava/lang/IllegalArgumentException; const-string v1, "uuidBytes length invalid - " invoke-static {v1, v0}, Landroid/support/v4/media/b;->a(Ljava/lang/String;I)Ljava/lang/String; move-result-object v0 invoke-direct {p0, v0}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw p0 :cond_1 :goto_0 const/4 v3, 0x0 const/16 v4, 0x8 if-ne v0, v1, :cond_2 .line 3 invoke-static {p0}, Ljava/nio/ByteBuffer;->wrap([B)Ljava/nio/ByteBuffer; move-result-object p0 sget-object v0, Ljava/nio/ByteOrder;->LITTLE_ENDIAN:Ljava/nio/ByteOrder; invoke-virtual {p0, v0}, Ljava/nio/ByteBuffer;->order(Ljava/nio/ByteOrder;)Ljava/nio/ByteBuffer; move-result-object p0 .line 4 invoke-virtual {p0, v4}, Ljava/nio/ByteBuffer;->getLong(I)J move-result-wide v0 .line 5 invoke-virtual {p0, v3}, Ljava/nio/ByteBuffer;->getLong(I)J move-result-wide v2 .line 6 new-instance p0, Landroid/os/ParcelUuid; new-instance v4, Ljava/util/UUID; invoke-direct {v4, v0, v1, v2, v3}, Ljava/util/UUID;->(JJ)V invoke-direct {p0, v4}, Landroid/os/ParcelUuid;->(Ljava/util/UUID;)V return-object p0 :cond_2 const/4 v5, 0x1 if-ne v0, v2, :cond_3 .line 7 aget-byte v0, p0, v3 and-int/lit16 v0, v0, 0xff int-to-long v0, v0 .line 8 aget-byte p0, p0, v5 and-int/lit16 p0, p0, 0xff shl-int/2addr p0, v4 int-to-long v2, p0 add-long/2addr v0, v2 goto :goto_1 .line 9 :cond_3 aget-byte v0, p0, v3 and-int/lit16 v0, v0, 0xff int-to-long v6, v0 .line 10 aget-byte v0, p0, v5 and-int/lit16 v0, v0, 0xff shl-int/2addr v0, v4 int-to-long v3, v0 add-long/2addr v6, v3 .line 11 aget-byte v0, p0, v2 and-int/lit16 v0, v0, 0xff shl-int/2addr v0, v1 int-to-long v0, v0 add-long/2addr v6, v0 const/4 v0, 0x3 .line 12 aget-byte p0, p0, v0 and-int/lit16 p0, p0, 0xff shl-int/lit8 p0, p0, 0x18 int-to-long v0, p0 add-long/2addr v0, v6 .line 13 :goto_1 sget-object p0, Lyj/d;->a:Landroid/os/ParcelUuid; invoke-virtual {p0}, Landroid/os/ParcelUuid;->getUuid()Ljava/util/UUID; move-result-object v2 invoke-virtual {v2}, Ljava/util/UUID;->getMostSignificantBits()J move-result-wide v2 const/16 v4, 0x20 shl-long/2addr v0, v4 add-long/2addr v2, v0 .line 14 invoke-virtual {p0}, Landroid/os/ParcelUuid;->getUuid()Ljava/util/UUID; move-result-object p0 invoke-virtual {p0}, Ljava/util/UUID;->getLeastSignificantBits()J move-result-wide v0 .line 15 new-instance p0, Landroid/os/ParcelUuid; new-instance v4, Ljava/util/UUID; invoke-direct {v4, v2, v3, v0, v1}, Ljava/util/UUID;->(JJ)V invoke-direct {p0, v4}, Landroid/os/ParcelUuid;->(Ljava/util/UUID;)V return-object p0 .line 16 :cond_4 new-instance p0, Ljava/lang/IllegalArgumentException; const-string v0, "uuidBytes cannot be null" invoke-direct {p0, v0}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw p0 .end method