Automatic translation import

Change-Id: Ia346b4163a0b0529e76db4350f228da6ccbd12fe
Automatic translation import

Change-Id: Ieb2c9ccda329845dc2b3e50b83a261d84a7708df
Automatic translation import

Change-Id: I11a38c96da37dd0590fd85132ed0905aa0309d39
DownloadProvider: fix the crash when rotate screen.

TrampolineActivity will be recreated when rotate screen,
then the fragment is currently associated with any Activity.
So getActivity() will return a null and caused NullPointerException.

Add the null check before call finish().

CRs-Fixed: 640914

Change-Id: I76f368a597552e824d533b6a66ea23fad4c0cb41
DownloadProvider: add to support download into sdcard storage

When insert into downloads database to start a new download,
will check file uri destination is valid or not, currently it
only support phone storage downloading, what we do is to add
supporting sdcard storage downloading, this will make download
save path setting feature work well.

Change-Id: I7995ae63ec5769103d7ad66bcd677e383ef7f440
DownloadProvider: Create and implement DialogDismissListener.

  - Better way to dismiss a host activity then explicitly calling
  getActivity() finish().

Change-Id: I121fb63d2d57c6c4b22abac2389d5c3d5ccad6e4

Conflicts:
	ui/src/com/android/providers/downloads/ui/TrampolineActivity.java
DownloadProvider: Check if the device actually supports second storage.

Change-Id: I78297ca235e058aecfd0ff5a0e990fc3004b4c77
Automatic translation import

Change-Id: Icc93454edf18c58289062b577da376c3b7884bc9
Automatic translation import

Change-Id: I691e62b9ace9c1b69911d046ee90d942bada3704
Automatic translation import

Change-Id: I04c02834db0d8201dda37180daf9a929c9545e85
Automatic translation import

Change-Id: I6bd9e60d824f746ba0f3d2f62b4e9c5037043769
Merge branch 'kitkat' of https://github.com/Nico60/packages_providers_DownloadProvider into kitkat