Commit Graph

1256 Commits

Author SHA1 Message Date
Hung-ying Tyan
0ee51e04fb Allow OnCancelListener and OnDismissListener in Settings app
for the framework-managed dialogs.

DialogFragment acts as both listeners so the application cannot set both
listeners in the embedded dialog. New hooks are added in SettingsDialogFragment
so that settings apps can do so for the framework-managed dialogs.

Bug: 3386670
Change-Id: I144e7c4ccf7f86c61f6079fa86d830c709335af1
2011-01-25 17:31:26 +08:00
Amith Yamasani
b409b904d6 Bring back the MDN (phone number) status even if there's no voice.
Needed for carrier customer support purposes.

Bug: 3351493

Change "My phone number" string to "MDN".

Change-Id: Icee0f97348034a9fb7f79a3c48868d5f74edabb1
2011-01-24 11:40:31 -08:00
Kenny Root
3785e390d2 Don't show separate option for erasing USB storage
On devices with emulated USB storage or SD card, factory reset will wipe
all data from that area. Given that, it doesn't make sense to show a
different option for wiping USB storage.

Bug: 3242568
Change-Id: I257bdde06141f14381c8c09ce6a42c18d7080efd
2011-01-18 15:14:32 -08:00
Vasu Nori
fdf7220a03 bug:3308791 appusage should include space used on /sdcard
when "application usage" is clicked on, drop the screen into
Settings --> Applications --> Manage Applications
(all tab, sorted by size)
Change-Id: I64e11ae9a92529b5fb2781941e532951ad3d04c1
2011-01-18 13:19:13 -08:00
Vasu Nori
d31f4925d1 bug:3343038 reset mAppsSize everytime ALL package sizes are computed
Change-Id: I981d84a165777246dd9744b0f8f7bc6fc0cb3e33
2011-01-16 17:22:17 -08:00
Amith Yamasani
ffe813c380 Remove phone number status conditionally for devices without voice.
Bug: 3041861

Change-Id: I36fb6c584c24b995da0ac4e3b41d860f3a6f5396
2011-01-11 12:18:28 -08:00
Amith Yamasani
998da3332b Recheck the storage sizes when Storage settings is resumed.
Bug: 3312629

When the Storage fragment is displayed, invalidate the measurement
object so that it recomputes the used space on all partitions.
2011-01-05 09:09:23 -08:00
Kenny Root
42a92e83a1 Add minTickWidth for the bar chart
At jsharkey's request.

Change-Id: Ic489e534fe793fc7ec3fd2bedc5bb256be99daec
2010-12-17 14:55:26 -08:00
Kenny Root
e4330890d6 Refactor memory measurement
Move out all the memory measurement to a separate class that can cache
all of its data through orientation changes.

Tweak the display to make it draw large squares for the legend instead
of a 1x1 square. Add padding to the percentage bar chart.

Change-Id: I4cd5bc4ba31a422a55740e8f58e5e571cf9866a5
2010-12-17 09:32:45 -08:00
Mike Lockwood
bbef4f9a7d Revert: Add checkbox to enable PTP USB mode.
Change-Id: I7c00c3c3c5da66a31a68fe0767302d2cdda526a1
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-12-15 14:23:04 -08:00
Mike Lockwood
b8f9ab6792 Rename android.hardware.Usb to UsbManager
Change-Id: Id0c0659c29190609bf9ccf4acb56b9402157f41a
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-12-09 22:35:37 -08:00
Kenny Root
511c8cf103 Add usage bar chart to storage preferences
Change-Id: Ic3c118ac9194e226e6384e01c9ea7e150b1d9521
2010-12-06 09:34:12 -08:00
Dan Morrill
45e3000666 Merge commit '593a7049f52d46a4e47162e2e3f2c5730e8ccfd8' into mergefix
Conflicts:
	res/values/strings.xml
	src/com/android/settings/deviceinfo/Memory.java

Change-Id: Id481ad234f2e74bdef66ea9485a548f11f0cab84
2010-10-18 15:23:16 -07:00
Dianne Hackborn
1337d0f70b Implement issue #3094621 and #3094609 - wipe sd card
3094621: add "wipe sd card" option to factory data reset
3094609: collapse unmount/format into one command

Implements requested UI changes.  Also some final tweaks to
Manage Applications.

Change-Id: I0219195dd0c74d8c003ef1c3f6e09714859d7f89
2010-10-16 16:27:25 -07:00
Mike Lockwood
3d713b162e Add checkbox to enable PTP USB mode.
Change-Id: Icb139cc3d1077565fb8dbe9917d87c7337f59797
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-08-31 14:38:44 -04:00
Amith Yamasani
d79934731c Refactor settings top level activities to use fragments.
Added a base class SettingsPreferenceFragment from which the settings activities should
be derived so that they can behave like fragments. It contains some commonly called
utility methods and dialog conversion to DialogFragment.

Some of the top-level activities can be launched directly without the left pane.
Settings.java acts as a proxy activity that contains just that settings fragment without
the left pane.

There are still a lot of second and third level activities that need to be fragmentized.
This is just the first pass to test the 2-pane layout.
2010-08-18 22:59:33 -07:00
Suchi Amalapurapu
3d503e356f When unmounting the sdcard, we are currently checking for apps that
have open file references on the sdcard. We also have to check for apps on sd
that are currently running. Use the new ActivityManager api to get a list of these apps before deciding to show the dialog.

Change-Id: Idb00fcbd0a3f314d75ee1662cb2b10a84569527a
2010-03-24 09:08:40 -07:00
Suchi Amalapurapu
6f58b1b426 The getStorageUsers only returns list of storage users accessing the sdcard.
We also have to check if applications on sdcard are currently running.

Change-Id: I4b6478bc834e956f963735f69829c5ba4c7fb8c2
2010-03-23 15:17:52 -07:00
David Brown
f42d5e7e2e Fix 2520977: NPE in com.android.settings.deviceinfo.Status
In normal operation, Phone.getLine1Number() returns an empty string if the
device doesn't know its own phone number for some reason.  However the
monkey caught a case where it was returning null, which crashed the
Settings -> About Phone -> Status app.

However the javadoc for Phone.getLine1Number() *does* clearly say "May
return null if not available or the SIM is not ready", so the Status app
*should* gracefully handle this.

Now it does.  (We display this case as "Unknown", just like if we get an
empty string.)

FWIW I grepped thru the rest of the code base for other uses of
getLine1Number(), and everybody else *does* handle null gracefully except
for one case in apps/Mms, which I'll open a separate bug about.

Bug: 2520977
Change-Id: I173561f903f116dbdc2b7c32b8011b59a9eb29d7
2010-03-17 23:03:45 -07:00
Jeff Hamilton
f25b3e04db Format the phone number when displaying in the status settings panel.
Change-Id: I12e437696ebfa6ca8dcdc373f1387fd98e451e50
2010-03-15 17:02:40 -05:00
Suchi Amalapurapu
29d587fa18 Add dialog when ejecting sdcard
Remove some dead code
2010-02-24 20:30:09 -08:00
San Mehat
efb26fd219 Settings: sdcard: Refactor unmount calls for new api
Signed-off-by: San Mehat <san@google.com>
2010-02-18 11:48:49 -08:00
San Mehat
a2175d1df2 Settings: Refresh sd settings screen after mount/unmount
Signed-off-by: San Mehat <san@google.com>
2010-02-08 16:26:16 -08:00
San Mehat
1e60c9603e Settings: Refactor for new API and remove some unused references / imports
Signed-off-by: San Mehat <san@google.com>
2010-02-08 16:26:16 -08:00
San Mehat
c4e8d7e21a Settings: Refactor for StorageManager namespace change
Signed-off-by: San Mehat <san@google.com>
2010-02-02 12:54:46 -08:00
San Mehat
4a3d713f3a Settings: Refactor for new API & remove obsolete setting
Signed-off-by: San Mehat <san@google.com>
2010-02-02 11:24:29 -08:00
San Mehat
33b0202273 Settings: Switch to new MountService api names
Signed-off-by: San Mehat <san@google.com>
2010-01-12 12:22:37 -08:00
San Mehat
35351faed3 settings: Change unmount button to a mount/unmount toggle
Signed-off-by: San Mehat <san@google.com>
2010-01-06 21:41:47 -08:00
Nick Pelly
d1a04291c5 Update application code for BluetoothAdapter.getDefaultAdapter().
Change-Id: Ic8f2188a28631f55ceb048daff545ca5e6053f92
DrNo: eastham
Bug: 2158765
Joke: When is a car not a car? When it turns into a driveway.
2009-10-08 01:03:34 +02:00
Nick Pelly
d63c011225 Bluetooth: Update Settings.apk to match BT API change.
Split BluetoothDevice into BluetoothDevice and BluetoothAdapter.

BluetoothAdapter: Represents the local BT adapter. Operations on the local
                  adapter (start a scan, etc).
BluetoothDevice: Represents a remote BT device. Operations on remote devices
                 (pair, connect, etc).
2009-08-17 17:09:44 -07:00
John Wang
4c47009172 am ed47f1e4: Fix the NullPointerException in Status Info.
Merge commit 'ed47f1e497abf5ad31b1c7035ae04478e9932986'

* commit 'ed47f1e497abf5ad31b1c7035ae04478e9932986':
  Fix the NullPointerException in Status Info.
2009-07-30 18:58:55 -07:00
John Wang
ed47f1e497 Fix the NullPointerException in Status Info.
Fix bug 1964037 Phone states activity fail. It only happens in Zaku build. Zaku build overlay the device_info_status.xml under vendor/docomo and don't have CDMA related preference. Status.java will hit the NullPointerException when trying to remove the non-exist preferences.

	modified:   src/com/android/settings/deviceinfo/Status.java
2009-07-30 18:50:36 -07:00
Chouting Zhang
620965ccc5 am 386278a3: CDMA Settings additions
Merge commit '386278a338d740dce95b7fa1514662b0eb5683e4'

* commit '386278a338d740dce95b7fa1514662b0eb5683e4':
  CDMA Settings additions
2009-06-25 22:06:36 -07:00
Chouting Zhang
386278a338 CDMA Settings additions
This patch implement CDMA Settings features
1. Add code to get MEID, MIN, and PRL value if the phone is a CDMA Phone
2. Display MEID, MIN, and PRL on Settings screen if it is a CDMA phone
3. Do not display IMSI, IMEI, and IMEI SV for a CDMA phone
2009-06-25 22:01:32 -07:00
Android (Google) Code Review
30f5b68b75 am a78edb54: Merge change 4127 into donut
Merge commit 'a78edb54182da5881f2f1e6bc76ae027a9a6f3e3'

* commit 'a78edb54182da5881f2f1e6bc76ae027a9a6f3e3':
  Make the SD Card settings use the system file size formatter.
2009-06-15 10:11:46 -07:00
Eric Fischer
85f4357a4d Make the SD Card settings use the system file size formatter.
The one built into the settings class wasn't internationalized.
2009-06-12 18:10:25 -07:00
Wink Saville
402a740f64 am e2a14e35: Update some TODO comments.
Merge commit 'e2a14e35aa525de6cbc0179c67ec971295f2db03'

* commit 'e2a14e35aa525de6cbc0179c67ec971295f2db03':
  Update some TODO comments.
2009-06-01 14:27:01 -07:00
Wink Saville
e2a14e35aa Update some TODO comments. 2009-05-29 14:06:30 -07:00
Android (Google) Code Review
76dce58435 am 81807831: Merge change 1582 into donut
Merge commit '818078310759e3fbd227c578e20a54e935b1b92a'

* commit '818078310759e3fbd227c578e20a54e935b1b92a':
  Teleca 2b changes.
2009-05-18 23:56:38 -07:00
Wink Saville
ead6928894 Teleca 2b changes. 2009-05-15 14:08:46 -07:00
Michael Chan
8762093e00 Findbug fixes in Settings app
modified:   src/com/android/settings/ApnPreference.java
	modified:   src/com/android/settings/ApnSettings.java
	modified:   src/com/android/settings/BandMode.java
	modified:   src/com/android/settings/BatteryInfo.java
	modified:   src/com/android/settings/LanguageSettings.java
	modified:   src/com/android/settings/ManageApplications.java
	modified:   src/com/android/settings/RadioInfo.java
	modified:   src/com/android/settings/SdCardSettings.java
	modified:   src/com/android/settings/UsageStats.java
	modified:   src/com/android/settings/ZoneList.java
	modified:   src/com/android/settings/bluetooth/LocalBluetoothDevice.java
	modified:   src/com/android/settings/deviceinfo/Status.java
	modified:   src/com/android/settings/quicklaunch/QuickLaunchSettings.java
	modified:   src/com/android/settings/wifi/AccessPointDialog.java
	modified:   src/com/android/settings/wifi/AccessPointPreference.java
	modified:   src/com/android/settings/wifi/WifiLayer.java
	modified:   src/com/android/settings/wifi/WifiSettings.java
2009-05-14 17:47:02 -07:00
Wink Saville
c38866843e AI 144245: Fix merge conflict for megering in the CDMA changes in to master from donutburger.
Automated import of CL 144245
2009-04-02 11:00:56 -07:00
Wink Saville
f9e024198d AI 144185: Integrate cdma into the main code base.
Automated import of CL 144185
2009-04-02 01:37:03 -07:00
Evan Millar
5990cc129c Automated import from //branches/master/...@142436,142436 2009-03-24 22:50:12 -07:00
Evan Millar
83368552d1 Automated import from //branches/donutburger/...@142431,142431 2009-03-24 22:42:51 -07:00
Mike Ritter
d166402fc3 Automated import from //branches/donutburger/...@141180,141180 2009-03-24 19:44:13 -07:00
Mike Ritter
18f3afb9cd Automated import from //branches/master/...@141186,141186 2009-03-24 19:43:56 -07:00
The Android Open Source Project
72ed6feab2 auto import from //branches/cupcake_rel/...@138607 2009-03-13 13:04:25 -07:00
The Android Open Source Project
afc4ab2ffb auto import from //depot/cupcake/@135843 2009-03-03 19:32:34 -08:00
The Android Open Source Project
4e14e5ccbf auto import from //depot/cupcake/@135843 2009-03-03 18:28:52 -08:00