congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ArrayMap.put
Code IndexAdd Tabnine to your IDE (free)

How to use
put
method
in
com.lody.virtual.helper.collection.ArrayMap

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

origin: android-hacker/VirtualXposed

@Override
protected void colPut(K key, V value) {
  put(key, value);
}
origin: android-hacker/VirtualXposed

/**
 * Perform a {@link #put(Object, Object)} of all key/value pairs in <var>map</var>
 * @param map The map whose contents are to be retrieved.
 */
@Override
public void putAll(Map<? extends K, ? extends V> map) {
  ensureCapacity(mSize + map.size());
  for (Map.Entry<? extends K, ? extends V> entry : map.entrySet()) {
    put(entry.getKey(), entry.getValue());
  }
}
origin: android-hacker/VirtualXposed

public void startApp(VPackage p) {
  PackageSetting setting = (PackageSetting) p.mExtras;
  for (VPackage.ActivityComponent receiver : p.receivers) {
    ActivityInfo info = receiver.info;
    List<BroadcastReceiver> receivers = mReceivers.get(p.packageName);
    if (receivers == null) {
      receivers = new ArrayList<>();
      mReceivers.put(p.packageName, receivers);
    }
    String componentAction = String.format("_VA_%s_%s", info.packageName, info.name);
    IntentFilter componentFilter = new IntentFilter(componentAction);
    BroadcastReceiver r = new StaticBroadcastReceiver(setting.appId, info, componentFilter);
    mContext.registerReceiver(r, componentFilter, null, mScheduler);
    receivers.add(r);
    for (VPackage.ActivityIntentInfo ci : receiver.intents) {
      IntentFilter cloneFilter = new IntentFilter(ci.filter);
      SpecialComponentList.protectIntentFilter(cloneFilter);
      r = new StaticBroadcastReceiver(setting.appId, info, cloneFilter);
      mContext.registerReceiver(r, cloneFilter, null, mScheduler);
      receivers.add(r);
    }
  }
}
origin: android-hacker/VirtualXposed

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

public static ServiceConnectionDelegate getDelegate(IServiceConnection conn) {
  if(conn instanceof ServiceConnectionDelegate){
    return (ServiceConnectionDelegate)conn;
  }
  IBinder binder = conn.asBinder();
  ServiceConnectionDelegate delegate = DELEGATE_MAP.get(binder);
  if (delegate == null) {
    delegate = new ServiceConnectionDelegate(conn);
    DELEGATE_MAP.put(binder, delegate);
  }
  return delegate;
}
origin: android-hacker/VirtualXposed

public static void put(VPackage pkg, PackageSetting ps) {
  synchronized (PackageCacheManager.class) {
    PackageParserEx.initApplicationInfoBase(ps, pkg);
    PACKAGE_CACHE.put(pkg.packageName, pkg);
    pkg.mExtras = ps;
    VPackageManagerService.get().analyzePackageLocked(pkg);
  }
}
origin: android-hacker/VirtualXposed

  sharedLibraryFiles = hostInfo.sharedLibraryFiles;
  if (sharedLibraryFiles == null) sharedLibraryFiles = new String[0];
  sSharedLibCache.put(ps.packageName, sharedLibraryFiles);
} catch (PackageManager.NameNotFoundException e) {
  e.printStackTrace();
origin: darkskygit/VirtualApp

@Override
protected void colPut(K key, V value) {
  put(key, value);
}
origin: bzsome/VirtualApp-x326

@Override
protected void colPut(K key, V value) {
  put(key, value);
}
origin: bzsome/VirtualApp-x326

/**
 * Perform a {@link #put(Object, Object)} of all key/value pairs in <var>map</var>
 * @param map The map whose contents are to be retrieved.
 */
@Override
public void putAll(Map<? extends K, ? extends V> map) {
  ensureCapacity(mSize + map.size());
  for (Map.Entry<? extends K, ? extends V> entry : map.entrySet()) {
    put(entry.getKey(), entry.getValue());
  }
}
origin: darkskygit/VirtualApp

/**
 * Perform a {@link #put(Object, Object)} of all key/value pairs in <var>map</var>
 * @param map The map whose contents are to be retrieved.
 */
@Override
public void putAll(Map<? extends K, ? extends V> map) {
  ensureCapacity(mSize + map.size());
  for (Map.Entry<? extends K, ? extends V> entry : map.entrySet()) {
    put(entry.getKey(), entry.getValue());
  }
}
origin: darkskygit/VirtualApp

public void startApp(VPackage p) {
  PackageSetting setting = (PackageSetting) p.mExtras;
  for (VPackage.ActivityComponent receiver : p.receivers) {
    ActivityInfo info = receiver.info;
    List<BroadcastReceiver> receivers = mReceivers.get(p.packageName);
    if (receivers == null) {
      receivers = new ArrayList<>();
      mReceivers.put(p.packageName, receivers);
    }
    String componentAction = String.format("_VA_%s_%s", info.packageName, info.name);
    IntentFilter componentFilter = new IntentFilter(componentAction);
    BroadcastReceiver r = new StaticBroadcastReceiver(setting.appId, info, componentFilter);
    mContext.registerReceiver(r, componentFilter, null, mScheduler);
    receivers.add(r);
    for (VPackage.ActivityIntentInfo ci : receiver.intents) {
      IntentFilter cloneFilter = new IntentFilter(ci.filter);
      SpecialComponentList.protectIntentFilter(cloneFilter);
      r = new StaticBroadcastReceiver(setting.appId, info, cloneFilter);
      mContext.registerReceiver(r, cloneFilter, null, mScheduler);
      receivers.add(r);
    }
  }
}
origin: bzsome/VirtualApp-x326

public void startApp(VPackage p) {
  PackageSetting setting = (PackageSetting) p.mExtras;
  for (VPackage.ActivityComponent receiver : p.receivers) {
    ActivityInfo info = receiver.info;
    List<BroadcastReceiver> receivers = mReceivers.get(p.packageName);
    if (receivers == null) {
      receivers = new ArrayList<>();
      mReceivers.put(p.packageName, receivers);
    }
    String componentAction = String.format("_VA_%s_%s", info.packageName, info.name);
    IntentFilter componentFilter = new IntentFilter(componentAction);
    BroadcastReceiver r = new StaticBroadcastReceiver(setting.appId, info, componentFilter);
    mContext.registerReceiver(r, componentFilter, null, mScheduler);
    receivers.add(r);
    for (VPackage.ActivityIntentInfo ci : receiver.intents) {
      IntentFilter cloneFilter = new IntentFilter(ci.filter);
      SpecialComponentList.protectIntentFilter(cloneFilter);
      r = new StaticBroadcastReceiver(setting.appId, info, cloneFilter);
      mContext.registerReceiver(r, cloneFilter, null, mScheduler);
      receivers.add(r);
    }
  }
}
origin: bzsome/VirtualApp-x326

public static ServiceConnectionDelegate getDelegate(IServiceConnection conn) {
  if(conn instanceof ServiceConnectionDelegate){
    return (ServiceConnectionDelegate)conn;
  }
  IBinder binder = conn.asBinder();
  ServiceConnectionDelegate delegate = DELEGATE_MAP.get(binder);
  if (delegate == null) {
    delegate = new ServiceConnectionDelegate(conn);
    DELEGATE_MAP.put(binder, delegate);
  }
  return delegate;
}
origin: bzsome/VirtualApp-x326

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

public static void put(VPackage pkg, PackageSetting ps) {
  synchronized (PackageCacheManager.class) {
    PackageParserEx.initApplicationInfoBase(ps, pkg);
    PACKAGE_CACHE.put(pkg.packageName, pkg);
    pkg.mExtras = ps;
    VPackageManagerService.get().analyzePackageLocked(pkg);
  }
}
origin: darkskygit/VirtualApp

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

public static ServiceConnectionDelegate getDelegate(IServiceConnection conn) {
  if(conn instanceof ServiceConnectionDelegate){
    return (ServiceConnectionDelegate)conn;
  }
  IBinder binder = conn.asBinder();
  ServiceConnectionDelegate delegate = DELEGATE_MAP.get(binder);
  if (delegate == null) {
    delegate = new ServiceConnectionDelegate(conn);
    DELEGATE_MAP.put(binder, delegate);
  }
  return delegate;
}
origin: bzsome/VirtualApp-x326

public static void put(VPackage pkg, PackageSetting ps) {
  synchronized (PackageCacheManager.class) {
    PackageParserEx.initApplicationInfoBase(ps, pkg);
    PACKAGE_CACHE.put(pkg.packageName, pkg);
    pkg.mExtras = ps;
    VPackageManagerService.get().analyzePackageLocked(pkg);
  }
}
origin: darkskygit/VirtualApp

  sharedLibraryFiles = hostInfo.sharedLibraryFiles;
  if (sharedLibraryFiles == null) sharedLibraryFiles = new String[0];
  sSharedLibCache.put(ps.packageName, sharedLibraryFiles);
} catch (PackageManager.NameNotFoundException e) {
  e.printStackTrace();
com.lody.virtual.helper.collectionArrayMapput

Javadoc

Perform a #put(Object,Object) of all key/value pairs in map

Popular methods of ArrayMap

  • clear
  • containsKey
  • ensureCapacity
  • get
  • getCollection
  • indexOfKey
  • indexOfValue
  • remove
  • removeAt
  • setValueAt
  • size
  • valueAt
  • size,
  • valueAt,
  • values

Popular in Java

  • Parsing JSON documents to java classes using gson
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getContentResolver (Context)
  • runOnUiThread (Activity)
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • JList (javax.swing)
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Github Copilot alternatives
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