Tabnine Logo
com.lody.virtual.server.am
Code IndexAdd Tabnine to your IDE (free)

How to use com.lody.virtual.server.am

Best Java code snippets using com.lody.virtual.server.am (Showing top 20 results out of 315)

origin: android-hacker/VirtualXposed

private BroadcastSystem(Context context, VActivityManagerService ams, VAppManagerService app) {
  this.mContext = context;
  this.mApp = app;
  this.mAMS = ams;
  mScheduler = new StaticScheduler();
  mTimeoutHandler = new TimeoutHandler();
  fuckHuaWeiVerifier();
}
origin: android-hacker/VirtualXposed

private Intent[] startActivitiesProcess(int userId, Intent[] intents, ActivityInfo[] infos, ActivityRecord resultTo) {
  Intent[] destIntents = new Intent[intents.length];
  for (int i = 0; i < intents.length; i++) {
    destIntents[i] = startActivityProcess(userId, resultTo, intents[i], infos[i]);
  }
  return destIntents;
}
origin: android-hacker/VirtualXposed

private ServiceRecord findRecordLocked(IServiceConnection connection) {
  synchronized (mHistory) {
    for (ServiceRecord r : mHistory) {
      if (r.containConnection(connection)) {
        return r;
      }
    }
    return null;
  }
}
origin: android-hacker/VirtualXposed

void addToBoundIntent(Intent intent, IServiceConnection connection) {
  IntentBindRecord record = peekBinding(intent);
  if (record == null) {
    record = new IntentBindRecord();
    record.intent = intent;
    synchronized (bindings) {
      bindings.add(record);
    }
  }
  record.addConnection(connection);
}
origin: android-hacker/VirtualXposed

@Override
public void onActivityCreated(ComponentName component, ComponentName caller, IBinder token, Intent intent, String affinity, int taskId, int launchMode, int flags) {
  int pid = Binder.getCallingPid();
  ProcessRecord targetApp = findProcessLocked(pid);
  if (targetApp != null) {
    mMainStack.onActivityCreated(targetApp, component, caller, token, intent, affinity, taskId, launchMode, flags);
  }
}
origin: android-hacker/VirtualXposed

ComponentName getCallingActivity(int userId, IBinder token) {
  synchronized (mHistory) {
    ActivityRecord r = findActivityByToken(userId, token);
    if (r != null) {
      return r.caller != null ? r.caller : r.component;
    }
    return null;
  }
}
origin: android-hacker/VirtualXposed

@Override
public ComponentName startService(IBinder caller, Intent service, String resolvedType, int userId) {
  synchronized (this) {
    return startServiceCommon(service, true, userId);
  }
}
origin: android-hacker/VirtualXposed

@Override
public int initProcess(String packageName, String processName, int userId) {
  synchronized (this) {
    ProcessRecord r = startProcessIfNeedLocked(processName, userId, packageName);
    return r != null ? r.vpid : -1;
  }
}
origin: android-hacker/VirtualXposed

public boolean containConnection(IServiceConnection connection) {
  for (IntentBindRecord record : bindings) {
    if (record.containConnection(connection)) {
      return true;
    }
  }
  return false;
}
origin: android-hacker/VirtualXposed

@Override
public boolean isAppPid(int pid) {
  synchronized (mPidsSelfLocked) {
    return findProcessLocked(pid) != null;
  }
}
origin: android-hacker/VirtualXposed

/**
 * Should guard by {@link VActivityManagerService#mProcessNames}
 *
 * @param uid vuid
 */
public ProcessRecord findProcessLocked(String processName, int uid) {
  return mProcessNames.get(processName, uid);
}
origin: android-hacker/VirtualXposed

public static void init(Context context) {
  if (sInstance == null) {
    sInstance = new AttributeCache(context);
  }
}
origin: android-hacker/VirtualXposed

@Override
public void unbindFinished(IBinder token, Intent service, boolean doRebind, int userId) {
  synchronized (this) {
    ServiceRecord r = (ServiceRecord) token;
    if (r != null) {
      ServiceRecord.IntentBindRecord boundRecord = r.peekBinding(service);
      if (boundRecord != null) {
        boundRecord.doRebind = doRebind;
      }
    }
  }
}
origin: android-hacker/VirtualXposed

@Override
public String getPackageForIntentSender(IBinder binder) {
  PendingIntentData data = mPendingIntents.getPendingIntent(binder);
  if (data != null) {
    return data.creator;
  }
  return null;
}
origin: android-hacker/VirtualXposed

@Override
public int startActivity(Intent intent, ActivityInfo info, IBinder resultTo, Bundle options, String resultWho, int requestCode, int userId) {
  synchronized (this) {
    return mMainStack.startActivityLocked(userId, intent, info, resultTo, options, resultWho, requestCode);
  }
}
origin: android-hacker/VirtualXposed

@Override
public boolean onActivityDestroyed(int userId, IBinder token) {
  ActivityRecord r = mMainStack.onActivityDestroyed(userId, token);
  return r != null;
}
origin: android-hacker/VirtualXposed

@Override
public boolean stopServiceToken(ComponentName className, IBinder token, int startId, int userId) {
  synchronized (this) {
    ServiceRecord r = (ServiceRecord) token;
    if (r != null && (r.startId == startId || startId == -1)) {
      stopServiceCommon(r, className);
      return true;
    }
    return false;
  }
}
origin: android-hacker/VirtualXposed

@Override
public String getPackageForToken(int userId, IBinder token) {
  return mMainStack.getPackageForToken(userId, token);
}
origin: android-hacker/VirtualXposed

@Override
public boolean isAppProcess(String processName) {
  return parseVPid(processName) != -1;
}
origin: android-hacker/VirtualXposed

ComponentName getActivityClassForToken(int userId, IBinder token) {
  synchronized (mHistory) {
    ActivityRecord r = findActivityByToken(userId, token);
    if (r != null) {
      return r.component;
    }
    return null;
  }
}
com.lody.virtual.server.am

Most used classes

  • ActivityRecord
  • ActivityStack
  • AttributeCache$Entry
  • AttributeCache$Package
  • AttributeCache
    TODO: This should be better integrated into the system so it doesn't need special calls from the act
  • BroadcastSystem$StaticBroadcastReceiver,
  • BroadcastSystem$StaticScheduler,
  • BroadcastSystem$TimeoutHandler,
  • BroadcastSystem,
  • PendingIntents,
  • ProcessMap,
  • ProcessRecord,
  • ServiceRecord$DeathRecipient,
  • ServiceRecord$IntentBindRecord,
  • ServiceRecord,
  • TaskRecord,
  • UidSystem,
  • VActivityManagerService
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