Tabnine Logo
PackageInstallerSession.assertPreparedAndNotSealed
Code IndexAdd Tabnine to your IDE (free)

How to use
assertPreparedAndNotSealed
method
in
com.lody.virtual.server.pm.installer.PackageInstallerSession

Best Java code snippets using com.lody.virtual.server.pm.installer.PackageInstallerSession.assertPreparedAndNotSealed (Showing top 9 results out of 315)

origin: android-hacker/VirtualXposed

@Override
public String[] getNames() throws RemoteException {
  assertPreparedAndNotSealed("getNames");
  try {
    return resolveStageDir().list();
  } catch (IOException e) {
    throw new IllegalStateException(e);
  }
}
origin: android-hacker/VirtualXposed

private ParcelFileDescriptor openReadInternal(String name) throws IOException {
  assertPreparedAndNotSealed("openRead");
  try {
    if (!FileUtils.isValidExtFilename(name)) {
      throw new IllegalArgumentException("Invalid name: " + name);
    }
    final File target = new File(resolveStageDir(), name);
    final FileDescriptor targetFd = Os.open(target.getAbsolutePath(), O_RDONLY, 0);
    return ParcelFileDescriptor.dup(targetFd);
  } catch (ErrnoException e) {
    throw new IOException(e);
  }
}
origin: android-hacker/VirtualXposed

assertPreparedAndNotSealed("openWrite");
origin: darkskygit/VirtualApp

@Override
public String[] getNames() throws RemoteException {
  assertPreparedAndNotSealed("getNames");
  try {
    return resolveStageDir().list();
  } catch (IOException e) {
    throw new IllegalStateException(e);
  }
}
origin: bzsome/VirtualApp-x326

@Override
public String[] getNames() throws RemoteException {
  assertPreparedAndNotSealed("getNames");
  try {
    return resolveStageDir().list();
  } catch (IOException e) {
    throw new IllegalStateException(e);
  }
}
origin: bzsome/VirtualApp-x326

private ParcelFileDescriptor openReadInternal(String name) throws IOException {
  assertPreparedAndNotSealed("openRead");
  try {
    if (!FileUtils.isValidExtFilename(name)) {
      throw new IllegalArgumentException("Invalid name: " + name);
    }
    final File target = new File(resolveStageDir(), name);
    final FileDescriptor targetFd = Os.open(target.getAbsolutePath(), O_RDONLY, 0);
    return ParcelFileDescriptor.dup(targetFd);
  } catch (ErrnoException e) {
    throw new IOException(e);
  }
}
origin: darkskygit/VirtualApp

private ParcelFileDescriptor openReadInternal(String name) throws IOException {
  assertPreparedAndNotSealed("openRead");
  try {
    if (!FileUtils.isValidExtFilename(name)) {
      throw new IllegalArgumentException("Invalid name: " + name);
    }
    final File target = new File(resolveStageDir(), name);
    final FileDescriptor targetFd = Os.open(target.getAbsolutePath(), O_RDONLY, 0);
    return ParcelFileDescriptor.dup(targetFd);
  } catch (ErrnoException e) {
    throw new IOException(e);
  }
}
origin: darkskygit/VirtualApp

assertPreparedAndNotSealed("openWrite");
origin: bzsome/VirtualApp-x326

assertPreparedAndNotSealed("openWrite");
com.lody.virtual.server.pm.installerPackageInstallerSessionassertPreparedAndNotSealed

Popular methods of PackageInstallerSession

  • <init>
  • abandon
  • computeProgressLocked
  • constrain
  • createRemoveSplitMarker
  • destroyInternal
  • dispatchSessionFinished
  • generateInfo
  • getCompleteMessage
  • open
  • openReadInternal
  • openWriteInternal
  • openReadInternal,
  • openWriteInternal,
  • resolveStageDir,
  • setClientProgress,
  • setPermissionsResult,
  • validateInstallLocked

Popular in Java

  • Updating database using SQL prepared statement
  • startActivity (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSystemService (Context)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • Kernel (java.awt.image)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Top Vim 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