Beispiel #1
0
 public void Run()
 {
     if (hintMap != null)
     {
         fieldTypeMapCallback.OnLoaded(hintMap);
     }
     else
     {
         fieldTypeMapCallback.OnDataNotAvailable("FieldTypes not found");
     }
 }
Beispiel #2
0
 public void Run()
 {
     if (fieldTypeWithHints != null)
     {
         fieldTypesCallback.OnLoaded(fieldTypeWithHints);
     }
     else
     {
         fieldTypesCallback.OnDataNotAvailable("Field Types not found.");
     }
 }
        public void CheckValid(Util.DalCheckRequirement dalCheckRequirement, DalInfo dalInfo, IDataCallback <DalCheck> dalCheckCallback)
        {
            this.dalCheckCallback    = dalCheckCallback;
            this.dalCheckRequirement = dalCheckRequirement;

            if (dalCheckRequirement.Equals(Util.DalCheckRequirement.Disabled))
            {
                dalCheck        = new DalCheck();
                dalCheck.linked = true;
                dalCheckCallback.OnLoaded(dalCheck);
                return;
            }

            dalCheck = mCache[dalInfo];
            if (dalCheck != null)
            {
                dalCheckCallback.OnLoaded(dalCheck);
                return;
            }
            packageName = dalInfo.PackageName;
            webDomain   = dalInfo.WebDomain;

            try
            {
                var packageInfo = mPackageManager.GetPackageInfo(packageName, PackageInfoFlags.Signatures);
                fingerprint = SecurityHelper.GetFingerprint(packageInfo, packageName);
            }
            catch (Exception e)
            {
                dalCheckCallback.OnDataNotAvailable("Error getting fingerprint for %s",
                                                    packageName);
                return;
            }
            Util.Logd("validating domain %s for pkg %s and fingerprint %s.", webDomain,
                      packageName, fingerprint);
            mDalService.Check(webDomain, PERMISSION_GET_LOGIN_CREDS, packageName, fingerprint).Enqueue(new MyCallBack {
                repository = this
            });
        }
Beispiel #4
0
 public void Run()
 {
     datasetsCallback.OnLoaded(datasetsWithFilledAutofillFields);
 }
Beispiel #5
0
 public void Run()
 {
     callback.OnLoaded(dataset);
 }
Beispiel #6
0
 public void Run()
 {
     fieldCallback.OnLoaded(filledAutofillField);
 }
Beispiel #7
0
 public void Run()
 {
     fieldTypeCallback.OnLoaded(fieldType);
 }