Commit Graph

394469 Commits

Author SHA1 Message Date
Mikhail Naganov
ca6a9f8fef Update and fix Visualizer class docs
1) Fix the formula for the 'kth frequency' in getFft method:
   since the 'fft' array holds n / 2 frequencies ranging from
   0 to Fs / 2, the correct formula is k*Fs/n.
   Also fix the last frequency index in the table.

2) Move the sample code for calculating magnitudes and phases
   from the fft array from 'onFftDataCapture' to 'getFft', provide
   a link.

3) Fix the sample code which wasn't taking into account that
   fft[0] is the real part of FFT at DC, and fft[1] is the real part
   of FFT at Fs / 2. Improve the sample code by linking the variable
   names closer to the variable names in the documentation.

Bug: 113790190
Test: atest CtsMediaTestCases:VisualizerTest
Change-Id: I07cc9cfcda5b8c44aae2742a26173e7a9475120a
2018-12-04 17:36:40 +00:00
Eugene Susla
b9df101c9e Merge "Call roles granting only when packages changed" 2018-11-30 23:13:50 +00:00
TreeHugger Robot
5cf6abedcb Merge "Make TextView.isSingleLine public" 2018-11-30 22:42:28 +00:00
Lei Yu
950c469c9d Merge "Update scaleType to fitCenter" 2018-11-30 21:22:43 +00:00
TreeHugger Robot
e444d218b7 Merge "Revert "Allow location provider to deep link into permissions UI"" 2018-11-30 21:04:35 +00:00
TreeHugger Robot
a8cb5a8bef Merge "Added plural form for "one"" 2018-11-30 20:38:49 +00:00
TreeHugger Robot
0f15529345 Merge "Renamed a few methods in ActivityRecord (42/n)." 2018-11-30 20:33:49 +00:00
Shuo Qian
0893c2e31d Merge "Add Emergency service categories in ImsCallProfile" 2018-11-30 20:22:01 +00:00
TreeHugger Robot
3d31b4e018 Merge "Don't rely on fallthrough in incident_section_gen" 2018-11-30 20:18:25 +00:00
Pengquan Meng
3ce70560d8 Merge "Add 5G rat type" 2018-11-30 20:10:04 +00:00
Tyler Gunn
961b10fcff Merge "Add telecom test-commands for maintaining role overrides." 2018-11-30 20:03:01 +00:00
TreeHugger Robot
e1b9672d80 Merge "Updates NotificationInfo layout/buttons." 2018-11-30 19:59:18 +00:00
Jim Blackler
f8f70e10ef Merge "Add start time to LmkKillOccurred" 2018-11-30 19:36:11 +00:00
Eugene Susla
abdefbaeeb Call roles granting only when packages changed
This computes and stores a hash of significant (for PermissionController)
packages state for the time when granting last ran.

Test: - enable DEBUG flag
- using logcat ensure roles granted on first bootloader
- adb reboot
- ensure roles granting skipped
- disable a package
- adb reboot
- ensure roles granting ran on boot

Change-Id: Idaea40c0ea34feaedfbe357627201f85e66876d5
2018-11-30 10:58:47 -08:00
Selim Cinek
5b1d16409a Merge "Fixed an issue where the notification could be blank" 2018-11-30 18:44:48 +00:00
Daniel Solomon
94da729e42 Merge "Add a public chromatic adaptation API to ColorSpace" 2018-11-30 18:38:15 +00:00
Misha Wagner
3beb2e460a Merge "Revert "Filter threads that have low total CPU usage for CpuTimePerThreadFreq"" 2018-11-30 18:10:34 +00:00
Misha Wagner
e4babcf3cb Merge changes I56de3aec,Iba86e8e3
* changes:
  Change CpuTimePerThreadFreq to contain all frequencies in one atom
  Remove filtering out frequencies with zero usage for CpuTimePerThreadFreq
2018-11-30 17:52:43 +00:00
Issei Suzuki
46502d7774 Merge "Stop the window manager acquiring a sleep token in dozing state." 2018-11-30 17:38:39 +00:00
Chad Brubaker
56b8ae1e93 Merge "Log if permission usage requirements are not met" 2018-11-30 17:31:44 +00:00
TreeHugger Robot
eb3382cafb Merge "Delete rss_high_watermark_in_bytes field" 2018-11-30 17:24:18 +00:00
Gus Prevas
82ad059b13 Updates NotificationInfo layout/buttons.
This change modifies the UI displayed when the new interruption model is
enabled after long pressing a notification or tapping the settings icon
in the notification side menu.  The text links for blocking the channel,
toggling its importance, or canceling out of the dialog are replaced
with buttons with icons and clearer text descriptions.

Test: atest NotificationInfoTest
Bug: 116622974
Change-Id: I06ead5c4da77319df3ebe4c48d863dede37bf2f4
2018-11-30 11:30:51 -05:00
Misha Wagner
fde6958b8b Change CpuTimePerThreadFreq to contain all frequencies in one atom
Test: make, flash, inspect pull-source output
Bug: 120016054
Change-Id: I56de3aec85d5f82339eb4eb876a1349d66698a63
2018-11-30 16:29:36 +00:00
Aaron Heuckroth
b5ed915803 Merge "Remove setAsMainLooper from CollapsedStatusBarFragmentTest." 2018-11-30 16:04:10 +00:00
Wale Ogunwale
8b19de9467 Renamed a few methods in ActivityRecord (42/n).
This is in preparation for having the ActivityRecord class
extend AppWindowToken where name distinction will be important.
There is no functional change in this CL.

ActivityRecord.realActivity -> mActivityComponent
ActivityRecord.userId -> mUserId
ActivityRecord.getTask() -> getTaskRecord()
ActivityRecord.getStack() -> getActivityStack()
ActivityRecord.service -> mAtmService
WindowContainer.mService -> mWmService

Bug: 80414790
Test: Existing tests pass.
Change-Id: Ie5788db7f2e823c7d5b64c7ce6eaade1c19c4dcd
2018-11-30 07:35:46 -08:00
Issei Suzuki
26fc2c9e46 Stop the window manager acquiring a sleep token in dozing state.
This logic is not necessary anymore, and makes transition of the
windows manager flaky.

Bug: 119217735
Test: atest CtsActivityManagerDeviceTestCases:KeyguardTransitionTests
Change-Id: I953b40737f6673b83d27b096dd1f8e81b0cc6e46
2018-11-30 16:28:07 +01:00
Clara Bayarri
e2b77cdf58 Merge "Fix unsupported api usage in NumberPicker" 2018-11-30 14:52:39 +00:00
Greg Daniel
ef60a0589e Merge "In VulkanManager enable ycbcr feature on VkDevice." 2018-11-30 14:27:28 +00:00
Michal Karpinski
c7bbf2ac02 Merge "Allow background activity starts if realCallingUid is in the foreground" 2018-11-30 13:43:41 +00:00
Rafal Slawik
d03ae420b0 Delete rss_high_watermark_in_bytes field
Reading RSS high-water mark was moved to a separate atom.

Bug: 119598534
Test: atest UidAtomTests#testProcessMemoryState
Test: atest UidAtomTests#testNativeProcessMemoryState
Test: atest MemoryStatUtilTest
Change-Id: I18424ea3f0ab1555febe62df1be97b174e93a55c
2018-11-30 13:35:46 +00:00
TreeHugger Robot
20c0d0dd1a Merge "p2p: fix javadoc tag for class reference" 2018-11-30 13:29:07 +00:00
TreeHugger Robot
b24884e305 Merge "Enforce at least 64 fallback capacity for custom font fallback." 2018-11-30 12:39:25 +00:00
Gustav Sennton
0eca3fe516 Merge "Avoid NPE when adding a smart action with a null icon." 2018-11-30 12:21:37 +00:00
TreeHugger Robot
4e0a3ffac1 Merge "Move WindowManager tests to WmTests" 2018-11-30 11:20:46 +00:00
Clara Bayarri
370a1b508f Fix unsupported api usage in NumberPicker
There is unsupported access to the divider. Exposing the
drawable will be tricky as the widget counts on the drawable
being a certain shape and have certain attributes. However we can
easily expose the thickness as a new attribute and document that
you can customize the divider color via XML.

Bug: 117520784
Test: atest NumberPickerTest (with new test)
Change-Id: Ib7a65c055df3b1f68c8327943fa887c89f57e00c
2018-11-30 11:07:08 +00:00
Mathew Inwood
cdfe54e299 Merge "Include annotation property values in output." 2018-11-30 10:39:43 +00:00
Hyundo Moon
c49b41318a Merge "Rename KeyEvent.isMediaKey() to isMediaSessionKey()" 2018-11-30 10:28:06 +00:00
Jimmy Chen
9ec9c3d399 p2p: fix javadoc tag for class reference
Bug: 64695709
Test: build
Change-Id: I5db49e2bd30d06dfe3bff050b94e318fd3dee974
2018-11-30 17:53:31 +08:00
Mathew Inwood
bd7077065c Include annotation property values in output.
When editing annotations, we want the ability *not* to overwrite any
existing annotation properties already in place. Include any properties
set on the annotation in the output, so that the edit_annotations script
can know that they're there.

The annotation properties are encoded like URL query parameters for
convenience; it makes them easy to encode here & subsequently decode on
the other side (in Python).

Test: m framework-annotation-proc & inpsect output.
Change-Id: I71fb1215ad2790751be336b4955c163bb323a4a6
2018-11-30 09:00:43 +00:00
TreeHugger Robot
0ba5e3d6cb Merge "Making on-screen mic to use VoiceInteraction" 2018-11-30 08:52:27 +00:00
Jimmy Chen
0d7a9a2789 Merge "p2p: WiFi Direct API for Group Creation" 2018-11-30 06:19:21 +00:00
Seigo Nonaka
6b160006e9 Enforce at least 64 fallback capacity for custom font fallback.
Bug: 119620208
Test: atest TypefaceCustomFallbackBuilderTest
Change-Id: Ibf1eaac97a4f940f00ef117f7fb386f72b67b6c5
2018-11-29 21:52:00 -08:00
Tadashi G. Takaoka
bf0d57b9b4 Move WindowManager tests to WmTests
Bug: 113800711
Test: All presubmit and non-flaky tests in WmTests pass
$ tradefed.sh run commandAndExit WmTests \
        --include-annotation android.platform.test.annotations.Presubmit \
        --exclude-annotation androidx.test.filters.FlakyTest
Change-Id: I593eb03c8ee3c297eae85e39434d04138a67ab15
2018-11-30 14:38:03 +09:00
TreeHugger Robot
09c07c3533 Merge "More options to mix floating and nav bar height overlays (1/2)" 2018-11-30 04:57:19 +00:00
Hyundo Moon
9a908db9f4 Rename KeyEvent.isMediaKey() to isMediaSessionKey()
Since not all KEYCODE_MEDIA_* keycodes return true in isMediaKey(),
the naming can give confusion. This CL renames the method to
isMediaSessionKey() and revises its Javadoc.

Bug: 119789707
Test: make -j
Change-Id: I36786ccf5606977e6d971c13d77d950356561bda
2018-11-30 13:54:32 +09:00
Jaewan Kim
c188069fa8 Merge "AML: Make Context#getOpPackageName() public" 2018-11-30 04:49:09 +00:00
TreeHugger Robot
5f0c9331cc Merge "Make AudioManager.FLAG_FROM_KEY as @SystemApi" 2018-11-30 04:03:30 +00:00
TreeHugger Robot
8e1907d610 Merge "Always grant activity recognition permission for location provider" 2018-11-30 02:21:26 +00:00
Matthew Ng
38f7a43d46 More options to mix floating and nav bar height overlays (1/2)
Before slim buttons and floating were mutually exclusive, now they can
both be enabled as overlays so floating with a slim nav height can
occur.

Bug: 112934365
Test: manual
Change-Id: Ic6b3e1216e5395e71c72391f893182e263188572
2018-11-29 17:53:31 -08:00
TreeHugger Robot
c4a8c6d7c2 Merge "Add physical port to DisplayViewport" 2018-11-30 01:49:43 +00:00