Java 类android.app.assist.AssistContent 实例源码

项目:RecentTask    文件:BBVoiceInteractionSession.java   
@TargetApi(Build.VERSION_CODES.M)
@Override
public void onHandleAssist(Bundle data, AssistStructure structure, AssistContent content) {
    super.onHandleAssist(data, structure, content);
    ComponentName componentName=structure.getActivityComponent();
    if (componentName.getPackageName().equals(HIDE_FLOAT_VIEW_PACKAGE_NAME)){
        tipViewController.hide();
    }else {
        tipViewController.show(1,"");
    }

}
项目:chromium-for-android-56-debug-video    文件:ChromeActivity.java   
@Override
@TargetApi(Build.VERSION_CODES.M)
public void onProvideAssistContent(AssistContent outContent) {
    if (getAssistStatusHandler() == null || !getAssistStatusHandler().isAssistSupported()) {
        // No information is provided in incognito mode.
        return;
    }
    Tab tab = getActivityTab();
    if (tab != null && !isInOverviewMode()) {
        outContent.setWebUri(Uri.parse(tab.getUrl()));
    }
}
项目:AndroidChromium    文件:ChromeActivity.java   
@Override
@TargetApi(Build.VERSION_CODES.M)
public void onProvideAssistContent(AssistContent outContent) {
    if (getAssistStatusHandler() == null || !getAssistStatusHandler().isAssistSupported()) {
        // No information is provided in incognito mode.
        return;
    }
    Tab tab = getActivityTab();
    if (tab != null && !isInOverviewMode()) {
        outContent.setWebUri(Uri.parse(tab.getUrl()));
    }
}
项目:Vafrinn    文件:ChromeActivity.java   
public void onProvideAssistContent(AssistContent outContent) {
    if (getAssistStatusHandler() == null || !getAssistStatusHandler().isAssistSupported()) {
        // No information is provided in incognito mode.
        return;
    }
    Tab tab = getActivityTab();
    if (tab != null && !isInOverviewMode()) {
        outContent.setWebUri(Uri.parse(tab.getUrl()));
    }
}
项目:CompositeAndroid    文件:ActivityPlugin.java   
void onProvideAssistContent(final CallVoid1<AssistContent> superCall,
        final AssistContent outContent) {
    synchronized (mSuperListeners) {
        mSuperListeners.push(superCall);
        onProvideAssistContent(outContent);
    }
}
项目:365browser    文件:ChromeActivity.java   
@Override
@TargetApi(Build.VERSION_CODES.M)
public void onProvideAssistContent(AssistContent outContent) {
    if (getAssistStatusHandler() == null || !getAssistStatusHandler().isAssistSupported()) {
        // No information is provided in incognito mode.
        return;
    }
    Tab tab = getActivityTab();
    if (tab != null && !isInOverviewMode()) {
        outContent.setWebUri(Uri.parse(tab.getUrl()));
    }
}
项目:RecentTask    文件:BBVoiceInteractionSession.java   
@Override
public void onHandleAssistSecondary(Bundle data, AssistStructure structure, AssistContent content, int index, int count) {
    super.onHandleAssistSecondary(data, structure, content, index, count);
}
项目:Bigbang    文件:BBVoiceInteractionSession.java   
@Override
public void onHandleAssist(Bundle data, AssistStructure structure, AssistContent content) {
    super.onHandleAssist(data, structure, content);
}
项目:Bigbang    文件:BBVoiceInteractionSession.java   
@Override
public void onHandleAssistSecondary(Bundle data, AssistStructure structure, AssistContent content, int index, int count) {
    super.onHandleAssistSecondary(data, structure, content, index, count);
}
项目:Saiy-PS    文件:SaiyInteractionSession.java   
@Override
public void onHandleAssist(Bundle data, AssistStructure structure, AssistContent content) {
}
项目:materialup    文件:PostActivity.java   
@Override
@TargetApi(Build.VERSION_CODES.M)
public void onProvideAssistContent(AssistContent outContent) {
    outContent.setWebUri(Uri.parse(shot.url));
}
项目:Amumu    文件:DesignerNewsStory.java   
@Override @TargetApi(Build.VERSION_CODES.M)
public void onProvideAssistContent(AssistContent outContent) {
    outContent.setWebUri(Uri.parse(story.url));
}
项目:Amumu    文件:DribbbleShot.java   
@Override @TargetApi(Build.VERSION_CODES.M)
public void onProvideAssistContent(AssistContent outContent) {
    outContent.setWebUri(Uri.parse(shot.url));
}
项目:android-proguards    文件:DesignerNewsStory.java   
@Override @TargetApi(Build.VERSION_CODES.M)
public void onProvideAssistContent(AssistContent outContent) {
    outContent.setWebUri(Uri.parse(story.url));
}
项目:android-proguards    文件:DribbbleShot.java   
@Override @TargetApi(Build.VERSION_CODES.M)
public void onProvideAssistContent(AssistContent outContent) {
    outContent.setWebUri(Uri.parse(shot.url));
}
项目:OldDriver-master    文件:DesignerNewsStory.java   
@Override @TargetApi(Build.VERSION_CODES.M)
public void onProvideAssistContent(AssistContent outContent) {
    outContent.setWebUri(Uri.parse(story.url));
}
项目:OldDriver-master    文件:DribbbleShot.java   
@Override @TargetApi(Build.VERSION_CODES.M)
public void onProvideAssistContent(AssistContent outContent) {
    outContent.setWebUri(Uri.parse(shot.url));
}
项目:CompositeAndroid    文件:BlueprintActivity.java   
@Override
public void onProvideAssistContent(final AssistContent outContent) {
    super.onProvideAssistContent(outContent);
}
项目:CompositeAndroid    文件:CompositeActivity.java   
@Override
public void onProvideAssistContent(final AssistContent outContent) {
    delegate.onProvideAssistContent(outContent);
}
项目:CompositeAndroid    文件:CompositeActivity.java   
@Override
public void super_onProvideAssistContent(final AssistContent outContent) {
    super.onProvideAssistContent(outContent);
}
项目:CompositeAndroid    文件:ActivityPlugin.java   
public void onProvideAssistContent(final AssistContent outContent) {
    verifyMethodCalledFromDelegate("onProvideAssistContent(AssistContent)");
    ((CallVoid1<AssistContent>) mSuperListeners.pop()).call(outContent);
}
项目:MarshmallowDemo    文件:ActivityMain.java   
@Override
public void onProvideAssistContent(AssistContent outContent) {
    outContent.setWebUri(Uri.parse("http://whatdidtrumpdotoday.com/"));
}
项目:plaid    文件:DesignerNewsStory.java   
@Override @TargetApi(Build.VERSION_CODES.M)
public void onProvideAssistContent(AssistContent outContent) {
    outContent.setWebUri(Uri.parse(story.url));
}
项目:plaid    文件:DribbbleShot.java   
@Override @TargetApi(Build.VERSION_CODES.M)
public void onProvideAssistContent(AssistContent outContent) {
    outContent.setWebUri(Uri.parse(shot.url));
}
项目:ProgressManager    文件:a.java   
/**
 * This is called when the user is requesting an assist, to provide references
 * to content related to the current activity.  Before being called, the
 * {@code outContent} Intent is filled with the base Intent of the activity (the Intent
 * returned by {@link #getIntent()}).  The Intent's extras are stripped of any types
 * that are not valid for {@link PersistableBundle} or non-framework Parcelables, and
 * the flags {@link Intent#FLAG_GRANT_WRITE_URI_PERMISSION} and
 * {@link Intent#FLAG_GRANT_PERSISTABLE_URI_PERMISSION} are cleared from the Intent.
 *
 * <p>Custom implementation may adjust the content intent to better reflect the top-level
 * context of the activity, and fill in its ClipData with additional content of
 * interest that the user is currently viewing.  For example, an image gallery application
 * that has launched in to an activity allowing the user to swipe through pictures should
 * modify the intent to reference the current image they are looking it; such an
 * application when showing a list of pictures should add a ClipData that has
 * references to all of the pictures currently visible on screen.</p>
 *
 * @param outContent The assist content to return.
 */
public void onProvideAssistContent(AssistContent outContent) {
}
项目:ProgressManager    文件:a.java   
/**
 * This is called when the user is requesting an assist, to provide references
 * to content related to the current activity.  Before being called, the
 * {@code outContent} Intent is filled with the base Intent of the activity (the Intent
 * returned by {@link #getIntent()}).  The Intent's extras are stripped of any types
 * that are not valid for {@link PersistableBundle} or non-framework Parcelables, and
 * the flags {@link Intent#FLAG_GRANT_WRITE_URI_PERMISSION} and
 * {@link Intent#FLAG_GRANT_PERSISTABLE_URI_PERMISSION} are cleared from the Intent.
 *
 * <p>Custom implementation may adjust the content intent to better reflect the top-level
 * context of the activity, and fill in its ClipData with additional content of
 * interest that the user is currently viewing.  For example, an image gallery application
 * that has launched in to an activity allowing the user to swipe through pictures should
 * modify the intent to reference the current image they are looking it; such an
 * application when showing a list of pictures should add a ClipData that has
 * references to all of the pictures currently visible on screen.</p>
 *
 * @param outContent The assist content to return.
 */
public void onProvideAssistContent(AssistContent outContent) {
}
项目:ProgressManager    文件:a.java   
/**
 * This is called when the user is requesting an assist, to provide references
 * to content related to the current activity.  Before being called, the
 * {@code outContent} Intent is filled with the base Intent of the activity (the Intent
 * returned by {@link #getIntent()}).  The Intent's extras are stripped of any types
 * that are not valid for {@link PersistableBundle} or non-framework Parcelables, and
 * the flags {@link Intent#FLAG_GRANT_WRITE_URI_PERMISSION} and
 * {@link Intent#FLAG_GRANT_PERSISTABLE_URI_PERMISSION} are cleared from the Intent.
 *
 * <p>Custom implementation may adjust the content intent to better reflect the top-level
 * context of the activity, and fill in its ClipData with additional content of
 * interest that the user is currently viewing.  For example, an image gallery application
 * that has launched in to an activity allowing the user to swipe through pictures should
 * modify the intent to reference the current image they are looking it; such an
 * application when showing a list of pictures should add a ClipData that has
 * references to all of the pictures currently visible on screen.</p>
 *
 * @param outContent The assist content to return.
 */
public void onProvideAssistContent(AssistContent outContent) {
}
项目:ProgressManager    文件:a.java   
/**
 * This is called when the user is requesting an assist, to provide references
 * to content related to the current activity.  Before being called, the
 * {@code outContent} Intent is filled with the base Intent of the activity (the Intent
 * returned by {@link #getIntent()}).  The Intent's extras are stripped of any types
 * that are not valid for {@link PersistableBundle} or non-framework Parcelables, and
 * the flags {@link Intent#FLAG_GRANT_WRITE_URI_PERMISSION} and
 * {@link Intent#FLAG_GRANT_PERSISTABLE_URI_PERMISSION} are cleared from the Intent.
 *
 * <p>Custom implementation may adjust the content intent to better reflect the top-level
 * context of the activity, and fill in its ClipData with additional content of
 * interest that the user is currently viewing.  For example, an image gallery application
 * that has launched in to an activity allowing the user to swipe through pictures should
 * modify the intent to reference the current image they are looking it; such an
 * application when showing a list of pictures should add a ClipData that has
 * references to all of the pictures currently visible on screen.</p>
 *
 * @param outContent The assist content to return.
 */
public void onProvideAssistContent(AssistContent outContent) {
}
项目:ProgressManager    文件:a.java   
/**
 * This is called when the user is requesting an assist, to provide references
 * to content related to the current activity.  Before being called, the
 * {@code outContent} Intent is filled with the base Intent of the activity (the Intent
 * returned by {@link #getIntent()}).  The Intent's extras are stripped of any types
 * that are not valid for {@link PersistableBundle} or non-framework Parcelables, and
 * the flags {@link Intent#FLAG_GRANT_WRITE_URI_PERMISSION} and
 * {@link Intent#FLAG_GRANT_PERSISTABLE_URI_PERMISSION} are cleared from the Intent.
 *
 * <p>Custom implementation may adjust the content intent to better reflect the top-level
 * context of the activity, and fill in its ClipData with additional content of
 * interest that the user is currently viewing.  For example, an image gallery application
 * that has launched in to an activity allowing the user to swipe through pictures should
 * modify the intent to reference the current image they are looking it; such an
 * application when showing a list of pictures should add a ClipData that has
 * references to all of the pictures currently visible on screen.</p>
 *
 * @param outContent The assist content to return.
 */
public void onProvideAssistContent(AssistContent outContent) {
}
项目:ProgressManager    文件:a.java   
/**
 * This is called when the user is requesting an assist, to provide references
 * to content related to the current activity.  Before being called, the
 * {@code outContent} Intent is filled with the base Intent of the activity (the Intent
 * returned by {@link #getIntent()}).  The Intent's extras are stripped of any types
 * that are not valid for {@link PersistableBundle} or non-framework Parcelables, and
 * the flags {@link Intent#FLAG_GRANT_WRITE_URI_PERMISSION} and
 * {@link Intent#FLAG_GRANT_PERSISTABLE_URI_PERMISSION} are cleared from the Intent.
 *
 * <p>Custom implementation may adjust the content intent to better reflect the top-level
 * context of the activity, and fill in its ClipData with additional content of
 * interest that the user is currently viewing.  For example, an image gallery application
 * that has launched in to an activity allowing the user to swipe through pictures should
 * modify the intent to reference the current image they are looking it; such an
 * application when showing a list of pictures should add a ClipData that has
 * references to all of the pictures currently visible on screen.</p>
 *
 * @param outContent The assist content to return.
 */
public void onProvideAssistContent(AssistContent outContent) {
}
项目:ProgressManager    文件:a.java   
/**
 * This is called when the user is requesting an assist, to provide references
 * to content related to the current activity.  Before being called, the
 * {@code outContent} Intent is filled with the base Intent of the activity (the Intent
 * returned by {@link #getIntent()}).  The Intent's extras are stripped of any types
 * that are not valid for {@link PersistableBundle} or non-framework Parcelables, and
 * the flags {@link Intent#FLAG_GRANT_WRITE_URI_PERMISSION} and
 * {@link Intent#FLAG_GRANT_PERSISTABLE_URI_PERMISSION} are cleared from the Intent.
 *
 * <p>Custom implementation may adjust the content intent to better reflect the top-level
 * context of the activity, and fill in its ClipData with additional content of
 * interest that the user is currently viewing.  For example, an image gallery application
 * that has launched in to an activity allowing the user to swipe through pictures should
 * modify the intent to reference the current image they are looking it; such an
 * application when showing a list of pictures should add a ClipData that has
 * references to all of the pictures currently visible on screen.</p>
 *
 * @param outContent The assist content to return.
 */
public void onProvideAssistContent(AssistContent outContent) {
}
项目:ProgressManager    文件:a.java   
/**
 * This is called when the user is requesting an assist, to provide references
 * to content related to the current activity.  Before being called, the
 * {@code outContent} Intent is filled with the base Intent of the activity (the Intent
 * returned by {@link #getIntent()}).  The Intent's extras are stripped of any types
 * that are not valid for {@link PersistableBundle} or non-framework Parcelables, and
 * the flags {@link Intent#FLAG_GRANT_WRITE_URI_PERMISSION} and
 * {@link Intent#FLAG_GRANT_PERSISTABLE_URI_PERMISSION} are cleared from the Intent.
 *
 * <p>Custom implementation may adjust the content intent to better reflect the top-level
 * context of the activity, and fill in its ClipData with additional content of
 * interest that the user is currently viewing.  For example, an image gallery application
 * that has launched in to an activity allowing the user to swipe through pictures should
 * modify the intent to reference the current image they are looking it; such an
 * application when showing a list of pictures should add a ClipData that has
 * references to all of the pictures currently visible on screen.</p>
 *
 * @param outContent The assist content to return.
 */
public void onProvideAssistContent(AssistContent outContent) {
}
项目:ProgressManager    文件:a.java   
/**
 * This is called when the user is requesting an assist, to provide references
 * to content related to the current activity.  Before being called, the
 * {@code outContent} Intent is filled with the base Intent of the activity (the Intent
 * returned by {@link #getIntent()}).  The Intent's extras are stripped of any types
 * that are not valid for {@link PersistableBundle} or non-framework Parcelables, and
 * the flags {@link Intent#FLAG_GRANT_WRITE_URI_PERMISSION} and
 * {@link Intent#FLAG_GRANT_PERSISTABLE_URI_PERMISSION} are cleared from the Intent.
 *
 * <p>Custom implementation may adjust the content intent to better reflect the top-level
 * context of the activity, and fill in its ClipData with additional content of
 * interest that the user is currently viewing.  For example, an image gallery application
 * that has launched in to an activity allowing the user to swipe through pictures should
 * modify the intent to reference the current image they are looking it; such an
 * application when showing a list of pictures should add a ClipData that has
 * references to all of the pictures currently visible on screen.</p>
 *
 * @param outContent The assist content to return.
 */
public void onProvideAssistContent(AssistContent outContent) {
}
项目:ProgressManager    文件:a.java   
/**
 * This is called when the user is requesting an assist, to provide references
 * to content related to the current activity.  Before being called, the
 * {@code outContent} Intent is filled with the base Intent of the activity (the Intent
 * returned by {@link #getIntent()}).  The Intent's extras are stripped of any types
 * that are not valid for {@link PersistableBundle} or non-framework Parcelables, and
 * the flags {@link Intent#FLAG_GRANT_WRITE_URI_PERMISSION} and
 * {@link Intent#FLAG_GRANT_PERSISTABLE_URI_PERMISSION} are cleared from the Intent.
 *
 * <p>Custom implementation may adjust the content intent to better reflect the top-level
 * context of the activity, and fill in its ClipData with additional content of
 * interest that the user is currently viewing.  For example, an image gallery application
 * that has launched in to an activity allowing the user to swipe through pictures should
 * modify the intent to reference the current image they are looking it; such an
 * application when showing a list of pictures should add a ClipData that has
 * references to all of the pictures currently visible on screen.</p>
 *
 * @param outContent The assist content to return.
 */
public void onProvideAssistContent(AssistContent outContent) {
}
项目:CompositeAndroid    文件:ICompositeActivity.java   
void onProvideAssistContent(final AssistContent outContent);
项目:CompositeAndroid    文件:ICompositeActivity.java   
void super_onProvideAssistContent(final AssistContent outContent);