Tabnine Logo
VNotificationManager.dealNotificationTag
Code IndexAdd Tabnine to your IDE (free)

How to use
dealNotificationTag
method
in
com.lody.virtual.client.ipc.VNotificationManager

Best Java code snippets using com.lody.virtual.client.ipc.VNotificationManager.dealNotificationTag (Showing top 12 results out of 315)

origin: android-hacker/VirtualXposed

private void cancelNotification(int userId, int id, String pkg) {
  id = VNotificationManager.get().dealNotificationId(id, pkg, null, userId);
  String tag = VNotificationManager.get().dealNotificationTag(id, pkg, null, userId);
  nm.cancel(tag, id);
}
origin: android-hacker/VirtualXposed

  private void postNotification(int userId, int id, String pkg, Notification notification) {
    id = VNotificationManager.get().dealNotificationId(id, pkg, null, userId);
    String tag = VNotificationManager.get().dealNotificationTag(id, pkg, null, userId);
//        VNotificationManager.get().dealNotification(id, notification, pkg);
    VNotificationManager.get().addNotification(id, tag, pkg, userId);
    try {
      nm.notify(tag, id, notification);
    } catch (Throwable e) {
      e.printStackTrace();
    }
  }

origin: android-hacker/VirtualXposed

  @Override
  public Object call(Object who, Method method, Object... args) throws Throwable {
    String pkg = MethodParameterUtils.replaceFirstAppPkg(args);
    if (getHostPkg().equals(pkg)) {
      return method.invoke(who, args);
    }
    String tag = (String) args[1];
    int id = (int) args[2];
    id = VNotificationManager.get().dealNotificationId(id, pkg, tag, getAppUserId());
    tag = VNotificationManager.get().dealNotificationTag(id, pkg, tag, getAppUserId());
    args[1] = tag;
    args[2] = id;
    return method.invoke(who, args);
  }
}
origin: android-hacker/VirtualXposed

  @Override
  public Object call(Object who, Method method, Object... args) throws Throwable {
    String pkg = (String) args[0];
    if (getHostPkg().equals(pkg)) {
      return method.invoke(who, args);
    }
    int notificationIndex = ArrayUtils.indexOfFirst(args, Notification.class);
    int idIndex = ArrayUtils.indexOfFirst(args, Integer.class);
    int tagIndex = (Build.VERSION.SDK_INT >= 18 ? 2 : 1);
    int id = (int) args[idIndex];
    String tag = (String) args[tagIndex];
    id = VNotificationManager.get().dealNotificationId(id, pkg, tag, getAppUserId());
    tag = VNotificationManager.get().dealNotificationTag(id, pkg, tag, getAppUserId());
    args[idIndex] = id;
    args[tagIndex] = tag;
    //key(tag,id)
    Notification notification = (Notification) args[notificationIndex];
    if (!VNotificationManager.get().dealNotification(id, notification, pkg)) {
      return 0;
    }
    VNotificationManager.get().addNotification(id, tag, pkg, getAppUserId());
    args[0] = getHostPkg();
    if (Build.VERSION.SDK_INT >= 18 && args[1] instanceof String) {
      args[1] = getHostPkg();
    }
    return method.invoke(who, args);
  }
}
origin: darkskygit/VirtualApp

private void cancelNotification(int userId, int id, String pkg) {
  id = VNotificationManager.get().dealNotificationId(id, pkg, null, userId);
  String tag = VNotificationManager.get().dealNotificationTag(id, pkg, null, userId);
  nm.cancel(tag, id);
}
origin: bzsome/VirtualApp-x326

private void cancelNotification(int userId, int id, String pkg) {
  id = VNotificationManager.get().dealNotificationId(id, pkg, null, userId);
  String tag = VNotificationManager.get().dealNotificationTag(id, pkg, null, userId);
  nm.cancel(tag, id);
}
origin: darkskygit/VirtualApp

  private void postNotification(int userId, int id, String pkg, Notification notification) {
    id = VNotificationManager.get().dealNotificationId(id, pkg, null, userId);
    String tag = VNotificationManager.get().dealNotificationTag(id, pkg, null, userId);
//        VNotificationManager.get().dealNotification(id, notification, pkg);
    VNotificationManager.get().addNotification(id, tag, pkg, userId);
    try {
      nm.notify(tag, id, notification);
    } catch (Throwable e) {
      e.printStackTrace();
    }
  }

origin: bzsome/VirtualApp-x326

  private void postNotification(int userId, int id, String pkg, Notification notification) {
    id = VNotificationManager.get().dealNotificationId(id, pkg, null, userId);
    String tag = VNotificationManager.get().dealNotificationTag(id, pkg, null, userId);
//        VNotificationManager.get().dealNotification(id, notification, pkg);
    VNotificationManager.get().addNotification(id, tag, pkg, userId);
    try {
      nm.notify(tag, id, notification);
    } catch (Throwable e) {
      e.printStackTrace();
    }
  }

origin: bzsome/VirtualApp-x326

  @Override
  public Object call(Object who, Method method, Object... args) throws Throwable {
    String pkg = MethodParameterUtils.replaceFirstAppPkg(args);
    if (getHostPkg().equals(pkg)) {
      return method.invoke(who, args);
    }
    String tag = (String) args[1];
    int id = (int) args[2];
    id = VNotificationManager.get().dealNotificationId(id, pkg, tag, getAppUserId());
    tag = VNotificationManager.get().dealNotificationTag(id, pkg, tag, getAppUserId());
    args[1] = tag;
    args[2] = id;
    return method.invoke(who, args);
  }
}
origin: darkskygit/VirtualApp

  @Override
  public Object call(Object who, Method method, Object... args) throws Throwable {
    String pkg = MethodParameterUtils.replaceFirstAppPkg(args);
    if (getHostPkg().equals(pkg)) {
      return method.invoke(who, args);
    }
    String tag = (String) args[1];
    int id = (int) args[2];
    id = VNotificationManager.get().dealNotificationId(id, pkg, tag, getAppUserId());
    tag = VNotificationManager.get().dealNotificationTag(id, pkg, tag, getAppUserId());
    args[1] = tag;
    args[2] = id;
    return method.invoke(who, args);
  }
}
origin: bzsome/VirtualApp-x326

  @Override
  public Object call(Object who, Method method, Object... args) throws Throwable {
    String pkg = (String) args[0];
    if (getHostPkg().equals(pkg)) {
      return method.invoke(who, args);
    }
    int notificationIndex = ArrayUtils.indexOfFirst(args, Notification.class);
    int idIndex = ArrayUtils.indexOfFirst(args, Integer.class);
    int tagIndex = (Build.VERSION.SDK_INT >= 18 ? 2 : 1);
    int id = (int) args[idIndex];
    String tag = (String) args[tagIndex];
    id = VNotificationManager.get().dealNotificationId(id, pkg, tag, getAppUserId());
    tag = VNotificationManager.get().dealNotificationTag(id, pkg, tag, getAppUserId());
    args[idIndex] = id;
    args[tagIndex] = tag;
    //key(tag,id)
    Notification notification = (Notification) args[notificationIndex];
    if (!VNotificationManager.get().dealNotification(id, notification, pkg)) {
      return 0;
    }
    VNotificationManager.get().addNotification(id, tag, pkg, getAppUserId());
    args[0] = getHostPkg();
    if (Build.VERSION.SDK_INT >= 18 && args[1] instanceof String) {
      args[1] = getHostPkg();
    }
    return method.invoke(who, args);
  }
}
origin: darkskygit/VirtualApp

  @Override
  public Object call(Object who, Method method, Object... args) throws Throwable {
    String pkg = (String) args[0];
    if (getHostPkg().equals(pkg)) {
      return method.invoke(who, args);
    }
    int notificationIndex = ArrayUtils.indexOfFirst(args, Notification.class);
    int idIndex = ArrayUtils.indexOfFirst(args, Integer.class);
    int tagIndex = (Build.VERSION.SDK_INT >= 18 ? 2 : 1);
    int id = (int) args[idIndex];
    String tag = (String) args[tagIndex];
    id = VNotificationManager.get().dealNotificationId(id, pkg, tag, getAppUserId());
    tag = VNotificationManager.get().dealNotificationTag(id, pkg, tag, getAppUserId());
    args[idIndex] = id;
    args[tagIndex] = tag;
    //key(tag,id)
    Notification notification = (Notification) args[notificationIndex];
    if (!VNotificationManager.get().dealNotification(id, notification, pkg)) {
      return 0;
    }
    VNotificationManager.get().addNotification(id, tag, pkg, getAppUserId());
    args[0] = getHostPkg();
    if (Build.VERSION.SDK_INT >= 18 && args[1] instanceof String) {
      args[1] = getHostPkg();
    }
    return method.invoke(who, args);
  }
}
com.lody.virtual.client.ipcVNotificationManagerdealNotificationTag

Popular methods of VNotificationManager

  • addNotification
  • areNotificationsEnabledForPackage
  • cancelAllNotification
  • dealNotification
  • dealNotificationId
  • get
  • getService
  • setNotificationsEnabledForPackage

Popular in Java

  • Creating JSON documents from java classes using gson
  • onCreateOptionsMenu (Activity)
  • addToBackStack (FragmentTransaction)
  • onRequestPermissionsResult (Fragment)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Best plugins for Eclipse
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