예제 #1
0
 // orphaned legacy method
 public WifiP2pInfo createFromParcel(Parcel in) {
   WifiP2pInfo info = new WifiP2pInfo();
   info.groupFormed = (in.readByte() == 1);
   info.isGroupOwner = (in.readByte() == 1);
   if (in.readByte() == 1) {
     try {
       info.groupOwnerAddress = InetAddress.getByAddress(in.createByteArray());
     } catch (UnknownHostException e) {
     }
   }
   return info;
 }
예제 #2
0
 @DSSafe(DSCat.SAFE_OTHERS)
 @DSGenerator(
     tool_name = "Doppelganger",
     tool_version = "2.0",
     generated_on = "2013-12-30 12:36:02.382 -0500",
     hash_original_method = "495509163C5863569FB618FB24832814",
     hash_generated_method = "B41D7DA78EFFE4B989128A612A0EC681")
 public WifiP2pInfo createFromParcel(Parcel in) {
   WifiP2pInfo info = new WifiP2pInfo();
   info.groupFormed = (in.readByte() == 1);
   info.isGroupOwner = (in.readByte() == 1);
   if (in.readByte() == 1) {
     try {
       info.groupOwnerAddress = InetAddress.getByAddress(in.createByteArray());
     } catch (UnknownHostException e) {
     }
   }
   return info;
 }