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

How to use
PrivilegeAppOptimizer
in
com.lody.virtual.server.pm

Best Java code snippets using com.lody.virtual.server.pm.PrivilegeAppOptimizer (Showing top 14 results out of 315)

origin: android-hacker/VirtualXposed

@Override
public void scanApps() {
  if (mBooting) {
    return;
  }
  synchronized (this) {
    mBooting = true;
    mPersistenceLayer.read();
    PrivilegeAppOptimizer.get().performOptimizeAllApps();
    mBooting = false;
  }
}
origin: android-hacker/VirtualXposed

public static void notifyBootFinish() {
  for (String pkg : Constants.PRIVILEGE_APP) {
    try {
      PrivilegeAppOptimizer.get().performOptimize(pkg, 0);
    } catch (Throwable ignored) {
    }
  }
}
origin: android-hacker/VirtualXposed

public boolean performOptimize(String packageName, int userId) {
  VActivityManagerService.get().sendBroadcastAsUser(
      specifyApp(new Intent(Intent.ACTION_BOOT_COMPLETED), packageName, userId)
      , new VUserHandle(userId));
  return true;
}
origin: bzsome/VirtualApp-x326

public boolean performOptimize(String packageName, int userId) {
  if (!isPrivilegeApp(packageName)) {
    return false;
  }
  VActivityManagerService.get().sendBroadcastAsUser(
      specifyApp(new Intent(Intent.ACTION_BOOT_COMPLETED, null), packageName, userId)
      , new VUserHandle(userId));
  return true;
}
origin: android-hacker/VirtualXposed

public void performOptimizeAllApps() {
  for (String pkg : privilegeApps) {
    performOptimize(pkg, VUserHandle.USER_ALL);
  }
}
origin: android-hacker/VirtualXposed

@Override
public boolean onStartJob(JobParameters params) {
  PrivilegeAppOptimizer.notifyBootFinish();
  return true;
}
origin: darkskygit/VirtualApp

public void performOptimizeAllApps() {
  for (String pkg : privilegeApps) {
    performOptimize(pkg, VUserHandle.USER_ALL);
  }
}
origin: darkskygit/VirtualApp

@Override
public boolean onStartJob(JobParameters params) {
  PrivilegeAppOptimizer.notifyBootFinish();
  return true;
}
origin: darkskygit/VirtualApp

@Override
public void scanApps() {
  if (mBooting) {
    return;
  }
  synchronized (this) {
    mBooting = true;
    mPersistenceLayer.read();
    PrivilegeAppOptimizer.get().performOptimizeAllApps();
    mBooting = false;
  }
}
origin: darkskygit/VirtualApp

public static void notifyBootFinish() {
  for (String pkg : Constants.PRIVILEGE_APP) {
    try {
      PrivilegeAppOptimizer.get().performOptimize(pkg, 0);
    } catch (Throwable ignored) {
    }
  }
}
origin: bzsome/VirtualApp-x326

public void performOptimizeAllApps() {
  for (String pkg : privilegeApps) {
    performOptimize(pkg, VUserHandle.USER_ALL);
  }
}
origin: darkskygit/VirtualApp

public boolean performOptimize(String packageName, int userId) {
  VActivityManagerService.get().sendBroadcastAsUser(
      specifyApp(new Intent(Intent.ACTION_BOOT_COMPLETED), packageName, userId)
      , new VUserHandle(userId));
  return true;
}
origin: darkskygit/VirtualApp

public static void startup(Context context) {
  File flagFile = context.getFileStreamPath(Constants.NO_NOTIFICATION_FLAG);
  if (Build.VERSION.SDK_INT >= 25 && flagFile.exists()) {
    showNotification = false;
  }
  context.startService(new Intent(context, DaemonService.class));
  if (VirtualCore.get().isServerProcess()) {
    PrivilegeAppOptimizer.notifyBootFinish();
  }
}
origin: bzsome/VirtualApp-x326

@Override
public void scanApps() {
  if (mBooting) {
    return;
  }
  synchronized (this) {
    mBooting = true;
    mPersistenceLayer.read();
    PrivilegeAppOptimizer.get().performOptimizeAllApps();
    mBooting = false;
  }
}
com.lody.virtual.server.pmPrivilegeAppOptimizer

Most used methods

  • get
  • performOptimize
  • performOptimizeAllApps
  • specifyApp
  • notifyBootFinish
  • isPrivilegeApp

Popular in Java

  • Creating JSON documents from java classes using gson
  • compareTo (BigDecimal)
  • getSystemService (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • BoxLayout (javax.swing)
  • Best IntelliJ plugins
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