Codota Logo
VirtualLocationService.getOrCreateConfig
Code IndexAdd Codota to your IDE (free)

How to use
getOrCreateConfig
method
in
com.lody.virtual.server.location.VirtualLocationService

Best Java code snippets using com.lody.virtual.server.location.VirtualLocationService.getOrCreateConfig (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: android-hacker/VirtualXposed

@Override
public void setLocation(int userId, String pkg, VLocation loc) throws RemoteException {
  getOrCreateConfig(userId, pkg).location = loc;
  mPersistenceLayer.save();
}
origin: android-hacker/VirtualXposed

@Override
public void setCell(int userId, String pkg, VCell cell) throws RemoteException {
  getOrCreateConfig(userId, pkg).cell = cell;
  mPersistenceLayer.save();
}
origin: android-hacker/VirtualXposed

@Override
public void setNeighboringCell(int userId, String pkg, List<VCell> cell) throws RemoteException {
  getOrCreateConfig(userId, pkg).neighboringCell = cell;
  mPersistenceLayer.save();
}
origin: android-hacker/VirtualXposed

@Override
public int getMode(int userId, String pkg) throws RemoteException {
  synchronized (mLocConfigs) {
    VLocConfig config = getOrCreateConfig(userId, pkg);
    mPersistenceLayer.save();
    return config.mode;
  }
}
origin: android-hacker/VirtualXposed

@Override
public void setMode(int userId, String pkg, int mode) throws RemoteException {
  synchronized (mLocConfigs) {
    getOrCreateConfig(userId, pkg).mode = mode;
    mPersistenceLayer.save();
  }
}
origin: android-hacker/VirtualXposed

@Override
public void setAllCell(int userId, String pkg, List<VCell> cell) throws RemoteException {
  getOrCreateConfig(userId, pkg).allCell = cell;
  mPersistenceLayer.save();
}
origin: android-hacker/VirtualXposed

@Override
public VLocation getLocation(int userId, String pkg) throws RemoteException {
  VLocConfig config = getOrCreateConfig(userId, pkg);
  mPersistenceLayer.save();
  switch (config.mode) {
    case MODE_USE_SELF:
      return config.location;
    case MODE_USE_GLOBAL:
      return mGlobalConfig.location;
    case MODE_CLOSE:
    default:
      return null;
  }
}
origin: android-hacker/VirtualXposed

@Override
public List<VCell> getAllCell(int userId, String pkg) throws RemoteException {
  VLocConfig config = getOrCreateConfig(userId, pkg);
  mPersistenceLayer.save();
  switch (config.mode) {
    case MODE_USE_SELF:
      return config.allCell;
    case MODE_USE_GLOBAL:
      return mGlobalConfig.allCell;
    case MODE_CLOSE:
    default:
      return null;
  }
}
origin: android-hacker/VirtualXposed

@Override
public VCell getCell(int userId, String pkg) throws RemoteException {
  VLocConfig config = getOrCreateConfig(userId, pkg);
  mPersistenceLayer.save();
  switch (config.mode) {
    case MODE_USE_SELF:
      return config.cell;
    case MODE_USE_GLOBAL:
      return mGlobalConfig.cell;
    case MODE_CLOSE:
    default:
      return null;
  }
}
origin: android-hacker/VirtualXposed

@Override
public List<VCell> getNeighboringCell(int userId, String pkg) throws RemoteException {
  VLocConfig config = getOrCreateConfig(userId, pkg);
  mPersistenceLayer.save();
  switch (config.mode) {
    case MODE_USE_SELF:
      return config.neighboringCell;
    case MODE_USE_GLOBAL:
      return mGlobalConfig.neighboringCell;
    case MODE_CLOSE:
    default:
      return null;
  }
}
origin: bzsome/VirtualApp-x326

@Override
public int getMode(int userId, String pkg) {
  synchronized (mLocConfigs) {
    VLocConfig config = getOrCreateConfig(userId, pkg);
    mPersistenceLayer.save();
    return config.mode;
  }
}
origin: darkskygit/VirtualApp

@Override
public int getMode(int userId, String pkg) throws RemoteException {
  synchronized (mLocConfigs) {
    VLocConfig config = getOrCreateConfig(userId, pkg);
    mPersistenceLayer.save();
    return config.mode;
  }
}
origin: darkskygit/VirtualApp

@Override
public void setNeighboringCell(int userId, String pkg, List<VCell> cell) throws RemoteException {
  getOrCreateConfig(userId, pkg).neighboringCell = cell;
  mPersistenceLayer.save();
}
origin: bzsome/VirtualApp-x326

@Override
public void setMode(int userId, String pkg, int mode) {
  synchronized (mLocConfigs) {
    getOrCreateConfig(userId, pkg).mode = mode;
    mPersistenceLayer.save();
  }
}
origin: bzsome/VirtualApp-x326

@Override
public void setLocation(int userId, String pkg, VLocation loc) {
  getOrCreateConfig(userId, pkg).location = loc;
  mPersistenceLayer.save();
}
origin: bzsome/VirtualApp-x326

@Override
public void setCell(int userId, String pkg, VCell cell) {
  getOrCreateConfig(userId, pkg).cell = cell;
  mPersistenceLayer.save();
}
origin: darkskygit/VirtualApp

@Override
public void setMode(int userId, String pkg, int mode) throws RemoteException {
  synchronized (mLocConfigs) {
    getOrCreateConfig(userId, pkg).mode = mode;
    mPersistenceLayer.save();
  }
}
origin: darkskygit/VirtualApp

@Override
public void setCell(int userId, String pkg, VCell cell) throws RemoteException {
  getOrCreateConfig(userId, pkg).cell = cell;
  mPersistenceLayer.save();
}
origin: darkskygit/VirtualApp

@Override
public void setAllCell(int userId, String pkg, List<VCell> cell) throws RemoteException {
  getOrCreateConfig(userId, pkg).allCell = cell;
  mPersistenceLayer.save();
}
origin: darkskygit/VirtualApp

@Override
public void setLocation(int userId, String pkg, VLocation loc) throws RemoteException {
  getOrCreateConfig(userId, pkg).location = loc;
  mPersistenceLayer.save();
}
com.lody.virtual.server.locationVirtualLocationServicegetOrCreateConfig

Popular methods of VirtualLocationService

  • get

Popular in Java

  • Start an intent from android
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSystemService (Context)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
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