Sync phonebook as 'last name, given name' instead of 'given name last
name'.

Change-Id: I661e8fd0b7df6e7bed187110f29de586dd803915
Always follow the user's preferred contact display name format.

Change-Id: I4ed39a28b198ee5bfc4300be203ae302fa951cab
Merge remote-tracking branch 'github/gingerbread' into gingerbread
Merge remote-tracking branch 'github/gingerbread' into gingerbread
Send local time, not GMT, in timestamp.

The missed, incoming and outgoing call list shall always have its
time specified in local time according to PBAP V10r00 chapter
"3.1.4.1 Call History extension".

Change-Id: If0c4733552db3813d636a2f4658e64df1c6a4efe
Handle PBAP response packet as raw bytes

Adjust PBAP response packet to be always handled as bytes.
Currently, it is handled as string when is read from internal data.
This causes the lack of PullvCardListing packet and the abort of
PullPhonebook transaction when multi-byte characters are contained
into corresponding contacts.
This fix will avoid the lack and the abort by writing whole packet
into the target stream as byte.

Change-Id: I17ee3ada25718cc263c9e0942f75605bd971b638
Merge remote-tracking branch 'cyanogen/gingerbread' into gingerbread
Added support for Filter parameter for PBAP function PullPhoneBook

VW Premium car kit sometimes behaves strangely if it receives entries with unexpected fields.
E.g. it does not like mail addresses with additional attributes.

Change-Id: If1376de21727627b4dcb22e40e995d92d7d76695
AOSP-Change-Id: I6d3145d802ad87e5fb47217a213f9bcb12670f60
Signed-off-by: Martin Gerczuk <admin@android-rsap.com>
Fix whitespace.

Change-Id: I260343c37bf6ff90034eb41cd0609a3d92b19745
Revert "Handle PBAP response packet as raw bytes"

This reverts commit deba4376b3caeb367b1aa45c84d9a3b139bde5a4.
Adapt for Gingerbread.

Change-Id: I33f00e9d05099cd075680e31e8d11ed9519804dc
Use alternative display name for VCard composition if required by
settings.

Change-Id: Ie06eb0c3bf84d7a8300f2d7a2e6761aaee20ec68
Send alternative display name if desired by preferences.

Change-Id: I3b2ac9c75f37997a27b836a64a6a64294afbfd68
Merge remote-tracking branch 'github/gingerbread' into gingerbread
Merge remote-tracking branch 'cyanogen/gingerbread' into gingerbread

Conflicts:
	src/com/android/bluetooth/pbap/BluetoothPbapObexServer.java
	src/com/android/bluetooth/pbap/BluetoothPbapVcardComposer.java

Change-Id: I34163768be59aa20f6ce05680571a5d6845bc2cd
It's sufficient to replace the display name once.

Change-Id: I348823c1bf2b080502a9b936768c8d43ac098108
pullVcard of unknown phone number

When performing a pullVcardListing, pullVcardEntry or pullPhonebook
on a phone with a call list which contains an unknown phone number,
the phone returns "-1" as number/name. Corresponding errors exist
for private and payphone numbers, where the phone returns the name
"-2" and "-3", respectively. During pullVcardListing the Name
attribute may contain the phone number, in case the name is not
known. The latter is already implemented today, however, instead of
using e.g. "-1" as name when the phone number is not known the
phone should use Name = "Unknown". Currently there are no other
matching corresponding strings defined for private and payphone
number, which means that for now "Unknown" may be returned as name
also for these numbers.
During pullVcardEntry and during pullPhonebook when the phone number
is unknown then the Number attribute should contain the string
"Unknown". During the same scenario the FN and N attributes both
should contain the string "" when the name is not known. When it
comes to private and payphone numbers the same as for
pullVcardListing apply here, i.e. "Unknown" may be used in the
Number attribute also for these numbers

Change-Id: Icf06e527032588f075ff848bea1ba90bf71e874f
translation: fix HR tranlation

removed double $$ causing exception on format

Change-Id: Ia32c3e20c319a68733dfa0e4ba627f400bb93c31
Also set name to 'Unknown' for unknown numbers.

Change-Id: I2972e5fc9fd6853ed1ca2aa5efed885ec44f62ab
Merge remote-tracking branch 'cyanogen/gingerbread' into gingerbread