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

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

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

origin: android-hacker/VirtualXposed

private void computeProgressLocked(boolean forcePublish) {
  mProgress = constrain(mClientProgress * 0.8f, 0f, 0.8f)
      + constrain(mInternalProgress * 0.2f, 0f, 0.2f);
  // Only publish when meaningful change
  if (forcePublish || Math.abs(mProgress - mReportedProgress) >= 0.01) {
    mReportedProgress = mProgress;
    mCallback.onSessionProgressChanged(this, mProgress);
  }
}
origin: darkskygit/VirtualApp

private void computeProgressLocked(boolean forcePublish) {
  mProgress = constrain(mClientProgress * 0.8f, 0f, 0.8f)
      + constrain(mInternalProgress * 0.2f, 0f, 0.2f);
  // Only publish when meaningful change
  if (forcePublish || Math.abs(mProgress - mReportedProgress) >= 0.01) {
    mReportedProgress = mProgress;
    mCallback.onSessionProgressChanged(this, mProgress);
  }
}
origin: bzsome/VirtualApp-x326

private void computeProgressLocked(boolean forcePublish) {
  mProgress = constrain(mClientProgress * 0.8f, 0f, 0.8f)
      + constrain(mInternalProgress * 0.2f, 0f, 0.2f);
  // Only publish when meaningful change
  if (forcePublish || Math.abs(mProgress - mReportedProgress) >= 0.01) {
    mReportedProgress = mProgress;
    mCallback.onSessionProgressChanged(this, mProgress);
  }
}
com.lody.virtual.server.pm.installerPackageInstallerSessionconstrain

Popular methods of PackageInstallerSession

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

Popular in Java

  • Updating database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • startActivity (Activity)
  • onRequestPermissionsResult (Fragment)
  • 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
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • String (java.lang)
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Top plugins for WebStorm
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