audio: use fixed volume on proxy devices

- Use fixed volume on proxy devices(WFD audio)

Change-Id: I298f0284c5de235ca5ede179417c0f7b97e9ed38
ProcessCpuTracker: Fix ArrayIndexOutofBoundsException in tempSpeeds

If time_in_state file is not available mCpuSpeeds is created with size 0
and subsequent call if the file becomes available there is an
ArrayIndexOutofBoundsException.
This change avoids the crash by breaking out of the loop, also adds error
logging

CRs-Fixed: 553569
Change-Id: Id5e219ca1cd3f058f714aecd5902ec2f6c11ae03
Fixing IndexOutOfBounds Exception in ActivityManager

Bypass the iteration to avoid the exception during
the execution of ensureActivityVisibleLocked() because
startSpecificActivityLocked() within the loop may delete
the elements from History stack.

Change-Id: I0fdf098973fb167958959fc49a65a7130fad02d5
MediaRecorder: video: Add H265 encoder

Added support to set HEVC video encoder (H265).

Change-Id: I5b8b408d942aa0562a2fa656079c0b5a7b81303d
Bluetooth: Add interface for A2DP Sink

 - add new constants
 - add new interfaces

Change-Id: I1b9c9544f186d819a40396b7ebaf512f2c76cfb7
Disable generation of tombstone on an ANR The commit: I5b78ce62b26f25d3dc14097e2988ba12c2d77826 (creating seperate files for ANRs traces) provided the following two debug capabilities: (1) renames traces.txt and (2) generates tombstones(for native traces) The second functionalatity is not needed any more since the traces.txt now includes the native traces as well. Generating tombstones for system server causes framework reboot and that should be avoided. This change will prevent dumping of tombstones during ANR.

Change-Id: Ia6785261b8fe536d4aacc78e2f8be552e9335f0e
MediaRecorder: Add pause interface

- add pause in java level
- add pause in jni level

Change-Id: I19372d496870f3729aa28464326995a71aa72299
CRs-Fixed: 587051
audio: add support for incall music

- Add AUDIO_STREAM_INCALL_MUSIC to support
  incall music

Change-Id: I84ac4658107d9f9abba2b496d0a1fd1430ced0d6
Broadcast upstream interface change event independently for IPv4 & IPv6

On change in tethering upstream interface for IPV4 or IPV6 address,
broadcast an intent with the information viz iface name, ip address
type and update type(i.e add or delete).

Change-Id: Ia80738bcf09692209674a47b6c6c1c082a201b16
CRs-Fixed: 680728
Initial commit for HID Client

This patch is initial commit for HID Client

Change-Id: Ife1f54acce79892414ad71d5488fdb659efede59
Bluetooth: Add support for HID Device Role

This patch adds the HID Device Role support in Bluetooth framework.
Also AIDL and callback related files for HID Device role are added
to provide interface for third party applications to communicate with
HID device Service.

Change-Id: Id03a362b7bcfa2e76056fa0197eaac12ce49b5a2
Alarm: Add one more RTC alarm type for poweroff alarm.

Now we use type of RTC_WAKEUP for the poweroff alarm.
Actually lots of other applications also use this type.
But these applications never expect the device will
power on after it has been shut down. So we need to
add dedicated alarm type for the Deskclock or similar
applications.

Change-Id: Ib515d8a737ab73cdd809597ad8cde57030c0a0a1
alarm: add JNI interface for clearing alarm

Add the JNI for clearing cancelled alarm, otherwise kernel driver
would know nothing about the alarm status. E.g. power-off alarm
would not be really cleared in alarm driver even it is cancelled
in the apps/framework.

Change-Id: I65579336240e992a7e6c7ec33325ce4627fd9bec
Add 2 APIs (suspend/resume) in MediaPlayer

- API:suspend() will just pause the player and release all the decoders
  to replace release() which will release the whole player
- API:resume() will just init the decoders again,
  then start() will be called to start to play the streaming

Change-Id: I3e2ffeb50dfe6d156b18416fa8964ff4a3d56a2c
VideoView: Implement the suspend/resume operation in VideoView

- To use the new APIs (suspend/resume) of MediaPlayer
- Add a new status "SUSPENDED"

Change-Id: I7a829b116e5df698fd4b0a5708f06927571d198c
SystemUi: Remove update to Carrier text

Msim makes the carrier text a LinearLayout. Remove the update
to the carrier text which expects it to be a TextView

Change-Id: I1db24a73c500f3443ba024810681325290f58729
audio: Inform audio HAL if it is a voice call initiated by Telephony

setMode() API with IN_CALL mode can be called by any of the Apps.
In HAL, it is required to distinguish if it is a real voice call
or not. Inform to audio HAL if it is a voice call by checking
getPhonestate() updated by telephony.

Change-Id: I20a661f49f6566bdd1e23d6de18b509e2728ef19
PackageManager: avoid use originFile which is removed in InstallArgs

The originFile in InstallArgs structure has been removed. To use
"file" in OriginInfo instead.

Change-Id: I2674c9c191aabb56da016ffa49de9db032533f40
Bluetooth: Handle BT state change

Add foreground flag to state change intent. Fix for few profiles
not syncing with the BT adapter state in multiple BT on/off test
case.

CRs-fixed: 709335

Change-Id: Ice042a21f08566cadc9540aa75cde726b2e86575
frameworks/base: Fix Null-Pointer exception for local WV content.

-When local WV contents are played ,scheme is null
 and null-pointer exception is seen.

-Fix is to add null check for scheme.

Change-Id: I0e56f9d324498fd28bc02030bcffb8e5d6363a17
-CRs-fixed: 716596