Codota Logo
VNotificationManager.dealNotificationTag
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Gson g =
  • Codota Iconnew Gson()
  • Codota IconGsonBuilder gsonBuilder;gsonBuilder.create()
  • Codota Iconnew GsonBuilder().create()
  • Smart code suggestions by Codota
}
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
  • getSystemService (Context)
  • getContentResolver (Context)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • FileWriter (java.io)
    Convenience class for writing character files. The constructors of this class assume that the defaul
  • URI (java.net)
    Represents a Uniform Resource Identifier (URI) reference. Aside from some minor deviations noted bel
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
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