congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
RemoteViewsFixer
Code IndexAdd Tabnine to your IDE (free)

How to use
RemoteViewsFixer
in
com.lody.virtual.server.notification

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

origin: android-hacker/VirtualXposed

NotificationCompatCompatV14() {
  super();
  mRemoteViewsFixer = new RemoteViewsFixer(this);
}
origin: android-hacker/VirtualXposed

  return null;
Context base = mNotificationCompat.getHostContext();
init(base);
VLog.v(TAG, "createView:big=" + isBig + ",system=" + systemId);
VLog.v(TAG, "createView:apply");
View view1 = apply(context, remoteViews);
if (view1 instanceof ViewGroup) {
  VLog.v(TAG, "createView:fixTextView");
  fixTextView((ViewGroup) view1);
origin: android-hacker/VirtualXposed

View cache = toView(pluginContext, contentView, isBig, systemId);
final Bitmap bmp = createBitmap(cache);
if (bmp == null) {
  VLog.e(TAG, "bmp is null,contentView=" + contentView);
    try {
      pendIntentCompat.setPendIntent(remoteViews,
          toView(mNotificationCompat.getHostContext(), remoteViews, isBig, systemId),
          cache);
    } catch (Exception e) {
origin: android-hacker/VirtualXposed

private void fixTextView(ViewGroup viewGroup) {
  int count = viewGroup.getChildCount();
  for (int i = 0; i < count; i++) {
    View v = viewGroup.getChildAt(i);
    if (v instanceof TextView) {
      TextView tv = (TextView) v;
      if (isSingleLine(tv)) {
        tv.setSingleLine(false);
        tv.setMaxLines(1);
      }
    } else if (v instanceof ViewGroup) {
      fixTextView((ViewGroup) v);
    }
  }
}
origin: android-hacker/VirtualXposed

View toView(final Context context, RemoteViews remoteViews, boolean isBig, boolean systemId) {
  View mCache = null;
  try {
    mCache = createView(context, remoteViews, isBig, systemId);
  } catch (Throwable throwable) {
    VLog.w(TAG, "toView 1", throwable);
    try {
      mCache = LayoutInflater.from(context).inflate(remoteViews.getLayoutId(), null);
    } catch (Throwable e) {
      VLog.w(TAG, "toView 2", e);
    }
  }
  return mCache;
}
origin: android-hacker/VirtualXposed

  notification_side_padding = 0;
} else {
  notification_side_padding = getDimem(context, systemUi, "notification_side_padding",
      R.dimen.notification_side_padding);
notification_panel_width = getDimem(context, systemUi, "notification_panel_width",
    R.dimen.notification_panel_width);
if (notification_panel_width <= 0) {
  notification_panel_width = context.getResources().getDisplayMetrics().widthPixels;
notification_min_height = getDimem(context, systemUi, "notification_min_height",
    R.dimen.notification_min_height);
notification_max_height = getDimem(context, systemUi, "notification_max_height",
    R.dimen.notification_max_height);
notification_mid_height = getDimem(context, systemUi, "notification_mid_height",
    R.dimen.notification_mid_height);
notification_padding = getDimem(context, systemUi, "notification_padding", R.dimen.notification_padding);
origin: android-hacker/VirtualXposed

  getNotificationFixer().fixRemoteViewActions(appContext, false, notification.tickerView);
} else {
  notification.tickerView = getRemoteViewsFixer().makeRemoteViews(id + ":tickerView", appContext,
      notification.tickerView, false, false);
  getNotificationFixer().fixIconImage(appContext.getResources(), notification.contentView, hasIconBitmap, notification);
} else {
  notification.contentView = getRemoteViewsFixer().makeRemoteViews(id + ":contentView", appContext,
      notification.contentView, false, true);
    getNotificationFixer().fixRemoteViewActions(appContext, false, notification.bigContentView);
  } else {
    notification.bigContentView = getRemoteViewsFixer().makeRemoteViews(id + ":bigContentView", appContext,
        notification.bigContentView, true, true);
    getNotificationFixer().fixIconImage(appContext.getResources(), notification.contentView, hasIconBitmap, notification);
  } else {
    notification.headsUpContentView = getRemoteViewsFixer().makeRemoteViews(id + ":headsUpContentView", appContext,
        notification.headsUpContentView, false, false);
origin: bzsome/VirtualApp-x326

private void fixTextView(ViewGroup viewGroup) {
  int count = viewGroup.getChildCount();
  for (int i = 0; i < count; i++) {
    View v = viewGroup.getChildAt(i);
    if (v instanceof TextView) {
      TextView tv = (TextView) v;
      if (isSingleLine(tv)) {
        tv.setSingleLine(false);
        tv.setMaxLines(1);
      }
    } else if (v instanceof ViewGroup) {
      fixTextView((ViewGroup) v);
    }
  }
}
origin: bzsome/VirtualApp-x326

View toView(final Context context, RemoteViews remoteViews, boolean isBig, boolean systemId) {
  View mCache = null;
  try {
    mCache = createView(context, remoteViews, isBig, systemId);
  } catch (Throwable throwable) {
    VLog.w(TAG, "toView 1", throwable);
    try {
      mCache = LayoutInflater.from(context).inflate(remoteViews.getLayoutId(), null);
    } catch (Throwable e) {
      VLog.w(TAG, "toView 2", e);
    }
  }
  return mCache;
}
origin: darkskygit/VirtualApp

  notification_side_padding = 0;
} else {
  notification_side_padding = getDimem(context, systemUi, "notification_side_padding",
      R.dimen.notification_side_padding);
notification_panel_width = getDimem(context, systemUi, "notification_panel_width",
    R.dimen.notification_panel_width);
if (notification_panel_width <= 0) {
  notification_panel_width = context.getResources().getDisplayMetrics().widthPixels;
notification_min_height = getDimem(context, systemUi, "notification_min_height",
    R.dimen.notification_min_height);
notification_max_height = getDimem(context, systemUi, "notification_max_height",
    R.dimen.notification_max_height);
notification_mid_height = getDimem(context, systemUi, "notification_mid_height",
    R.dimen.notification_mid_height);
notification_padding = getDimem(context, systemUi, "notification_padding", R.dimen.notification_padding);
origin: darkskygit/VirtualApp

  getNotificationFixer().fixRemoteViewActions(appContext, false, notification.tickerView);
} else {
  notification.tickerView = getRemoteViewsFixer().makeRemoteViews(id + ":tickerView", appContext,
      notification.tickerView, false, false);
  getNotificationFixer().fixIconImage(appContext.getResources(), notification.contentView, hasIconBitmap, notification);
} else {
  notification.contentView = getRemoteViewsFixer().makeRemoteViews(id + ":contentView", appContext,
      notification.contentView, false, true);
    getNotificationFixer().fixRemoteViewActions(appContext, false, notification.bigContentView);
  } else {
    notification.bigContentView = getRemoteViewsFixer().makeRemoteViews(id + ":bigContentView", appContext,
        notification.bigContentView, true, true);
    getNotificationFixer().fixIconImage(appContext.getResources(), notification.contentView, hasIconBitmap, notification);
  } else {
    notification.headsUpContentView = getRemoteViewsFixer().makeRemoteViews(id + ":headsUpContentView", appContext,
        notification.headsUpContentView, false, false);
origin: darkskygit/VirtualApp

  return null;
Context base = mNotificationCompat.getHostContext();
init(base);
VLog.v(TAG, "createView:big=" + isBig + ",system=" + systemId);
VLog.v(TAG, "createView:apply");
View view1 = apply(context, remoteViews);
if (view1 instanceof ViewGroup) {
  VLog.v(TAG, "createView:fixTextView");
  fixTextView((ViewGroup) view1);
origin: darkskygit/VirtualApp

private void fixTextView(ViewGroup viewGroup) {
  int count = viewGroup.getChildCount();
  for (int i = 0; i < count; i++) {
    View v = viewGroup.getChildAt(i);
    if (v instanceof TextView) {
      TextView tv = (TextView) v;
      if (isSingleLine(tv)) {
        tv.setSingleLine(false);
        tv.setMaxLines(1);
      }
    } else if (v instanceof ViewGroup) {
      fixTextView((ViewGroup) v);
    }
  }
}
origin: bzsome/VirtualApp-x326

View cache = toView(pluginContext, contentView, isBig, systemId);
final Bitmap bmp = createBitmap(cache);
if (bmp == null) {
  VLog.e(TAG, "bmp is null,contentView=" + contentView);
    try {
      pendIntentCompat.setPendIntent(remoteViews,
          toView(mNotificationCompat.getHostContext(), remoteViews, isBig, systemId),
          cache);
    } catch (Exception e) {
origin: darkskygit/VirtualApp

NotificationCompatCompatV14() {
  super();
  mRemoteViewsFixer = new RemoteViewsFixer(this);
}
origin: darkskygit/VirtualApp

View toView(final Context context, RemoteViews remoteViews, boolean isBig, boolean systemId) {
  View mCache = null;
  try {
    mCache = createView(context, remoteViews, isBig, systemId);
  } catch (Throwable throwable) {
    VLog.w(TAG, "toView 1", throwable);
    try {
      mCache = LayoutInflater.from(context).inflate(remoteViews.getLayoutId(), null);
    } catch (Throwable e) {
      VLog.w(TAG, "toView 2", e);
    }
  }
  return mCache;
}
origin: bzsome/VirtualApp-x326

  notification_side_padding = 0;
} else {
  notification_side_padding = getDimem(context, systemUi, "notification_side_padding",
      R.dimen.notification_side_padding);
notification_panel_width = getDimem(context, systemUi, "notification_panel_width",
    R.dimen.notification_panel_width);
if (notification_panel_width <= 0) {
  notification_panel_width = context.getResources().getDisplayMetrics().widthPixels;
notification_min_height = getDimem(context, systemUi, "notification_min_height",
    R.dimen.notification_min_height);
notification_max_height = getDimem(context, systemUi, "notification_max_height",
    R.dimen.notification_max_height);
notification_mid_height = getDimem(context, systemUi, "notification_mid_height",
    R.dimen.notification_mid_height);
notification_padding = getDimem(context, systemUi, "notification_padding", R.dimen.notification_padding);
origin: bzsome/VirtualApp-x326

  getNotificationFixer().fixRemoteViewActions(appContext, false, notification.tickerView);
} else {
  notification.tickerView = getRemoteViewsFixer().makeRemoteViews(id + ":tickerView", appContext,
      notification.tickerView, false, false);
  getNotificationFixer().fixIconImage(appContext.getResources(), notification.contentView, hasIconBitmap, notification);
} else {
  notification.contentView = getRemoteViewsFixer().makeRemoteViews(id + ":contentView", appContext,
      notification.contentView, false, true);
    getNotificationFixer().fixRemoteViewActions(appContext, false, notification.bigContentView);
  } else {
    notification.bigContentView = getRemoteViewsFixer().makeRemoteViews(id + ":bigContentView", appContext,
        notification.bigContentView, true, true);
    getNotificationFixer().fixIconImage(appContext.getResources(), notification.contentView, hasIconBitmap, notification);
  } else {
    notification.headsUpContentView = getRemoteViewsFixer().makeRemoteViews(id + ":headsUpContentView", appContext,
        notification.headsUpContentView, false, false);
origin: bzsome/VirtualApp-x326

  return null;
Context base = mNotificationCompat.getHostContext();
init(base);
VLog.v(TAG, "createView:big=" + isBig + ",system=" + systemId);
VLog.v(TAG, "createView:apply");
View view1 = apply(context, remoteViews);
if (view1 instanceof ViewGroup) {
  VLog.v(TAG, "createView:fixTextView");
  fixTextView((ViewGroup) view1);
origin: darkskygit/VirtualApp

View cache = toView(pluginContext, contentView, isBig, systemId);
final Bitmap bmp = createBitmap(cache);
if (bmp == null) {
  VLog.e(TAG, "bmp is null,contentView=" + contentView);
    try {
      pendIntentCompat.setPendIntent(remoteViews,
          toView(mNotificationCompat.getHostContext(), remoteViews, isBig, systemId),
          cache);
    } catch (Exception e) {
com.lody.virtual.server.notificationRemoteViewsFixer

Most used methods

  • <init>
  • apply
  • createBitmap
  • createView
  • fixTextView
  • getDimem
  • init
  • isSingleLine
  • makeRemoteViews
  • toView

Popular in Java

  • Reactive rest calls using spring rest template
  • getContentResolver (Context)
  • putExtra (Intent)
  • getApplicationContext (Context)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • JFrame (javax.swing)
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • From CI to AI: The AI layer in your organization
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