Loading docs/html/about/versions/nougat/android-7.0.jd +30 −38 Original line number Original line Diff line number Diff line Loading @@ -44,7 +44,7 @@ page.image=images/cards/card-n-apis_2x.png <li><a href="#vr">VR Support</a></li> <li><a href="#vr">VR Support</a></li> <li><a href="#print_svc">Print Service Enhancements</a></li> <li><a href="#print_svc">Print Service Enhancements</a></li> <li><a href="#virtual_files">Virtual Files</a></li> <li><a href="#virtual_files">Virtual Files</a></li> <li><a href="#framemetrics_api">FrameMetricsListener API</a></li> <li><a href="#framemetrics_api">Frame Metrics API</a></li> </ol> </ol> </div> </div> </div> </div> Loading Loading @@ -434,9 +434,8 @@ displayed — users can add or move tiles just by dragging and dropping them </p> </p> <p> <p> For information about creating an app tile, see the documentation for For information about creating an app tile, see the reference documentation <code>android.service.quicksettings.Tile</code> in the downloadable <a href= for {@link android.service.quicksettings.Tile Tile}. "{@docRoot}preview/setup-sdk.html#docs-dl">API Reference</a>. </p> </p> Loading Loading @@ -465,9 +464,8 @@ for the user in order to stop unwanted calls and texts from reaching the user through any medium, such as a VOIP endpoint or forwarding phones.</p> through any medium, such as a VOIP endpoint or forwarding phones.</p> <p> <p> For more information, see <code>android.provider.BlockedNumberContract</code> For more information, see the reference documentation for in the downloadable <a href="{@docRoot}preview/setup-sdk.html#docs-dl">API {@link android.provider.BlockedNumberContract BlockedNumberContract}. Reference</a>. </p> </p> <h2 id="call_screening">Call Screening</h2> <h2 id="call_screening">Call Screening</h2> Loading @@ -486,9 +484,8 @@ through any medium, such as a VOIP endpoint or forwarding phones.</p> </ul> </ul> <p> <p> For more information, see <code>android.telecom.CallScreeningService</code> For more information, see the reference documentation for in the downloadable <a href="{@docRoot}preview/setup-sdk.html#docs-dl">API {@link android.telecom.CallScreeningService CallScreeningService}. Reference</a>. </p> </p> Loading Loading @@ -780,8 +777,9 @@ impairments to touch the screen. The new API allows building services with features such as face-tracking, eye-tracking, point scanning, and so on, to features such as face-tracking, eye-tracking, point scanning, and so on, to meet the needs of those users.</p> meet the needs of those users.</p> <p>For more information, see <code>android.accessibilityservice.GestureDescription</code> <p>For more information, see the reference documentation for in the downloadable <a href="{@docRoot}preview/setup-sdk.html#docs-dl">API Reference</a>.</p> {@link android.accessibilityservice.GestureDescription GestureDescription}. </p> <h2 id="direct_boot">Direct Boot</h2> <h2 id="direct_boot">Direct Boot</h2> Loading Loading @@ -972,9 +970,8 @@ Directory Access</a> developer documentation.</p> from the system and from the app in focus. The system retrieves these from the system and from the app in focus. The system retrieves these shortcuts automatically from the app’s menu if the shortcuts exist. You can shortcuts automatically from the app’s menu if the shortcuts exist. You can also provide your own fine-tuned shortcuts lists for the screen. You can do also provide your own fine-tuned shortcuts lists for the screen. You can do this by overriding the new <code>Activity.onProvideKeyboardShortcuts()</code> this by overriding the {@link android.view.Window.Callback#onProvideKeyboardShortcuts method, described in the downloadable <a href= onProvideKeyboardShortcuts()} method. "{@docRoot}preview/setup-sdk.html#docs-dl">API Reference</a>. </p> </p> <p class="note"> <p class="note"> Loading @@ -986,7 +983,8 @@ Directory Access</a> developer documentation.</p> <p> <p> To trigger Keyboard Shortcuts Helper from anywhere in your app, call To trigger Keyboard Shortcuts Helper from anywhere in your app, call {@code Activity.requestKeyboardShortcutsHelper()} for the relevant activity. {@link android.app.Activity#requestShowKeyboardShortcuts requestShowKeyboardShortcuts()} from the relevant activity. </p> </p> <h2 id="custom_pointer_api"> <h2 id="custom_pointer_api"> Loading Loading @@ -1062,37 +1060,32 @@ see the <a href="https://developers.google.com/vr/android/">Google VR SDK for An <ul> <ul> <li>You can set an icon from a resource ID by calling <li>You can set an icon from a resource ID by calling <code>PrinterInfo.Builder.setResourceIconId()</code> {@link android.print.PrinterInfo.Builder#setIconResourceId setIconResourceId()}. </li> </li> <li>You can show an icon from the network by calling <li>You can show an icon from the network by calling <code>PrinterInfo.Builder.setHasCustomPrinterIcon()</code>, and setting a {@link android.print.PrinterInfo.Builder#setHasCustomPrinterIcon setHasCustomPrinterIcon()}, callback for when the icon is requested using and setting a callback for when the icon is requested using <code>android.printservice.PrinterDiscoverySession.onRequestCustomPrinterIcon()</code> {@link android.printservice.PrinterDiscoverySession#onRequestCustomPrinterIcon onRequestCustomPrinterIcon()}. </li> </li> </ul> </ul> <p> <p> In addition, you can provide a per-printer activity to display additional In addition, you can provide a per-printer activity to display additional information by calling <code>PrinterInfo.Builder.setInfoIntent()</code>. information by calling {@link android.print.PrinterInfo.Builder#setInfoIntent setInfoIntent()}. </p> </p> <p> <p> You can indicate the progress and status of print jobs in the print job You can indicate the progress and status of print jobs in the print job notification by calling notification by calling <code>android.printservice.PrintJob.setProgress()</code> and {@link android.printservice.PrintJob#setProgress setProgress()} and <code>android.printservice.PrintJob.setStatus()</code>, respectively. {@link android.printservice.PrintJob#setStatus setStatus()}, respectively. </p> <p> For more information about these methods, see the downloadable <a href= "{@docRoot}preview/setup-sdk.html#docs-dl">API Reference</a>. </p> </p> <h2 id="framemetrics_api">FrameMetricsListener API</h2> <h2 id="framemetrics_api">Frame Metrics API</h2> <p> <p> The FrameMetricsListener API allows an app to monitor its UI rendering The Frame Metrics API allows an app to monitor its UI rendering performance. The API provides this capability by exposing a streaming Pub/Sub API to transfer frame performance. The API provides this capability by exposing a streaming Pub/Sub API to transfer frame timing info for the app's current window. The data returned is timing info for the app's current window. The data returned is equivalent to that which <code><a href="{@docRoot}tools/help/shell.html#shellcommands">adb shell</a> equivalent to that which <code><a href="{@docRoot}tools/help/shell.html#shellcommands">adb shell</a> Loading @@ -1100,7 +1093,7 @@ dumpsys gfxinfo framestats</code> displays, but is not limited to the past 120 f </p> </p> <p> <p> You can use FrameMetricsListener to measure interaction-level UI You can use the Frame Metrics API to measure interaction-level UI performance in production, without a USB connection. This API performance in production, without a USB connection. This API allows collection of data at a much higher granularity than does allows collection of data at a much higher granularity than does {@code adb shell dumpsys gfxinfo}. This higher granularity is possible because {@code adb shell dumpsys gfxinfo}. This higher granularity is possible because Loading @@ -1112,16 +1105,15 @@ for real use cases within an app. </p> </p> <p> <p> To monitor a window, implement the <code>FrameMetricsListener.onMetricsAvailable()</code> To monitor a window, implement the callback method and register it on that window. For more information, refer to {@link android.view.Window.OnFrameMetricsAvailableListener#onFrameMetricsAvailable OnFrameMetricsAvailableListener.onFrameMetricsAvailable()} the {@code FrameMetricsListener} class documentation in callback method and register it on that window. the downloadable <a href="{@docRoot}preview/setup-sdk.html#docs-dl">API Reference</a>. </p> </p> <p> <p> The API provides a {@code FrameMetrics} object, which contains timing data that The API provides a {@link android.view.FrameMetrics FrameMetrics} object, which the rendering subsystem reports for various milestones in a frame lifecycle. contains timing data that the rendering subsystem reports for various milestones The supported metrics are: {@code UNKNOWN_DELAY_DURATION}, in a frame lifecycle. The supported metrics are: {@code UNKNOWN_DELAY_DURATION}, {@code INPUT_HANDLING_DURATION}, {@code ANIMATION_DURATION}, {@code INPUT_HANDLING_DURATION}, {@code ANIMATION_DURATION}, {@code LAYOUT_MEASURE_DURATION}, {@code DRAW_DURATION}, {@code SYNC_DURATION}, {@code LAYOUT_MEASURE_DURATION}, {@code DRAW_DURATION}, {@code SYNC_DURATION}, {@code COMMAND_ISSUE_DURATION}, {@code SWAP_BUFFERS_DURATION}, {@code COMMAND_ISSUE_DURATION}, {@code SWAP_BUFFERS_DURATION}, Loading Loading
docs/html/about/versions/nougat/android-7.0.jd +30 −38 Original line number Original line Diff line number Diff line Loading @@ -44,7 +44,7 @@ page.image=images/cards/card-n-apis_2x.png <li><a href="#vr">VR Support</a></li> <li><a href="#vr">VR Support</a></li> <li><a href="#print_svc">Print Service Enhancements</a></li> <li><a href="#print_svc">Print Service Enhancements</a></li> <li><a href="#virtual_files">Virtual Files</a></li> <li><a href="#virtual_files">Virtual Files</a></li> <li><a href="#framemetrics_api">FrameMetricsListener API</a></li> <li><a href="#framemetrics_api">Frame Metrics API</a></li> </ol> </ol> </div> </div> </div> </div> Loading Loading @@ -434,9 +434,8 @@ displayed — users can add or move tiles just by dragging and dropping them </p> </p> <p> <p> For information about creating an app tile, see the documentation for For information about creating an app tile, see the reference documentation <code>android.service.quicksettings.Tile</code> in the downloadable <a href= for {@link android.service.quicksettings.Tile Tile}. "{@docRoot}preview/setup-sdk.html#docs-dl">API Reference</a>. </p> </p> Loading Loading @@ -465,9 +464,8 @@ for the user in order to stop unwanted calls and texts from reaching the user through any medium, such as a VOIP endpoint or forwarding phones.</p> through any medium, such as a VOIP endpoint or forwarding phones.</p> <p> <p> For more information, see <code>android.provider.BlockedNumberContract</code> For more information, see the reference documentation for in the downloadable <a href="{@docRoot}preview/setup-sdk.html#docs-dl">API {@link android.provider.BlockedNumberContract BlockedNumberContract}. Reference</a>. </p> </p> <h2 id="call_screening">Call Screening</h2> <h2 id="call_screening">Call Screening</h2> Loading @@ -486,9 +484,8 @@ through any medium, such as a VOIP endpoint or forwarding phones.</p> </ul> </ul> <p> <p> For more information, see <code>android.telecom.CallScreeningService</code> For more information, see the reference documentation for in the downloadable <a href="{@docRoot}preview/setup-sdk.html#docs-dl">API {@link android.telecom.CallScreeningService CallScreeningService}. Reference</a>. </p> </p> Loading Loading @@ -780,8 +777,9 @@ impairments to touch the screen. The new API allows building services with features such as face-tracking, eye-tracking, point scanning, and so on, to features such as face-tracking, eye-tracking, point scanning, and so on, to meet the needs of those users.</p> meet the needs of those users.</p> <p>For more information, see <code>android.accessibilityservice.GestureDescription</code> <p>For more information, see the reference documentation for in the downloadable <a href="{@docRoot}preview/setup-sdk.html#docs-dl">API Reference</a>.</p> {@link android.accessibilityservice.GestureDescription GestureDescription}. </p> <h2 id="direct_boot">Direct Boot</h2> <h2 id="direct_boot">Direct Boot</h2> Loading Loading @@ -972,9 +970,8 @@ Directory Access</a> developer documentation.</p> from the system and from the app in focus. The system retrieves these from the system and from the app in focus. The system retrieves these shortcuts automatically from the app’s menu if the shortcuts exist. You can shortcuts automatically from the app’s menu if the shortcuts exist. You can also provide your own fine-tuned shortcuts lists for the screen. You can do also provide your own fine-tuned shortcuts lists for the screen. You can do this by overriding the new <code>Activity.onProvideKeyboardShortcuts()</code> this by overriding the {@link android.view.Window.Callback#onProvideKeyboardShortcuts method, described in the downloadable <a href= onProvideKeyboardShortcuts()} method. "{@docRoot}preview/setup-sdk.html#docs-dl">API Reference</a>. </p> </p> <p class="note"> <p class="note"> Loading @@ -986,7 +983,8 @@ Directory Access</a> developer documentation.</p> <p> <p> To trigger Keyboard Shortcuts Helper from anywhere in your app, call To trigger Keyboard Shortcuts Helper from anywhere in your app, call {@code Activity.requestKeyboardShortcutsHelper()} for the relevant activity. {@link android.app.Activity#requestShowKeyboardShortcuts requestShowKeyboardShortcuts()} from the relevant activity. </p> </p> <h2 id="custom_pointer_api"> <h2 id="custom_pointer_api"> Loading Loading @@ -1062,37 +1060,32 @@ see the <a href="https://developers.google.com/vr/android/">Google VR SDK for An <ul> <ul> <li>You can set an icon from a resource ID by calling <li>You can set an icon from a resource ID by calling <code>PrinterInfo.Builder.setResourceIconId()</code> {@link android.print.PrinterInfo.Builder#setIconResourceId setIconResourceId()}. </li> </li> <li>You can show an icon from the network by calling <li>You can show an icon from the network by calling <code>PrinterInfo.Builder.setHasCustomPrinterIcon()</code>, and setting a {@link android.print.PrinterInfo.Builder#setHasCustomPrinterIcon setHasCustomPrinterIcon()}, callback for when the icon is requested using and setting a callback for when the icon is requested using <code>android.printservice.PrinterDiscoverySession.onRequestCustomPrinterIcon()</code> {@link android.printservice.PrinterDiscoverySession#onRequestCustomPrinterIcon onRequestCustomPrinterIcon()}. </li> </li> </ul> </ul> <p> <p> In addition, you can provide a per-printer activity to display additional In addition, you can provide a per-printer activity to display additional information by calling <code>PrinterInfo.Builder.setInfoIntent()</code>. information by calling {@link android.print.PrinterInfo.Builder#setInfoIntent setInfoIntent()}. </p> </p> <p> <p> You can indicate the progress and status of print jobs in the print job You can indicate the progress and status of print jobs in the print job notification by calling notification by calling <code>android.printservice.PrintJob.setProgress()</code> and {@link android.printservice.PrintJob#setProgress setProgress()} and <code>android.printservice.PrintJob.setStatus()</code>, respectively. {@link android.printservice.PrintJob#setStatus setStatus()}, respectively. </p> <p> For more information about these methods, see the downloadable <a href= "{@docRoot}preview/setup-sdk.html#docs-dl">API Reference</a>. </p> </p> <h2 id="framemetrics_api">FrameMetricsListener API</h2> <h2 id="framemetrics_api">Frame Metrics API</h2> <p> <p> The FrameMetricsListener API allows an app to monitor its UI rendering The Frame Metrics API allows an app to monitor its UI rendering performance. The API provides this capability by exposing a streaming Pub/Sub API to transfer frame performance. The API provides this capability by exposing a streaming Pub/Sub API to transfer frame timing info for the app's current window. The data returned is timing info for the app's current window. The data returned is equivalent to that which <code><a href="{@docRoot}tools/help/shell.html#shellcommands">adb shell</a> equivalent to that which <code><a href="{@docRoot}tools/help/shell.html#shellcommands">adb shell</a> Loading @@ -1100,7 +1093,7 @@ dumpsys gfxinfo framestats</code> displays, but is not limited to the past 120 f </p> </p> <p> <p> You can use FrameMetricsListener to measure interaction-level UI You can use the Frame Metrics API to measure interaction-level UI performance in production, without a USB connection. This API performance in production, without a USB connection. This API allows collection of data at a much higher granularity than does allows collection of data at a much higher granularity than does {@code adb shell dumpsys gfxinfo}. This higher granularity is possible because {@code adb shell dumpsys gfxinfo}. This higher granularity is possible because Loading @@ -1112,16 +1105,15 @@ for real use cases within an app. </p> </p> <p> <p> To monitor a window, implement the <code>FrameMetricsListener.onMetricsAvailable()</code> To monitor a window, implement the callback method and register it on that window. For more information, refer to {@link android.view.Window.OnFrameMetricsAvailableListener#onFrameMetricsAvailable OnFrameMetricsAvailableListener.onFrameMetricsAvailable()} the {@code FrameMetricsListener} class documentation in callback method and register it on that window. the downloadable <a href="{@docRoot}preview/setup-sdk.html#docs-dl">API Reference</a>. </p> </p> <p> <p> The API provides a {@code FrameMetrics} object, which contains timing data that The API provides a {@link android.view.FrameMetrics FrameMetrics} object, which the rendering subsystem reports for various milestones in a frame lifecycle. contains timing data that the rendering subsystem reports for various milestones The supported metrics are: {@code UNKNOWN_DELAY_DURATION}, in a frame lifecycle. The supported metrics are: {@code UNKNOWN_DELAY_DURATION}, {@code INPUT_HANDLING_DURATION}, {@code ANIMATION_DURATION}, {@code INPUT_HANDLING_DURATION}, {@code ANIMATION_DURATION}, {@code LAYOUT_MEASURE_DURATION}, {@code DRAW_DURATION}, {@code SYNC_DURATION}, {@code LAYOUT_MEASURE_DURATION}, {@code DRAW_DURATION}, {@code SYNC_DURATION}, {@code COMMAND_ISSUE_DURATION}, {@code SWAP_BUFFERS_DURATION}, {@code COMMAND_ISSUE_DURATION}, {@code SWAP_BUFFERS_DURATION}, Loading