Skip to content
Snippets Groups Projects
  1. Apr 18, 2017
  2. Apr 17, 2017
  3. Apr 15, 2017
  4. Apr 14, 2017
    • Jordan Liu's avatar
      Update api for ServiceStateProvider · 6a5163a5
      Jordan Liu authored
      ServiceStateProvider defines public constants in
      Telephony.ServiceStateTable so update the api.
      
      Test: flashed onto device locally
      Bug: 33756364
      Change-Id: I62b6b8bcfdf909aa36e44441f8672f98f581f896
      Merged-In: I62b6b8bcfdf909aa36e44441f8672f98f581f896
      6a5163a5
    • Nathan Harold's avatar
      Update doc string for getForbiddenPlmns() to READ_PHONE_STATE · 04908fcd
      Nathan Harold authored
      For whatever reason when I chose the permission for this API I
      chose the internal READ_PRIVILEGED_PHONE_STATE. Updating this to
      use the equivalent public permission (since this is a public API)
      requires me to use READ_PHONE_STATE
      
      Bug: 35261110
      Test: docstring only change. Compilation
      Change-Id: I3647271798b33040751905c13b20da727eacfd9b
      04908fcd
    • Hall Liu's avatar
      14d27fcc
    • Treehugger Robot's avatar
      2fe972c8
    • Treehugger Robot's avatar
    • Hugo Benichi's avatar
      ConnectivityManager: release all requests mapping to a callback. · dafed3d0
      Hugo Benichi authored
      This patch changes how callback unregistration works in order to be
      consistent with undocumented use cases currently de-facto supported
      by the API (although in a buggy way):
        - callback recycling: releasing then reregistering a callback again.
        - multiple request registrations with the same callback.
      
      The second use case is not desirable but needs to be taken into account
      for now for the purpose of correctly releasing NetworkRequests
      registered in ConnectivityService.
      
      In order to support request release in both use cases with minimal
      amount of complexity for the time being the following changes are done:
        - request to callback unmapping is done synchronously at callback
          release time.
        - all requests associated to a callback are unmapped at callback
          release time.
      
      This fixes the following issues:
        - a callback stops being triggered as soon as it is released.
          Otherwise when recycling the callback immediately, it is possible
          the previous request associated with it triggers it, confusing the
          app.
        - when a callback is registered multiple times, the requests are not
          leaked.
        - when a callback is registered multiple times and then released, the
          N-1 first registrations do not trigger the callback anymore.
      
      In the future it would be desirable to enforce the intended 1:1 mapping
      between callbacks and requests at registration time.
      
      Bug: 35921499, 35955593, 20701525
      Test: - added new tests in ConnectivityManagerTest to test releasing,
            recycling, and a disabled test for no multiple regristration.
            - new tests catch regression causing b/35921499, b/35955593.
      Change-Id: Ia0917ac322fc049f76adb4743bc745989fed6d26
      dafed3d0
    • Treehugger Robot's avatar
      76b3537d
    • Rebecca Silberstein's avatar
    • Yifan Hong's avatar
      Add Java API for libvintf. · 4e01db8c
      Yifan Hong authored
      android.os.VintfObject has two methods:
      
      - report: return device info that can be reported to OTA server
      - verify: verify that metadata for a given OTA package is
                compatible.
      
      Test: pass
      Test: adb shell am instrument -w -e class android.os.VintfObjectTest \
      com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner
      
      Bug: 36814503
      
      Change-Id: Iff8fae289eec8ae9cfc327d0d0d36a1cdd5e6800
      4e01db8c
  5. Apr 13, 2017
  6. Apr 12, 2017
Loading