Tabnine Logo
AssistStructure$ViewNode.isEnabled
Code IndexAdd Tabnine to your IDE (free)

How to use
isEnabled
method
in
android.app.assist.AssistStructure$ViewNode

Best Java code snippets using android.app.assist.AssistStructure$ViewNode.isEnabled (Showing top 3 results out of 315)

origin: commonsguy/cw-omnibus

 wrap(node.isContextClickable()));
json.put("elevation", wrap(node.getElevation()));
json.put("enabled", wrap(node.isEnabled()));
origin: commonsguy/cw-omnibus

 wrap(node.isContextClickable()));
json.put("elevation", wrap(node.getElevation()));
json.put("enabled", wrap(node.isEnabled()));
origin: googlesamples/android-AutofillFramework

/**
 * Uses heuristics to infer an autofill hint from a {@code string}.
 *
 * @return standard autofill hint, or {@code null} when it could not be inferred.
 */
@Nullable
protected String inferHint(ViewNode node, @Nullable String actualHint) {
  if (actualHint == null) return null;
  String hint = actualHint.toLowerCase();
  if (hint.contains("label") || hint.contains("container")) {
    Log.v(TAG, "Ignoring 'label/container' hint: " + hint);
    return null;
  }
  if (hint.contains("password")) return View.AUTOFILL_HINT_PASSWORD;
  if (hint.contains("username")
      || (hint.contains("login") && hint.contains("id")))
    return View.AUTOFILL_HINT_USERNAME;
  if (hint.contains("email")) return View.AUTOFILL_HINT_EMAIL_ADDRESS;
  if (hint.contains("name")) return View.AUTOFILL_HINT_NAME;
  if (hint.contains("phone")) return View.AUTOFILL_HINT_PHONE;
  // When everything else fails, return the full string - this is helpful to help app
  // developers visualize when autofill is triggered when it shouldn't (for example, in a
  // chat conversation window), so they can mark the root view of such activities with
  // android:importantForAutofill=noExcludeDescendants
  if (node.isEnabled() && node.getAutofillType() != View.AUTOFILL_TYPE_NONE) {
    Log.v(TAG, "Falling back to " + actualHint);
    return actualHint;
  }
  return null;
}
android.app.assistAssistStructure$ViewNodeisEnabled

Popular methods of AssistStructure$ViewNode

  • getChildAt
  • getChildCount
  • getAutofillHints
  • getAutofillId
  • getAutofillType
  • getClassName
  • getHint
  • getId
  • getIdEntry
  • getInputType
  • getText
  • getVisibility
  • getText,
  • getVisibility,
  • getWebDomain,
  • isChecked,
  • isFocused,
  • getAutofillOptions,
  • getAutofillValue,
  • getHtmlInfo,
  • getAlpha

Popular in Java

  • Reactive rest calls using spring rest template
  • onRequestPermissionsResult (Fragment)
  • setScale (BigDecimal)
  • scheduleAtFixedRate (Timer)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • JFrame (javax.swing)
  • Top plugins for Android Studio
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