Codota Logo
VJobSchedulerService$JobConfig
Code IndexAdd Codota to your IDE (free)

How to use
VJobSchedulerService$JobConfig
in
com.lody.virtual.server.job

Best Java code snippets using com.lody.virtual.server.job.VJobSchedulerService$JobConfig (Showing top 9 results out of 315)

  • Common ways to obtain VJobSchedulerService$JobConfig
private void myMethod () {
VJobSchedulerService$JobConfig v =
  • Codota IconParcel in;new JobConfig(in)
  • Codota IconComponentName componentName;JobInfo jobInfo;new JobConfig(mGlobalJobId++, componentName.getClassName(), jobInfo.getExtras())
  • Smart code suggestions by Codota
}
origin: android-hacker/VirtualXposed

@Override
public int schedule(JobInfo job) throws RemoteException {
  int vuid = VBinder.getCallingUid();
  int id = job.getId();
  ComponentName service = job.getService();
  JobId jobId = new JobId(vuid, service.getPackageName(), id);
  JobConfig config = mJobStore.get(jobId);
  if (config == null) {
    config = new JobConfig(mGlobalJobId++, service.getClassName(), job.getExtras());
    mJobStore.put(jobId, config);
  } else {
    config.serviceName = service.getClassName();
    config.extras = job.getExtras();
  }
  saveJobs();
  mirror.android.app.job.JobInfo.jobId.set(job, config.virtualJobId);
  mirror.android.app.job.JobInfo.service.set(job, mJobProxyComponent);
  return mScheduler.schedule(job);
}
origin: android-hacker/VirtualXposed

private void saveJobs() {
  File jobFile = VEnvironment.getJobConfigFile();
  Parcel p = Parcel.obtain();
  try {
    p.writeInt(JOB_FILE_VERSION);
    p.writeInt(mJobStore.size());
    for (Map.Entry<JobId, JobConfig> entry : mJobStore.entrySet()) {
      entry.getKey().writeToParcel(p, 0);
      entry.getValue().writeToParcel(p, 0);
    }
    FileOutputStream fos = new FileOutputStream(jobFile);
    fos.write(p.marshall());
    fos.close();
  } catch (Exception e) {
    e.printStackTrace();
  } finally {
    p.recycle();
  }
}
origin: android-hacker/VirtualXposed

for (int i = 0; i < count; i++) {
  JobId jobId = new JobId(p);
  JobConfig config = new JobConfig(p);
  mJobStore.put(jobId, config);
  mGlobalJobId = Math.max(mGlobalJobId, config.virtualJobId);
origin: darkskygit/VirtualApp

@Override
public int schedule(JobInfo job) throws RemoteException {
  int vuid = VBinder.getCallingUid();
  int id = job.getId();
  ComponentName service = job.getService();
  JobId jobId = new JobId(vuid, service.getPackageName(), id);
  JobConfig config = mJobStore.get(jobId);
  if (config == null) {
    config = new JobConfig(mGlobalJobId++, service.getClassName(), job.getExtras());
    mJobStore.put(jobId, config);
  } else {
    config.serviceName = service.getClassName();
    config.extras = job.getExtras();
  }
  saveJobs();
  mirror.android.app.job.JobInfo.jobId.set(job, config.virtualJobId);
  mirror.android.app.job.JobInfo.service.set(job, mJobProxyComponent);
  return mScheduler.schedule(job);
}
origin: bzsome/VirtualApp-x326

@Override
public int schedule(JobInfo job) {
  int vuid = VBinder.getCallingUid();
  int id = job.getId();
  ComponentName service = job.getService();
  JobId jobId = new JobId(vuid, service.getPackageName(), id);
  JobConfig config = mJobStore.get(jobId);
  if (config == null) {
    config = new JobConfig(mGlobalJobId++, service.getClassName(), job.getExtras());
    mJobStore.put(jobId, config);
  } else {
    config.serviceName = service.getClassName();
    config.extras = job.getExtras();
  }
  saveJobs();
  mirror.android.app.job.JobInfo.jobId.set(job, config.virtualJobId);
  mirror.android.app.job.JobInfo.service.set(job, mJobProxyComponent);
  return mScheduler.schedule(job);
}
origin: darkskygit/VirtualApp

private void saveJobs() {
  File jobFile = VEnvironment.getJobConfigFile();
  Parcel p = Parcel.obtain();
  try {
    p.writeInt(JOB_FILE_VERSION);
    p.writeInt(mJobStore.size());
    for (Map.Entry<JobId, JobConfig> entry : mJobStore.entrySet()) {
      entry.getKey().writeToParcel(p, 0);
      entry.getValue().writeToParcel(p, 0);
    }
    FileOutputStream fos = new FileOutputStream(jobFile);
    fos.write(p.marshall());
    fos.close();
  } catch (Exception e) {
    e.printStackTrace();
  } finally {
    p.recycle();
  }
}
origin: bzsome/VirtualApp-x326

private void saveJobs() {
  File jobFile = VEnvironment.getJobConfigFile();
  Parcel p = Parcel.obtain();
  try {
    p.writeInt(JOB_FILE_VERSION);
    p.writeInt(mJobStore.size());
    for (Map.Entry<JobId, JobConfig> entry : mJobStore.entrySet()) {
      entry.getKey().writeToParcel(p, 0);
      entry.getValue().writeToParcel(p, 0);
    }
    FileOutputStream fos = new FileOutputStream(jobFile);
    fos.write(p.marshall());
    fos.close();
  } catch (Exception e) {
    e.printStackTrace();
  } finally {
    p.recycle();
  }
}
origin: darkskygit/VirtualApp

for (int i = 0; i < count; i++) {
  JobId jobId = new JobId(p);
  JobConfig config = new JobConfig(p);
  mJobStore.put(jobId, config);
  mGlobalJobId = Math.max(mGlobalJobId, config.virtualJobId);
origin: bzsome/VirtualApp-x326

for (int i = 0; i < count; i++) {
  JobId jobId = new JobId(p);
  JobConfig config = new JobConfig(p);
  mJobStore.put(jobId, config);
  mGlobalJobId = Math.max(mGlobalJobId, config.virtualJobId);
com.lody.virtual.server.jobVJobSchedulerService$JobConfig

Most used methods

  • <init>
  • writeToParcel

Popular in Java

  • Reactive rest calls using spring rest template
  • addToBackStack (FragmentTransaction)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • putExtra (Intent)
  • InputStreamReader (java.io)
    An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • DecimalFormat (java.text)
    DecimalFormat is a concrete subclass ofNumberFormat that formats decimal numbers. It has a variety o
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.This exception may include information for locating the er
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now