From 097b115ae706f723a290a896e5a31e10cf3f420e Mon Sep 17 00:00:00 2001 From: Andrew Solovay Date: Wed, 6 Apr 2016 17:33:00 -0700 Subject: [PATCH] docs: Updates to API Overview for N Preview 2 Adding new material based on PM feedback. See first comment for doc stage location. Change-Id: Iab58bd10804bf1e088752eb385b352d91a0e5d2c --- docs/html/preview/api-overview.jd | 107 +++++++++++++++++++++++++++++- 1 file changed, 105 insertions(+), 2 deletions(-) diff --git a/docs/html/preview/api-overview.jd b/docs/html/preview/api-overview.jd index 29f52e057246a..b81ea692c9836 100644 --- a/docs/html/preview/api-overview.jd +++ b/docs/html/preview/api-overview.jd @@ -19,6 +19,7 @@ page.image=images/cards/card-n-apis_2x.png
  • Doze on the go
  • Background optimizations
  • Data Saver
  • +
  • Vulkan API
  • Quick Settings Tile API
  • Number-blocking
  • Call screening
  • @@ -35,6 +36,7 @@ page.image=images/cards/card-n-apis_2x.png
  • APK signature scheme v2
  • Scoped directory access
  • Launcher shortcuts
  • +
  • Print service enhancements
  • @@ -306,6 +308,54 @@ preference changes. All apps should check whether the user has enabled Data Saver and make an effort to limit foreground and background data usage.

    +

    Vulkan API

    + +

    + Android N integrates Vulkan™, a new 3D rendering API, into the platform. Like + OpenGL™ + ES, Vulkan is an open standard for 3D graphics and rendering maintained + by the Khronos Group. +

    + +

    + Vulkan is designed from the ground up to minimize CPU overhead in the driver, + and allow your application to control GPU operation more directly. Vulkan + also enables better parallelization by allowing multiple threads to perform + work such as command buffer construction at once. +

    + +

    + Vulkan development tools and libraries are rolled into the Android NDK. They + include: +

    + + + +

    + Vulkan is only available to apps on devices with Vulkan-capable hardware, + such as Nexus 5X, Nexus 6P, and Nexus Player. We're working closely with our + partners to bring Vulkan to more devices as soon as possible. +

    + +

    + For more information, see the Vulkan + Developer Tools blog post or the API documentation itself. +

    +

    Quick Settings Tile API

    @@ -483,7 +533,8 @@ Some highlights are below — for a complete list of changes, see

    Work profile security challenge

    - Profile owners can specify a separate security challenge for apps running in + Profile owners targeting the N SDK + can specify a separate security challenge for apps running in the work profile. The work challenge is shown when a user attempts to open any work apps. Successful completion of the security challenge unlocks the work profile and decrypts it if necessary. For profile owners, @@ -493,7 +544,7 @@ Some highlights are below — for a complete list of changes, see

    - Profile owners can set distinct password policies for the work challenge + Profile owners can set distinct passcode policies for the work challenge (such as how long the PIN needs to be, or whether a fingerprint can be used to unlock the profile) using the setPasswordQuality(), setPasswordMinimumLength() and related methods. The profile @@ -535,6 +586,16 @@ action android.net.VpnService.

    Settings>More>Vpn.

    +

    Customized provisioning

    + +

    + An application can customize the profile owner and device owner provisioning + flows with corporate colors and logos. + DevicePolicyManager.EXTRA_PROVISIONING_MAIN_COLOR customizes + flow color. DevicePolicyManager.EXTRA_PROVISIONING_LOGO_URI + customizes the flow with a corporate logo. +

    +

    Accessibility enhancements

    Android N now offers Vision Settings directly on the Welcome screen for new @@ -745,9 +806,51 @@ Directory Access developer documentation.

     $ adb shell dumpsys shortcut
     
    +

    To update all shortcuts and to delete dynamic shortcuts, use the appropriate methods that the Launcher Shortcut API provides. For more details about this API, see android.content.pm.ShortcutManager in the downloadable API Reference.

    + + + +

    + In Android N, print service developers can now surface additional information + about individual printers and print jobs. +

    + +

    + When listing individual printers, a print service can now set per-printer + icons in two ways: +

    + + + +

    + In addition, you can provide a per-printer activity to display additional + information by calling PrinterInfo.Builder.setInfoIntent(). +

    + +

    + You can indicate the progress and status of print jobs in the print job + notification by calling + android.printservice.PrintJob.setProgress() and + android.printservice.PrintJob.setStatus(), respectively. +

    + +

    + For more information about these methods, see the downloadable API Reference. +