Tabnine Logo
SparseArray.get
Code IndexAdd Tabnine to your IDE (free)

How to use
get
method
in
com.lody.virtual.helper.collection.SparseArray

Best Java code snippets using com.lody.virtual.helper.collection.SparseArray.get (Showing top 20 results out of 315)

origin: android-hacker/VirtualXposed

/**
 * Should guard by {@link VActivityManagerService#mPidsSelfLocked}
 *
 * @param pid pid
 */
public ProcessRecord findProcessLocked(int pid) {
  return mPidsSelfLocked.get(pid);
}
origin: android-hacker/VirtualXposed

@Override
public String getAppProcessName(int pid) {
  synchronized (mPidsSelfLocked) {
    ProcessRecord r = mPidsSelfLocked.get(pid);
    if (r != null) {
      return r.processName;
    }
  }
  return null;
}
origin: android-hacker/VirtualXposed

@Override
public String getInitialPackage(int pid) {
  synchronized (mPidsSelfLocked) {
    ProcessRecord r = mPidsSelfLocked.get(pid);
    if (r != null) {
      return r.info.packageName;
    }
    return null;
  }
}
origin: android-hacker/VirtualXposed

/**
 * Gets the Object mapped from the specified key, or <code>null</code>
 * if no such mapping has been made.
 */
public E get(int key) {
  return get(key, null);
}
origin: android-hacker/VirtualXposed

@Override
public List<String> getProcessPkgList(int pid) {
  synchronized (mPidsSelfLocked) {
    ProcessRecord r = mPidsSelfLocked.get(pid);
    if (r != null) {
      return new ArrayList<>(r.pkgList);
    }
  }
  return Collections.emptyList();
}
origin: android-hacker/VirtualXposed

public E get(String name, int uid) {
  SparseArray<E> uids = mMap.get(name);
  if (uids == null)
    return null;
  return uids.get(uid);
}
origin: android-hacker/VirtualXposed

private VLocConfig getOrCreateConfig(int userId, String pkg) {
  Map<String, VLocConfig> pkgs = mLocConfigs.get(userId);
  if (pkgs == null) {
    pkgs = new HashMap<>();
    mLocConfigs.put(userId, pkgs);
  }
  VLocConfig config = pkgs.get(pkg);
  if (config == null) {
    config = new VLocConfig();
    config.mode = MODE_CLOSE;
    pkgs.put(pkg, config);
  }
  return config;
}
origin: android-hacker/VirtualXposed

  @Override
  public void stopJob(JobParameters jobParams) throws RemoteException {
    int jobId = jobParams.getJobId();
    synchronized (mJobSessions) {
      JobSession session = mJobSessions.get(jobId);
      if (session != null) {
        session.stopSession();
      }
    }
  }
};
origin: android-hacker/VirtualXposed

@Override
public void appDoneExecuting() {
  synchronized (mPidsSelfLocked) {
    ProcessRecord r = mPidsSelfLocked.get(VBinder.getCallingPid());
    if (r != null) {
      r.doneExecuting = true;
      r.lock.open();
    }
  }
}
origin: android-hacker/VirtualXposed

@Override
public VDeviceInfo getDeviceInfo(int userId) throws RemoteException {
  VDeviceInfo info;
  synchronized (mDeviceInfos) {
    info = mDeviceInfos.get(userId);
    if (info == null) {
      info = generateDeviceInfo();
      mDeviceInfos.put(userId, info);
      mPersistenceLayer.save();
    }
  }
  return info;
}
origin: android-hacker/VirtualXposed

JobConfig config = entry.getValue();
synchronized (mJobSessions) {
  JobSession session = mJobSessions.get(jobId);
  if (session != null) {
origin: bzsome/VirtualApp-x326

@Override
public String getInitialPackage(int pid) {
  synchronized (mPidsSelfLocked) {
    ProcessRecord r = mPidsSelfLocked.get(pid);
    if (r != null) {
      return r.info.packageName;
    }
    return null;
  }
}
origin: bzsome/VirtualApp-x326

@Override
public String getAppProcessName(int pid) {
  synchronized (mPidsSelfLocked) {
    ProcessRecord r = mPidsSelfLocked.get(pid);
    if (r != null) {
      return r.processName;
    }
  }
  return null;
}
origin: darkskygit/VirtualApp

/**
 * Gets the Object mapped from the specified key, or <code>null</code>
 * if no such mapping has been made.
 */
public E get(int key) {
  return get(key, null);
}
origin: darkskygit/VirtualApp

@Override
public String getAppProcessName(int pid) {
  synchronized (mPidsSelfLocked) {
    ProcessRecord r = mPidsSelfLocked.get(pid);
    if (r != null) {
      return r.processName;
    }
  }
  return null;
}
origin: darkskygit/VirtualApp

public E get(String name, int uid) {
  SparseArray<E> uids = mMap.get(name);
  if (uids == null)
    return null;
  return uids.get(uid);
}
origin: bzsome/VirtualApp-x326

public E get(String name, int uid) {
  SparseArray<E> uids = mMap.get(name);
  if (uids == null)
    return null;
  return uids.get(uid);
}
origin: darkskygit/VirtualApp

@Override
public void appDoneExecuting() {
  synchronized (mPidsSelfLocked) {
    ProcessRecord r = mPidsSelfLocked.get(VBinder.getCallingPid());
    if (r != null) {
      r.doneExecuting = true;
      r.lock.open();
    }
  }
}
origin: darkskygit/VirtualApp

  @Override
  public void stopJob(JobParameters jobParams) throws RemoteException {
    int jobId = jobParams.getJobId();
    synchronized (mJobSessions) {
      JobSession session = mJobSessions.get(jobId);
      if (session != null) {
        session.stopSession();
      }
    }
  }
};
origin: bzsome/VirtualApp-x326

  @Override
  public void stopJob(JobParameters jobParams) throws RemoteException {
    int jobId = jobParams.getJobId();
    synchronized (mJobSessions) {
      JobSession session = mJobSessions.get(jobId);
      if (session != null) {
        session.stopSession();
      }
    }
  }
};
com.lody.virtual.helper.collectionSparseArrayget

Javadoc

Gets the Object mapped from the specified key, or null if no such mapping has been made.

Popular methods of SparseArray

  • <init>
    Creates a new SparseArray containing no mappings that will not require any additional memory allocat
  • clear
    Removes all key-value mappings from this SparseArray.
  • delete
    Removes the mapping from the specified key, if there was any.
  • gc
  • keyAt
    Given an index in the range 0...size()-1, returns the key from the indexth key-value mapping that th
  • put
    Adds a mapping from the specified key to the specified value, replacing the previous mapping from th
  • remove
    Alias for #delete(int).
  • removeAt
    Removes the mapping at the specified index.
  • removeReturnOld
  • size
    Returns the number of key-value mappings that this SparseArray currently stores.
  • valueAt
    Given an index in the range 0...size()-1, returns the value from the indexth key-value mapping that
  • valueAt

Popular in Java

  • Reactive rest calls using spring rest template
  • compareTo (BigDecimal)
  • getSharedPreferences (Context)
  • setContentView (Activity)
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • JCheckBox (javax.swing)
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now