This project is mirrored from https://github.com/LineageOS/android_frameworks_base.git. Updated .
  1. 13 Sep, 2017 1 commit
  2. 26 Aug, 2017 1 commit
    • Siarhei Vishniakou's avatar
      DO NOT MERGE Use CREATE instead of CREATE2 for 3.10 kernel · 388ca7fe
      Siarhei Vishniakou authored
      CREATE2 structs were introduced after kernel 3.18,
      so cannot compile user code with uapi headers from
      newer 3.18+ kernels. If using CREATE structs then
      compatibility is preserved.
      
      Bug: 64981084
      Test: bit
      Change-Id: I97c7725918b09a817a51c13384ac2d55a6cfab25
      CtsHardwareTestCases:android.hardware.input.cts.tests.GamepadTestCase
      388ca7fe
  3. 24 Aug, 2017 1 commit
    • chaviw's avatar
      Add get-disabled shell command to locksettings · ff58ed11
      chaviw authored
      Added shell command that outputs whether the lock screen is disabled.
      
      Test: Ran "adb shell locksettings get-disabled" while phone had lock
      screen and when it did not.
      Merged-In: I3532e41e2ee4770bd0801dd431fdbc884c2bafa4
      Fixes: 64848695
      
      Change-Id: I3532e41e2ee4770bd0801dd431fdbc884c2bafa4
      ff58ed11
  4. 09 Aug, 2017 1 commit
    • Narayan Kamath's avatar
      PackageParser: Parse android:classLoader during the full parse. · 96c11c58
      Narayan Kamath authored
      There's no need to do this during a "lite" parse. Moreover, we don't
      resolve resource references during a lite parse, which means that we
      lose a lot of flexibility.
      
      Test: CtsAppSecurityTestCases
      Bug: 64339642
      
      Change-Id: I7d02faab6bd226d96d63d2edd8c06b94e15e14ad
      96c11c58
  5. 08 Aug, 2017 1 commit
    • Takashi Furukawa's avatar
      Cherry-pick: Add null check for Wi-Fi command · 258a071d
      Takashi Furukawa authored
      When WifiService is not ready during boot phase and Wi-Fi command
      is executed on console, NullPointerException happens.
      To prevent this, null check is needed.
      
      Test: Manual test
      Bug: 64040515
      Change-Id: I5684cdc7661b7d93fd6f2ac61863919077d12935
      Merged-In: I5684cdc7661b7d93fd6f2ac61863919077d12935
      258a071d
  6. 07 Aug, 2017 1 commit
    • Takashi Furukawa's avatar
      Cherry-pick: Add null check for Wi-Fi command · 1aa263e5
      Takashi Furukawa authored
      When WifiService is not ready during boot phase and Wi-Fi command
      is executed on console, NullPointerException happens.
      To prevent this, null check is needed.
      
      Test: Manual test
      Bug: 64040515
      Change-Id: I5684cdc7661b7d93fd6f2ac61863919077d12935
      Merged-In: I5684cdc7661b7d93fd6f2ac61863919077d12935
      1aa263e5
  7. 04 Aug, 2017 1 commit
    • Martijn Coenen's avatar
      screencap: always exit with _exit(). · 48b74082
      Martijn Coenen authored
      Delay starting the threadpool until necessary,
      and once started, always exit with _exit().
      
      Bug: 36066697
      Bug: 62956201
      Test: mma, screencap -p
      Merged-In: I0b9ab542f6434f57b498cd7dc41219ef57e36721
      Change-Id: I0b9ab542f6434f57b498cd7dc41219ef57e36721
      
      (cherry picked from commit 4d125c1d)
      
      Change-Id: Ie79ead94c62df0c4057d7fc6735abe9dcd1e940f
      48b74082
  8. 02 Aug, 2017 1 commit
    • Makoto Onuki's avatar
      Bit: Don't ignore errors and crashes · 6fb2c971
      Makoto Onuki authored
      Bit used to only see success results and failures (== assertion failures?),
      and didn't see "errors" (other exceptions) and test process crashes.
      
      Fixed it.
      
      Now it also returns an error status code if there was a test failure.
      
      Bug 64292779
      Test: manual
      
      Change-Id: Iaba93910d32abfc615ae595746a0e9be1108583a
      6fb2c971
  9. 26 Jul, 2017 1 commit
    • Martijn Coenen's avatar
      screencap: always exit with _exit(). · 4d125c1d
      Martijn Coenen authored
      Delay starting the threadpool until necessary,
      and once started, always exit with _exit().
      
      Bug: 36066697
      Bug: 62956201
      Test: mma, screencap -p
      Change-Id: I0b9ab542f6434f57b498cd7dc41219ef57e36721
      4d125c1d
  10. 21 Jul, 2017 1 commit
    • Andrii Kulian's avatar
      DO NOT MERGE ActivityView be gone! · 94e82d9b
      Andrii Kulian authored
      This hidden functionality is no longer support/needed since
      we now have multi-window/display. A new view group class
      will be added later that uses multi-window to support remaining
      functionality of this class.
      
      Test: go/wm-smoke
      Change-Id: Ie2fa2de92841d33199da9988741905060dd1ddf4
      94e82d9b
  11. 14 Jul, 2017 1 commit
    • Kalle Raita's avatar
      Fix nobootanimation toggle · 88efa56e
      Kalle Raita authored
      The sf.debug.nobootanimation was apparently broken in a recent
      refactoring. Flipping the boolean in the utils fixes the issue.
      
      Left some additional logging behind.
      
      Test: marlin-eng boots
      Test: my test can prevent the boot animation
      Test: shell stop start shows boot animation
      Change-Id: I815708a2f16a3a8688cf1a53695e5a8d43194575
      88efa56e
  12. 12 Jul, 2017 1 commit
    • George Burgess IV's avatar
      app_main: silence static analyzer warnings · c29844d0
      George Burgess IV authored
      This silences two warnings:
      
      frameworks/base/cmds/app_process/app_main.cpp:238:11: warning: Potential
      memory leak
      
      frameworks/base/cmds/app_process/app_main.cpp:261:9: warning: Potential
      memory leak
      
      As the (existing) comment notes, we nuke argv later in main(), so these
      copies are necessary. Since these args need to live for basically the
      entire life of the process, it seems pointless to go out of our way to
      free them.
      
      Bug: 27101951
      Test: mma. Static analyzer warnings are gone.
      Change-Id: Icbfabfede9db909f6acb274b697cb6076c3fc11f
      c29844d0
  13. 06 Jul, 2017 1 commit
    • Narayan Kamath's avatar
      Allow splits to declare a classloader type. · f9419f0f
      Narayan Kamath authored
      Add an attribute android:classLoader which can be set to the name
      of the classloader the base or split wishes to use. For now, this can
      only be set to "dalvik.system.PathClassLoader" or
      "dalvik.system.DelegateLastClassLoader". The current implementation
      only allows the classloader to exist in the boot classpath but that
      restriction can be loosened in a future change if necessary.
      
      Test: cts-tradefed run cts-dev -m CtsAppSecurityHostTestCases
      Bug: 36044779
      
      Change-Id: I5a51f7aa0c8c4c398d2f46129eb06785cc8e3c3f
      f9419f0f
  14. 29 Jun, 2017 1 commit
    • Santos Cordon's avatar
      Add ability to turn off VR virtual display functionality. · 627a68f8
      Santos Cordon authored
      Add flag to enable/disable virtual displays via the existing
      setDisplayProperties API. This makes it possible for the VR system
      to turn off virtual displays if necessary after we ship.
      
      Bug: 62546364
      Test: Run 'adb shell vr enable-virtual-display [true|false] to toggle while 2d in 3d
      runs.
      
      Change-Id: Iae029be501d61189fced981dbc554e984fa7ed4b
      627a68f8
  15. 28 Jun, 2017 1 commit
    • Makoto Onuki's avatar
      Sort INSTRUMENTATION_STATUS keys on am instrument output · f6d6e9ec
      Makoto Onuki authored
      Previously the output from perftests was printed in a random order:
      INSTRUMENTATION_STATUS: timeGetDataCapacity_standardDeviation=5
      INSTRUMENTATION_STATUS: timeGetDataCapacity_median=486
      INSTRUMENTATION_STATUS: timeGetDataCapacity_mean=489
      INSTRUMENTATION_STATUS: timeGetDataCapacity_min=484
      INSTRUMENTATION_STATUS_CODE: -1
      
      Now it's always printed in the same (sorted) order.
      INSTRUMENTATION_STATUS: timeGetDataCapacity_mean=489
      INSTRUMENTATION_STATUS: timeGetDataCapacity_median=486
      INSTRUMENTATION_STATUS: timeGetDataCapacity_min=484
      INSTRUMENTATION_STATUS: timeGetDataCapacity_standardDeviation=5
      INSTRUMENTATION_STATUS_CODE: -1
      
      Test: manual test
      Change-Id: I807aa05e6523b70a132ab97fc099156bb3dc1f96
      f6d6e9ec
  16. 26 Jun, 2017 1 commit
    • Pavel Grafov's avatar
      Add credential verification command to locksetting. · 5f679b21
      Pavel Grafov authored
      This is useful when we need to unlock the user in a test.
      Currently credential verification is done for any command
      (e.g. "clear") when "--old" parameter is provided, so this
      CL doesn't add anything new really, just makes it official.
      
      Test: adb shell locksettings set-pin 1111
      Test: adb shell locksettings verify --old 1111
      Bug: 36608972
      Change-Id: I3fdd6a309479739567622285945d17bb3acf972e
      5f679b21
  17. 22 Jun, 2017 1 commit
  18. 20 Jun, 2017 2 commits
    • Christopher Tate's avatar
      Add 'bmgr' command to synchronously init transports · 924afe2b
      Christopher Tate authored
      bmgr init TRANSPORT [...]
      
      will run an init operation on each named transport, blocking
      until the operations have all completed.
      
      Bug 62253989
      Test: manual
      
      Change-Id: I7dbd94293738d5ecf195764f5b28905253819791
      924afe2b
    • Ed Coyne's avatar
      Allow IO During boot process, BootActions. · 7464ac9b
      Ed Coyne authored
      NOTE: this is only compiled into products with PRODUCT_IOT=true.
      
      Introduce BootActions that a developer can provide to manipulate IO
      before the android framework comes up on boot.
      
      We will look for a configuration file at /oem/app/etc/boot_action.conf and
      expect it to tell us the name of a shared library. We will then fetch
      this library from /oem/app/lib/${arch}/ and load it. We expect it to export
      boot_action_init(), boot_action_shutdown(), and optionally
      boot_action_start_part(int partNumber, int playNumber).
      
      We will then call boot_action_init() during boot after PeripheralManager
      is up and call boot_action_shutdown() when the android framework is up
      and we are going to start loading APKs.
      
      We will also call boot_action_start_part(*) when each part of the boot
      animation is started, use this if you want to synchronize the boot
      action and the boot animation.
      
      Boot actions run in a restricted environment and in general can only
      make calls to PeripheralManager.
      
      Bug: 37992717
      Test: Pushed to local imx7d to test boot actions, pushed to bullhead test that animation+sound still works.
      Change-Id: I9e53a17567f8028ea84486d637e1d231ee1125e1
      7464ac9b
  19. 19 Jun, 2017 1 commit
    • Josh Gao's avatar
      Hack around b/36066697. · 90982588
      Josh Gao authored
      Avoid calling libbinder's static destructors by calling _exit instead
      of returning in main.
      
      Bug: http://b/36066697
      Test: treehugger
      Change-Id: I81dd50453f1ea64d97ec97d207fff732b3c62512
      90982588
  20. 16 Jun, 2017 1 commit
  21. 15 Jun, 2017 2 commits
    • Myles Watson's avatar
      Simplify NfcCommand and avoid NullPointerExceptions · d3375090
      Myles Watson authored
      Test: adb root
            adb shell
            stop
            svc nfc enable
            start
            svc nfc disable
      
      Change-Id: Ie5170f0525f8830d1d80b5607191ce95e78a55ae
      d3375090
    • Chet Haase's avatar
      Make --no-window-animation flag apply to animators, too · e5b44043
      Chet Haase authored
      There is a flag for 'adb shell am instrument' that disables animations, which
      is useful for testing (if you want to, for example, disable animations to speed
      up tests or remove animation-caused side-effects as a factor). But only the
      pre-honeycomb animations (window transitions and window animations) were listening
      to this flag. This change makes animators listen as well, so all three duration scale
      settings are affected.
      
      Bug: 32072407  --no_window_animation ADB arg should set all animation scales to 0.0f
      Test: manual. Ran frameworks APCT tests with --no_window_animation and verified
      that all three types of animations had their duration scales set to 0 for the
      duration of the tests.
      
      Change-Id: I5ae4a60faa714c9534dfae58d1efcd54f577d82b
      e5b44043
  22. 12 Jun, 2017 1 commit
    • Jeff Sharkey's avatar
      Active camera apps can defy reserved cache space. · 35e46d29
      Jeff Sharkey authored
      We normally prevent apps from allocating into the "reserved" cache
      space, but this change makes an exception for an active camera app,
      since the user is probably trying to capture an important memory.
      
      This change only lets the active camera app clear up to half of the
      reserved space, since we don't want to completely destroy the
      experience of all other apps.
      
      Test: manual app before/during/after active camera session
      Bug: 38267830
      Change-Id: Ie9e63884fb2638ca881e10b894629eea84601648
      35e46d29
  23. 09 Jun, 2017 1 commit
  24. 08 Jun, 2017 2 commits
  25. 02 Jun, 2017 1 commit
    • Romain Guy's avatar
      Enable wide color gamut rendering · 26a2b97d
      Romain Guy authored
      When wide color gamut rendering is requested, hwui will now
      use an rgba16f scRGB-nl surface for rendering. This change
      also fixes the way screenshots are handled in the platform
      to behave properly with wide gamut rendering.
      
      This change does not affect hardware layers. They also
      need to use rgba16f scRGB-nl; this will be addressed in
      another CL.
      
      Bug: 29940137
      Test: CtsUiRenderingTestCases, CtsGraphicsTestCases
      
      Change-Id: I68fd96c451652136c566ec48fb0e97c2a7a257c5
      26a2b97d
  26. 31 May, 2017 2 commits
    • Ed Coyne's avatar
      Refactor bootanimation into a shared lib. · 2c9e94aa
      Ed Coyne authored
      We would like to reuse the animation parts of it in Android things.
      This refactors the audio part into the _main and gets callbacks from
      the BootAnimation class at interesting times. This will be the same
      approach we take to integrate with it.
      
      BUG: 37992717
      Test: Built locally and pushed to a bullhead, works with sound.
      Change-Id: I5eaca07c25eeb5edeab07d7ae7a29945e0e2cd37
      2c9e94aa
    • Jeff Sharkey's avatar
      Consistent "low storage" behavior. · ddff807b
      Jeff Sharkey authored
      When answering the question "how much space is free", use the same
      logic for Settings UI and StorageManager.getAllocatableBytes().  That
      is, the reported free space is usable bytes plus any cached data the
      system is willing to delete automatically.
      
      This does *not* include any reserved cache space, since we don't want
      abusive apps to penalize other well-behaved apps that are storing
      their data in cache locations.  Callers freeing cached data need to
      now explicitly request defiance of the reserved cache space.  (Most
      callers are already doing this by using FLAG_ALLOCATE_AGGRESSIVE.)
      
      Rewrite the core logic of DeviceStorageMonitorService to understand
      this new "reserved" cache space, and to be easier to understand.  It
      also now handles cached data on adopted storage volumes, which had
      been ignored until now.  Also fix bug where we had skipped "low"
      broadcasts when the device skipped directly from/to "full" state.
      
      Bug: 38008706
      Test: cts-tradefed run commandAndExit cts-dev -m CtsJobSchedulerTestCases -t android.jobscheduler.cts.StorageConstraintTest
      Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.StorageHostTest
      Change-Id: Icbdcf3b52775f7ada1ceaeff2f96094c8d8052f9
      ddff807b
  27. 30 May, 2017 1 commit
    • Colin Cross's avatar
      Use LOCAL_ADDITIONAL_DEPENDENCIES instead of build system internals · 0b81f972
      Colin Cross authored
      Instead of directly adding dependencies to full_classes_compiled_jar
      and full_classes_jack, just use LOCAL_ADDITIONAL_DEPENDENCIES and
      let the build system take care of where the dependencies are needed.
      
      Test: builds
      Change-Id: Ia3078fe0aa54b2d69821a9879cfe43414e1e9c4f
      0b81f972
  28. 23 May, 2017 1 commit
    • Keun-young Park's avatar
      reduce flunctuation in boot animation start / stopping time · 721c9dc1
      Keun-young Park authored
      - Add separate 100ms interval polling for SurfaceFlinger. Otherwise,
        it can be blocked with 1 sec polling and cause 1 sec of additional
        delay frequently.
      
      bug: 38450031
      bug: 35253872
      Test: many reboots and check time to finish boot animation, python packages/services/Car/tools/bootanalyze/bootanalyze.py -r -c packages/services/Car/tools/bootanalyze/config.yaml -n 100 -f -e 15 -w 30 -v
      
      Change-Id: I353ca04183cbe59b82da99dc3fecfce63314cd2f
      721c9dc1
  29. 17 May, 2017 1 commit
  30. 12 May, 2017 1 commit
    • Siarhei Vishniakou's avatar
      Fix GamepadTestCase#testButtonA CTS test · 55656e4c
      Siarhei Vishniakou authored
      Hid command, JNI layer:
      - Removed dependency of the hid device on libandroid_runtime
      and libutils. Using ALooper from libandroid to process callbacks from
      /dev/uhid file descriptor.
      - Switched to using "CREATE2" and "INPUT2" constructs in uhid driver
      
      Hid command, Java layer:
      - Removed delay workarounds, user now responsible for waiting for
      onInputDeviceChanged notification prior to using the hid commands.
      
      UiAutomation:
      - Added a new executeShellCommandRw function that allows bidirectional
      communication to shell command
      
      platform.xml:
      - Added uhid permissions to bluetooth stack for /dev/uhid access
      
      - CTS test now consistently passes
      
      Bug: 34052337
      Test: CTS test case invoked with the following command:
      run cts -t android.hardware.input.cts.tests.GamepadTestCase
      -m CtsHardwareTestCases --skip-system-status-check
      com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker
      
      Change-Id: Ic916c513b7e652b1e25675f0f38f0f1f3a65d214
      55656e4c
  31. 11 May, 2017 2 commits
    • Martijn Coenen's avatar
      Only spawn one binder thread for screencap. · 3b53fc5a
      Martijn Coenen authored
      To work around race conditions in libbinder when
      spawning new threads while being shut down.
      
      Bug: 36066697
      Test: screencap still works
      Change-Id: I774d3dc2491bb578a12dede90cc7fcded976f13f
      3b53fc5a
    • Dianne Hackborn's avatar
      Fix issue #37360626: Apps can schedule alarms (and other things) with temp whitelist · 98305523
      Dianne Hackborn authored
      There is now an IBinder "token" that must be specified when setting
      the whitelist duration for an Intent.  To have the whitelist supplied,
      the caller to send a PendingIntent must pass in the same token.  The
      PendingIntent and IntentSender classes now internally maintain this token
      to pass in when their send() is called.
      
      The big complexity for making this work is we now need to associate this
      whitelist token correctly with the actual PendingIntent objects that
      applications and other code is getting.  To do this, we propagate the
      token in the Notification object, and have a new API on Parcel that allows
      us to make it available to PendingIntent when it is unmarshalled.  And
      this allows to deal with PendingIntents appearing in nested bundles, as
      we can propagate that information from the original Parcel to the new
      Parcel that Bundle keeps to delay unmarshalling.
      
      Test: manual
      Change-Id: Idda00490ccfe2be37e4ab21354b9ab7528a52750
      98305523
  32. 10 May, 2017 1 commit
    • Paul Duffin's avatar
      Prepare for removal of junit and android.test classes from Android API (step 1) · fa6f8a76
      Paul Duffin authored
      In preparation for removing junit and android.test classes from
      the Android API this change adds explicit dependencies on junit
      and/or legacy-android-test to ensure that modules will compile
      properly once it is removed.
      
      Care was taken to ensure that any targets that depended,
      directly or indirectly, on android-support-test did not also
      depend on junit or hamcrest as they conflict with the versions
      embedded within android-support-test.
      
      Bug: 30188076
      Test: make checkbuild
      
      (cherry picked from commit 00229bc6)
      
      Change-Id: I7fea20f92a5a92885733bc6ecb83b7276a48fbc2
      Merged-In: Ifc3ee3dc804074a3c572bf2600cfb1fe1b6fa749
      fa6f8a76
  33. 08 May, 2017 2 commits
    • Paul Duffin's avatar
      Prepare for removal of junit and android.test classes from Android API (step 1) · 702d506d
      Paul Duffin authored
      In preparation for removing junit and android.test classes from
      the Android API this change adds explicit dependencies on junit
      and/or legacy-android-test to ensure that modules will compile
      properly once it is removed.
      
      Care was taken to ensure that any targets that depended,
      directly or indirectly, on android-support-test did not also
      depend on junit or hamcrest as they conflict with the versions
      embedded within android-support-test.
      
      Bug: 30188076
      Test: make checkbuild
      Change-Id: Ice80a29b420061f5d0af6eb46426455abf890e5e
      Merged-In: Ifc3ee3dc804074a3c572bf2600cfb1fe1b6fa749
      702d506d
    • Paul Duffin's avatar
      Prepare for removal of junit and android.test classes from Android API (step 1) · 00229bc6
      Paul Duffin authored
      In preparation for removing junit and android.test classes from
      the Android API this change adds explicit dependencies on junit
      and/or legacy-android-test to ensure that modules will compile
      properly once it is removed.
      
      Care was taken to ensure that any targets that depended,
      directly or indirectly, on android-support-test did not also
      depend on junit or hamcrest as they conflict with the versions
      embedded within android-support-test.
      
      Bug: 30188076
      Test: make checkbuild
      Change-Id: Ifc3ee3dc804074a3c572bf2600cfb1fe1b6fa749
      00229bc6
  34. 05 May, 2017 1 commit
    • Jeff Sharkey's avatar
      Offer to wait until broadcasts have drained. · fd658131
      Jeff Sharkey authored
      We've seen evidence of lab devices racing with other apps that are
      using cache space immediately after tests wipe it clean, which can
      cause test failures.  To mitigate this, try our best to wait for the
      device to go "idle" by watching for broadcast queues to fully drain.
      
      Also improve javadocs along the way.
      
      Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.StorageHostTest
      Bug: 37486230, 37566983, 37913442, 37914374
      Change-Id: I4d430db443b6fa6d33a625fe07b90279b5d51c12
      fd658131