Frameworks: just rearrange a bit

Change-Id: If947f9efc6af5c0d0ac7ce1d0786443722c148a2
Set dreams feature disabled by Default

Change-Id: I102715c1b0376a412282031489e2040f71f0d701
BT: Fix memory leak when BT on & off done many times

Solves a memory leak in BatteryStatsService when Bluetooth
is turn on/off. Solution adds missing close of proxy then
Bluetooth is turned off.

Change-Id: I65f9db298459c7c15f6a10c752992f1d38469445
CRs-Fixed: 476145
avoid IllegalStateException in telephony

If columnIndex is -1, c.getString(columnIndex) makes IllegalStatementException in dialer.
So, the columnIndex should be checked -1 or not before using.

Change-Id: I14acbd81a78f369353baf2270d3037925fccd6e3
FastScroller: Fix to use appropriate index

Fix FastScroller to use appropriate index to determine the
the position of a section while calculating the y coordinates
of thumb. In case of last section, use totalItemCount to determine
next section position.

Change-Id: I89bfd483949b5c14f85303b50380a73b4a4e635e
Wifi: Fix for connection failure between third client and GC.

When third device sends a connection request to the group client, the
existing connection is terminating and also the ongoing connection not
successful.Currently as there is  no use case where third device is
connecting to GC,and the existing onnection getting terminated.This
is addressed by ignoring the new connection request from third client
to GC and the existing connection is intact.

CRs-Fixed: 467049

Change-Id: I486cab9a6286b358b6a8a9ab85b6a7c0977a8a0b
Avoid NullPointerException in getHandler()

Change-Id: I32ddfbece78b07ce54de1560be26b5962deff9e9
Avoid NPE when stop() is called inside callback

stop can be called inside onMotionChange. Since that mLastAcceleration
is null and it makes NPE when mUpdateRunnable is being excuted next
time.

Change-Id: I7ed276ef63eb7fcb8fcf4dedc53eba0b13fdc539
Signed-off-by: Alan Jeon <skyisle@gmail.com>