android.app.ITransientNotification Java Examples

The following examples show how to use android.app.ITransientNotification. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: NotificationManagerNativeWorker.java    From GPT with Apache License 2.0 4 votes vote down vote up
public void enqueueToast(String pkg, ITransientNotification callback, int duration) {
    // android 5.0 需要替换为 host app 的 pkgname, 要不然 Ops manager 会禁止
    mTarget.enqueueToast(mHostContext.getPackageName(), callback, duration);
}
 
Example #2
Source File: NotificationManagerNativeWorker.java    From GPT with Apache License 2.0 4 votes vote down vote up
void enqueueToastUnrepeated(String pkg, ITransientNotification callback, CharSequence localObject, int duration) {
    // 兼容MX4 4.4.2的某个ROM,系统修改了这个方法名字,需要替换成host app的pkg, 要不然 Ops manager 会禁止
    mTarget.enqueueToastUnrepeated(mHostContext.getPackageName(), callback, localObject, duration);
}
 
Example #3
Source File: NotificationManagerNativeWorker.java    From GPT with Apache License 2.0 4 votes vote down vote up
public void cancelToast(String pkg, ITransientNotification callback) {
    // android 5.0 需要替换为 host app 的 pkgname, 要不然 Ops manager 会禁止
    mTarget.cancelToast(mHostContext.getPackageName(), callback);
}