Tabnine Logo
AtomicFile.delete
Code IndexAdd Tabnine to your IDE (free)

How to use
delete
method
in
com.lody.virtual.helper.utils.AtomicFile

Best Java code snippets using com.lody.virtual.helper.utils.AtomicFile.delete (Showing top 3 results out of 315)

origin: android-hacker/VirtualXposed

private void removeUserStateLocked(int userHandle) {
  // Cleanup package manager settings
  mPm.cleanUpUser(userHandle);
  // Remove this user from the list
  mUsers.remove(userHandle);
  mRemovingUserIds.remove(userHandle);
  // Remove user file
  AtomicFile userFile = new AtomicFile(new File(mUsersDir, userHandle + ".xml"));
  userFile.delete();
  // Update the user list
  writeUserListLocked();
  updateUserIdsLocked();
  removeDirectoryRecursive(VEnvironment.getUserSystemDirectory(userHandle));
}
origin: bzsome/VirtualApp-x326

private void removeUserStateLocked(int userHandle) {
  // Cleanup package manager settings
  mPm.cleanUpUser(userHandle);
  // Remove this user from the list
  mUsers.remove(userHandle);
  mRemovingUserIds.remove(userHandle);
  // Remove user file
  AtomicFile userFile = new AtomicFile(new File(mUsersDir, userHandle + ".xml"));
  userFile.delete();
  // Update the user list
  writeUserListLocked();
  updateUserIdsLocked();
  removeDirectoryRecursive(VEnvironment.getUserSystemDirectory(userHandle));
}
origin: darkskygit/VirtualApp

private void removeUserStateLocked(int userHandle) {
  // Cleanup package manager settings
  mPm.cleanUpUser(userHandle);
  // Remove this user from the list
  mUsers.remove(userHandle);
  mRemovingUserIds.remove(userHandle);
  // Remove user file
  AtomicFile userFile = new AtomicFile(new File(mUsersDir, userHandle + ".xml"));
  userFile.delete();
  // Update the user list
  writeUserListLocked();
  updateUserIdsLocked();
  removeDirectoryRecursive(VEnvironment.getUserSystemDirectory(userHandle));
}
com.lody.virtual.helper.utilsAtomicFiledelete

Javadoc

Delete the atomic file. This deletes both the base and backup files.

Popular methods of AtomicFile

  • <init>
    Create a new AtomicFile for a file located at the given File path. The secondary backup file will be
  • failWrite
    Call when you have failed for some reason at writing to the stream returned by #startWrite(). This w
  • finishWrite
    Call when you have successfully finished writing to the stream returned by #startWrite(). This will
  • openRead
    Open the atomic file for reading. If there previously was an incomplete write, this will roll back t
  • startWrite
    Start a new write operation on the file. This returns a FileOutputStream to which you can write the
  • sync

Popular in Java

  • Finding current android device location
  • scheduleAtFixedRate (Timer)
  • notifyDataSetChanged (ArrayAdapter)
  • requestLocationUpdates (LocationManager)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • 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