1. 20 May, 2015 1 commit
  2. 18 May, 2015 1 commit
    • Dianne Hackborn's avatar
      Update power manager to track uid state like netstats. · d23e0d69
      Dianne Hackborn authored
      To follow the correct semantics for when restricts due to
      device idle can be applied, power manager need to know about
      uid process states like net policy so that it can allow
      wake locks from apps that are in the foreground.
      
      Since this is being added to a second place, I reworked things
      so that the activity manager now keeps track of per-uid process
      states and allows apps to register to listen to those, rather
      than having to track lower-level process states and transform
      them into an overall uid state.  Both net policy and power
      manager use this new facility.
      
      Change-Id: I77359164c40d0f36fe1ef296dd9f9c3062431148
      d23e0d69
  3. 11 May, 2015 2 commits
    • P.Y. Laligand's avatar
      DO NOT MERGE - Display mode switches. · b3b9eb3c
      P.Y. Laligand authored
      Knowledge of the various modes of a display is now available to apps, and they can request a specific mode for their windows.
      
      b/18241736
      
      Change-Id: I8eb16ff713e878512faca3ca6662254f08a9be7f
      (cherry picked from commit 5c7773d86484aac5737667c604bd8fe8150c2136)
      b3b9eb3c
    • Rubin Xu's avatar
      Tweak SystemUpdatePolicy according to API review. · d86d58cd
      Rubin Xu authored
      Make SystemUpdatePolicy Parcelable; hide public constructor and
      expose static builder methods.
      
      Bug: 20820025
      Change-Id: I594ba3c7e5514551134ba6c866b24498b66506bf
      d86d58cd
  4. 08 May, 2015 1 commit
  5. 06 May, 2015 3 commits
  6. 29 Apr, 2015 1 commit
    • Dianne Hackborn's avatar
      Implement user-settable power save whitelist. · 0b4daca9
      Dianne Hackborn authored
      The whitelist is now maintained by DeviceIdleController,
      which is moving out into its own independent system service.
      Network stats now queries it for the whitelist, instead of
      collecting that itself.
      
      Also did a few improvements in alarm manager -- made the
      code for moving alarms out of the pending list more robust,
      and fixed the debug output to always print the contents of
      the pending list even if we aren't in a pending state.  (That
      would have helped me identify the problem much earlier.)
      
      Change-Id: I0f7119d4c553c3af4d77b2f71246fa6e2c13c561
      0b4daca9
  7. 16 Apr, 2015 2 commits
    • Jonathan Basseri's avatar
      Adding Carrier Config API. · 9a1c9b67
      Jonathan Basseri authored
      UICC privileged carrier apps will extend CarrierConfigService to provide
      carrier-specific configuration. Apps/services will use
      CarrierConfigManager to read the current configuration.
      
      CarrierConfigManager also defines the set of configuration variables and
      their default values.
      
      Bug: b/19483786
      Change-Id: I027211b43276afd6fe893ae50048c52f2aed5cf5
      9a1c9b67
    • Casper Bonde's avatar
      Add support for Bluetooth Sim Access Profile (2/4) · 2a5f608e
      Casper Bonde authored
      Change-Id: I6c634aa38d31a7b5a98c9089840557257fd58209
      2a5f608e
  8. 15 Apr, 2015 3 commits
    • Jonathan Basseri's avatar
      Adding Carrier Config API. · 3031bf96
      Jonathan Basseri authored
      UICC privileged carrier apps will extend CarrierConfigService to provide
      carrier-specific configuration. Apps/services will use
      CarrierConfigManager to read the current configuration.
      
      CarrierConfigManager also defines the set of configuration variables and
      their default values.
      
      Bug: b/19483786
      Change-Id: I027211b43276afd6fe893ae50048c52f2aed5cf5
      3031bf96
    • John Spurlock's avatar
      Zen: Add notification policy management api. · 1fc476d5
      John Spurlock authored
       - Allow apps to read and modify notification policy (currently
         which items are prioritized in "priority only" mode), but only
         after they've been granted access by noman.
       - Access to read/modify notification policy requires a token provided
         by noman.  Enabled notification listeners are automatically given
         tokens (new getter on NLS), but any other app can also request them.
       - Currently, all requests are granted.
       - Also add a new change intent when the public policy changes.
      
      Bug: 18541928
      Change-Id: I482d1c39852d0d961931515e0f0e059a8faee4ed
      1fc476d5
    • Casper Bonde's avatar
      Add support for Bluetooth Sim Access Profile (2/4) · d05bd467
      Casper Bonde authored
      Change-Id: I6c634aa38d31a7b5a98c9089840557257fd58209
      d05bd467
  9. 13 Apr, 2015 3 commits
    • Andres Morales's avatar
      Wire up GateKeeper to LockSettingsService · 8fa5665f
      Andres Morales authored
      Adds:
      - Communication to GKService
      - password upgrade flow
      - enroll takes previous credential
      
      Change-Id: I0161b64642be3d0e34ff4a9e6e3ca8569f2d7c0a
      8fa5665f
    • smain@google.com's avatar
      initial batch of NDK files for skeleton site build · 0178321a
      smain@google.com authored
      Change-Id: I00152e817377c072f529940743499a3b6d91f80d
      0178321a
    • Jeff Brown's avatar
      Set initial screen brightness earlier in the boot process. · 5d6443bf
      Jeff Brown authored
      Previously we had to wait for systemReady before setting the brightness
      due to the order in which the display power controller was initialized.
      Unfortunately it could take us a rather long time to reach that stage,
      particularly after an OTA where the screen would remain at maximum
      brightness for minutes while "Optimizing Apps".
      
      This change moves the brightness backlight setting code deeper
      into the display manager which has a couple of nice side-benefits
      in that it now becomes much easier to coordinate display power mode
      changes with display backlight changes.  So this change also resolves
      some issued with changing the backlight while in DOZE_SUSPEND and
      ensuring that backlight changes generally end up being performed
      before executing a power mode change except in the case where the
      display needs to come out of suspend first.  (So now the backlight
      will be set before entering DOZE from the ON state.)
      
      Deleted some dead code in LightService which was in the way.
      
      Bug: 19029490
      Change-Id: I494b5223e676248daf2ff8be3ec338845977f73c
      5d6443bf
  10. 07 Apr, 2015 1 commit
  11. 03 Apr, 2015 1 commit
    • Jorim Jaggi's avatar
      Add more internal API's for assist · 225d3b54
      Jorim Jaggi authored
      - When starting a voice interaction session from SysUI, a callback
      can be passed to know when voice interaction has successfully started
      - Add a new window type for the voice interaction starting window,
      which resides behind the voice interaction layer.
      - SystemUI now also inspects the voice interaction service to get the
      logo asset for the starting window.
      - Make VoiceInteractionSession window fullscreen, to accomodate for
      the visuals.
      
      Change-Id: If8c3c445e8b39841f48e8d153e6d1ba81e447286
      225d3b54
  12. 01 Apr, 2015 1 commit
  13. 30 Mar, 2015 1 commit
  14. 27 Mar, 2015 2 commits
    • John Reck's avatar
      Add GraphicsStatsService · edc524c9
      John Reck authored
      More S's for More Speed
      
      Split JankTracker's backing data from the
      class to allow for data relocation to/from ashmem regions
      
      Pack the jank tracking data to fit in 256 bytes
      
      Change-Id: Ife86a64b71a328fbd0c8075fe6a0404e081f725b
      edc524c9
    • Chris Wren's avatar
      add a metrics logger · 16115514
      Chris Wren authored
      Change-Id: I5b1dccb5d103ece3112acf38889bae16273b092f
      16115514
  15. 21 Mar, 2015 1 commit
  16. 17 Mar, 2015 1 commit
  17. 16 Mar, 2015 1 commit
    • Dianne Hackborn's avatar
      Add new voice request for picking from a list. · 3d07c94c
      Dianne Hackborn authored
      Also add API for voice interaction service to control
      whether the system should hold a wake lock while it is
      working with an activity (and actually *do* hold a wake
      lock while doing so, duh!).
      
      And while in there, clean up the launching wake lock to
      correctly give blame to the app that is launching.
      
      Change-Id: I7cc4d566b80f59fe0a9ac51ae9bbb7188a01f433
      3d07c94c
  18. 12 Mar, 2015 1 commit
    • Dianne Hackborn's avatar
      More work on collecting assist data. · a83ce1dd
      Dianne Hackborn authored
      Optimize parceling of AssistData (which is now renamed to
      AssistStructure) by pooling duplicated class name strings.
      
      Change text associated with a view node to a CharSequence,
      so styling information comes along.
      
      Include global text attributes -- size, colors, etc.
      
      Introduce a new AssistContent structure, which allows us
      to propagate information about the intent and data the
      activity is looking at.  This further allows us to propagate
      permission grants, so the assistant can dig in to that data.
      The default implementation propagates the base intent of an
      activity, so if for example you bring up the assistant while
      doing a share the assistant itself has the same information
      and access that was given to the share activity (so it could
      for example share it in another way if it wanted to).
      
      Did some optimization of loading PersistableBundle from xml,
      to avoid duplicating hash maps and such.
      
      Changed how we dispatch ACTION_ASSIST to no longer include
      the more detailed AssistStructure (and new AssistContent)
      data when launching; now the example code that intercepts
      that needs to be sure to ask for assist data when it starts
      its session.  This is more like it will finally be, and allows
      us to get to the UI more quickly.
      
      Change-Id: I88420a55761bf48d34ce3013e81bd96a0e087637
      a83ce1dd
  19. 04 Mar, 2015 2 commits
    • Adam Powell's avatar
      Add ChooserTargetService API · e30c9af3
      Adam Powell authored
      A ChooserTargetService can be implemented by apps that wish to offer
      additional deep-link targets for the system intent chooser to in turn
      offer to the user. This allows apps to create contextually relevant
      shortcuts for UI flows that would otherwise require several steps of
      explicit disambiguation. For example, a chat app might offer one-touch
      access to recent conversations when sharing a photo to it from
      elsewhere.
      
      The chooser implementation must limit the number of
      ChooserTargetServices it elects to query in order to respect available
      system resources. Only the system chooser is permitted to bind to a
      ChooserTargetService.
      
      Change-Id: Ia7e075ee649c51cf2035f20aee166c5a27d91aeb
      e30c9af3
    • Mike Lockwood's avatar
      MidiManager: Virtual MIDI devices are now implemented as Services · 11fd96d6
      Mike Lockwood authored
      To implement a virtual MIDI device, include a subclass of MidiDeviceService in
      your application.  This service is identified by an intent filter and meta-data
      in the application's manifest to allow the MIDI manager to register the virtual device
      without actually running the application. Instead, the application's MidiDeviceService
      subclass is started on demand when MIDI manager clients want to open the device.
      
      Here is an example of how the MidiDeviceService might be described in the application manifest:
      
          <service android:name="VirtualDeviceService">
              <intent-filter>
                  <action android:name="android.media.midi.MidiDeviceService" />
              </intent-filter>
              <meta-data android:name="android.media.midi.MidiDeviceService"
                  android:resource="@xml/device_info" />
          </service>
      
      and the device_info.xml meta-data:
      
      <devices>
          <device manufacturer="Sample Manufacturer" model="Sample Model" private="false">
              <input-port name="my input port" />
              <output-port name="my output port" />
          </device>
      </devices>
      
      (note that the <input-port> and <output-port> names are not currently used, but support for these
      will be added in a subsequent change)
      
      Client's of the virtual device will bind directly to the hosting application's MidiDeviceService subclass.
      To support this, MidiManager.openDevice() now returns the MidiDevice asynchronously via a callback.
      
      This change also adds a utility class called MidiDispatcher, which is a MidiReceiver
      that dispatches all data it receives to a list of other MidiReceivers.
      We now use this internally in MidiInputPort and MidiDeviceServer, but developers
      may use it for other purposes as well.
      
      Change-Id: Ic3009f06d56f3d5edbd87de3f0c330b51a1c217d
      11fd96d6
  20. 02 Mar, 2015 1 commit
  21. 23 Feb, 2015 1 commit
    • Mike Lockwood's avatar
      Add MIDI Manager API tweaks: · b673770f
      Mike Lockwood authored
      - Change the package name from android.midi to android.media.midi
      
      - Add option for specifying a Handler for DeviceCallback notifications
      
      Change-Id: Ia9e9817a651c06299f4e02ee1da3c9666ff64cb9
      b673770f
  22. 12 Feb, 2015 1 commit
    • Narayan Kamath's avatar
      Move apache specific portions of android.net.http to external/apache-http. · 3bdd327f
      Narayan Kamath authored
      We continue to compile external/apache-http into ext.jar. This contains
      a few changes apart fom the classes moving around :
      
      - Makefile changes to build docs and api-stubs for now. A future change
        will revert these changes and remove these classes from stubs and
        docs.
      - Hardcode event IDs in legacyerrorstrings to avoid a dependency between
        the frameworks and apache. These strings are on their way out and will
        never change anyway.
      - Remove imports due to {@link} tags and use {@code} instead.
      - Remove an accidental(?) dependency on apache commons code that's a
        part of apache-http.
      
      bug: 18027885
      
      Change-Id: I51cd038d846ec7d02c283a4541b10a6a9cf62ecf
      3bdd327f
  23. 30 Jan, 2015 1 commit
  24. 20 Jan, 2015 1 commit
    • Ying Wang's avatar
      Check in "current" system API files. · 02937eba
      Ying Wang authored
      The API files were generated by running "make showcommands update-system-api".
      
      Bug: 18960664
      Change-Id: Ibb4756d98be3cbf67f6103f5d5d8ff060b3c34c9
      02937eba
  25. 14 Jan, 2015 1 commit
    • Mike Lockwood's avatar
      MidiManager updates: · 10024b3d
      Mike Lockwood authored
      MIDI ports are now implemented as file descriptors directly between the sender
      and receiver, so the MidiService is no longer in the message path.
      
      To facilitate the above, each port has its own file descriptor, rather than multiplexing
      all ports on a device through a single socket.
      
      Added a new class MidiDeviceServer, which is used by implementors of MIDI devices.
      This replaces the MidiVirtualDevice class (which only was included in changes that were reviewed but never submitted).
      
      The USB MIDI implementation has moved from the MIDI service to the USB service.
      The USB MIDI implementation uses MidiDeviceServer as its interface, so we now have a common
      interface for all MIDI device implementations.
      
      Change-Id: I8effd1583f344beb6c940c3a24dbf20b477a6436
      10024b3d
  26. 13 Jan, 2015 1 commit
    • Chad Brubaker's avatar
      Generate IKeystoreService using aidl · 7a2c973d
      Chad Brubaker authored
      This replaces IKeystoreService.java with IKeystoreService.aidl and
      changes the methods that passed down a byte[][] to instead pass down a
      KeystoreArguments which is currently a thin parcelable wrapper around a byte[][].
      
      Change-Id: I6367bcf57562f41a27aab14f1903b74995cb65c2
      7a2c973d
  27. 12 Jan, 2015 1 commit
    • Vinit Deshpande's avatar
      Bring in passpoint code [DO NOT MERGE] · 7dd2f6b5
      Vinit Deshpande authored
      This change brings in all the passpoint code from master
      to here - so that all development can be done with partners
      
      Change-Id: I9185c35c69630ffb9b4313f973893996051075ed
      7dd2f6b5
  28. 18 Dec, 2014 1 commit
  29. 08 Dec, 2014 1 commit
    • Mike Lockwood's avatar
      MIDI Manager work in progress · 67f8e8bd
      Mike Lockwood authored
      Still to do:
      
      Add MidiInputPort and MidiOutputPort classes
      Schedule sending MIDI events in the future
      Security/permissions
      Reconsider interface for virtual devices
      Look into performance optimizations
      
      Change-Id: I9b7d63b196996a04be0a830efa913043da1328a8
      67f8e8bd
  30. 05 Dec, 2014 1 commit
    • Jean-Michel Trivi's avatar
      Support collaborative audio focus handling · 0212be51
      Jean-Michel Trivi authored
      Add new flag for an app to define it doesn't duck, but rather
        pauses when losing focus with AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK.
        This flag is to be used when requesting focus.
      Add support for AudioPolicy to specify whether it will implement
        ducking itself, rather than it being handled by an app.
      When ducking is handled by a policy, do not notify focus owners
        when they lose audio focus with LOSS_TRANSIENT_CAN_DUCK, unless
        they would have paused, as expressed with the
        AUDIOFOCUS_FLAG_PAUSES_ON_DUCKABLE_LOSS flag.
      Add a focus listener for a policy to be notified of focus changes
        so it can properly implement its own ducking.
      
      Bug 16010554
      
      Change-Id: I11d7cdb85c52fd086128a44f4d938aaa44db5c25
      0212be51