Codota Logo
VContentService.parseSyncAdapterType
Code IndexAdd Codota to your IDE (free)

How to use
parseSyncAdapterType
method
in
com.lody.virtual.server.accounts.VContentService

Best Java code snippets using com.lody.virtual.server.accounts.VContentService.parseSyncAdapterType (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • 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: 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();
      }
    }
  }
}
com.lody.virtual.server.accountsVContentServiceparseSyncAdapterType

Popular methods of VContentService

  • generateServicesMap
  • getIsSyncableAsUser
  • isAccountExist

Popular in Java

  • Running tasks concurrently on multiple threads
  • getExternalFilesDir (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • putExtra (Intent)
  • FileInputStream (java.io)
    A FileInputStream obtains input bytes from a file in a file system. What files are available depends
  • FileOutputStream (java.io)
    A file output stream is an output stream for writing data to aFile or to a FileDescriptor. Whether
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • JList (javax.swing)
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
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