Codota Logo
RegisteredServicesParser.getParser
Code IndexAdd Codota to your IDE (free)

How to use
getParser
method
in
com.lody.virtual.server.accounts.RegisteredServicesParser

Best Java code snippets using com.lody.virtual.server.accounts.RegisteredServicesParser.getParser (Showing top 6 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
origin: android-hacker/VirtualXposed

private void generateServicesMap(List<ResolveInfo> services, Map<String, SyncAdapterInfo> map,
                 RegisteredServicesParser accountParser) {
  for (ResolveInfo info : services) {
    XmlResourceParser parser = accountParser.getParser(mContext, info.serviceInfo, "android.content.SyncAdapter");
    if (parser != null) {
      try {
        AttributeSet attributeSet = Xml.asAttributeSet(parser);
        int type;
        while ((type = parser.next()) != XmlPullParser.END_DOCUMENT && type != XmlPullParser.START_TAG) {
          // Nothing to do
        }
        if ("sync-adapter".equals(parser.getName())) {
          SyncAdapterType adapterType = parseSyncAdapterType(
              accountParser.getResources(mContext, info.serviceInfo.applicationInfo), attributeSet);
          if (adapterType != null) {
            String key = adapterType.accountType + "/" + adapterType.authority;
            map.put(key, new SyncAdapterInfo(adapterType, info.serviceInfo));
          }
        }
      } catch (Exception e) {
        e.printStackTrace();
      }
    }
  }
}
origin: android-hacker/VirtualXposed

private void generateServicesMap(List<ResolveInfo> services, Map<String, AuthenticatorInfo> map,
                 RegisteredServicesParser accountParser) {
  for (ResolveInfo info : services) {
    XmlResourceParser parser = accountParser.getParser(mContext, info.serviceInfo,
        AccountManager.AUTHENTICATOR_META_DATA_NAME);
    if (parser != null) {
      try {
        AttributeSet attributeSet = Xml.asAttributeSet(parser);
        int type;
        while ((type = parser.next()) != XmlPullParser.END_DOCUMENT && type != XmlPullParser.START_TAG) {
          // Nothing to do
        }
        if (AccountManager.AUTHENTICATOR_ATTRIBUTES_NAME.equals(parser.getName())) {
          AuthenticatorDescription desc = parseAuthenticatorDescription(
              accountParser.getResources(mContext, info.serviceInfo.applicationInfo),
              info.serviceInfo.packageName, attributeSet);
          if (desc != null) {
            map.put(desc.type, new AuthenticatorInfo(desc, info.serviceInfo));
          }
        }
      } catch (Exception e) {
        e.printStackTrace();
      }
    }
  }
}
origin: bzsome/VirtualApp-x326

private void generateServicesMap(List<ResolveInfo> services, Map<String, SyncAdapterInfo> map,
                 RegisteredServicesParser accountParser) {
  for (ResolveInfo info : services) {
    XmlResourceParser parser = accountParser.getParser(mContext, info.serviceInfo, "android.content.SyncAdapter");
    if (parser != null) {
      try {
        AttributeSet attributeSet = Xml.asAttributeSet(parser);
        int type;
        while ((type = parser.next()) != XmlPullParser.END_DOCUMENT && type != XmlPullParser.START_TAG) {
          // Nothing to do
        }
        if ("sync-adapter".equals(parser.getName())) {
          SyncAdapterType adapterType = parseSyncAdapterType(
              accountParser.getResources(mContext, info.serviceInfo.applicationInfo), attributeSet);
          if (adapterType != null) {
            String key = adapterType.accountType + "/" + adapterType.authority;
            map.put(key, new SyncAdapterInfo(adapterType, info.serviceInfo));
          }
        }
      } catch (Exception e) {
        e.printStackTrace();
      }
    }
  }
}
origin: darkskygit/VirtualApp

private void generateServicesMap(List<ResolveInfo> services, Map<String, SyncAdapterInfo> map,
                 RegisteredServicesParser accountParser) {
  for (ResolveInfo info : services) {
    XmlResourceParser parser = accountParser.getParser(mContext, info.serviceInfo, "android.content.SyncAdapter");
    if (parser != null) {
      try {
        AttributeSet attributeSet = Xml.asAttributeSet(parser);
        int type;
        while ((type = parser.next()) != XmlPullParser.END_DOCUMENT && type != XmlPullParser.START_TAG) {
          // Nothing to do
        }
        if ("sync-adapter".equals(parser.getName())) {
          SyncAdapterType adapterType = parseSyncAdapterType(
              accountParser.getResources(mContext, info.serviceInfo.applicationInfo), attributeSet);
          if (adapterType != null) {
            String key = adapterType.accountType + "/" + adapterType.authority;
            map.put(key, new SyncAdapterInfo(adapterType, info.serviceInfo));
          }
        }
      } catch (Exception e) {
        e.printStackTrace();
      }
    }
  }
}
origin: darkskygit/VirtualApp

private void generateServicesMap(List<ResolveInfo> services, Map<String, AuthenticatorInfo> map,
                 RegisteredServicesParser accountParser) {
  for (ResolveInfo info : services) {
    XmlResourceParser parser = accountParser.getParser(mContext, info.serviceInfo,
        AccountManager.AUTHENTICATOR_META_DATA_NAME);
    if (parser != null) {
      try {
        AttributeSet attributeSet = Xml.asAttributeSet(parser);
        int type;
        while ((type = parser.next()) != XmlPullParser.END_DOCUMENT && type != XmlPullParser.START_TAG) {
          // Nothing to do
        }
        if (AccountManager.AUTHENTICATOR_ATTRIBUTES_NAME.equals(parser.getName())) {
          AuthenticatorDescription desc = parseAuthenticatorDescription(
              accountParser.getResources(mContext, info.serviceInfo.applicationInfo),
              info.serviceInfo.packageName, attributeSet);
          if (desc != null) {
            map.put(desc.type, new AuthenticatorInfo(desc, info.serviceInfo));
          }
        }
      } catch (Exception e) {
        e.printStackTrace();
      }
    }
  }
}
origin: bzsome/VirtualApp-x326

private void generateServicesMap(List<ResolveInfo> services, Map<String, AuthenticatorInfo> map,
                 RegisteredServicesParser accountParser) {
  for (ResolveInfo info : services) {
    XmlResourceParser parser = accountParser.getParser(mContext, info.serviceInfo,
        AccountManager.AUTHENTICATOR_META_DATA_NAME);
    if (parser != null) {
      try {
        AttributeSet attributeSet = Xml.asAttributeSet(parser);
        int type;
        while ((type = parser.next()) != XmlPullParser.END_DOCUMENT && type != XmlPullParser.START_TAG) {
          // Nothing to do
        }
        if (AccountManager.AUTHENTICATOR_ATTRIBUTES_NAME.equals(parser.getName())) {
          AuthenticatorDescription desc = parseAuthenticatorDescription(
              accountParser.getResources(mContext, info.serviceInfo.applicationInfo),
              info.serviceInfo.packageName, attributeSet);
          if (desc != null) {
            map.put(desc.type, new AuthenticatorInfo(desc, info.serviceInfo));
          }
        }
      } catch (Exception e) {
        e.printStackTrace();
      }
    }
  }
}
com.lody.virtual.server.accountsRegisteredServicesParsergetParser

Popular methods of RegisteredServicesParser

  • <init>
  • getResources

Popular in Java

  • Making http requests using okhttp
  • scheduleAtFixedRate (ScheduledExecutorService)
  • onRequestPermissionsResult (Fragment)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now