コード例 #1
0
 public static String getValueOrAttributeDefault(Bundle bundle)
 {
     MAPArgContracts.throwIfNull(bundle, "attributeResult");
     String s = bundle.getString("value_key");
     if (s != null)
     {
         return s;
     } else
     {
         return bundle.getString("defaut_value_key");
     }
 }
コード例 #2
0
 public static CustomerAttributeStore getInstance(Context context)
 {
     com/amazon/identity/auth/device/api/CustomerAttributeStore;
     JVM INSTR monitorenter ;
     MAPArgContracts.throwIfNull(context, "context");
     if (sTheOneAndTheOnly == null)
     {
         sTheOneAndTheOnly = new CustomerAttributeStore(context.getApplicationContext());
     }
     context = sTheOneAndTheOnly;
     com/amazon/identity/auth/device/api/CustomerAttributeStore;
     JVM INSTR monitorexit ;
     return context;
     context;
     throw context;
 }