summaryrefslogtreecommitdiff
path: root/opengl/java/android/opengl/Texture.java
diff options
context:
space:
mode:
authorDavid Brown <dab@google.com>2011-11-08 11:11:56 -0800
committerDavid Brown <dab@google.com>2011-11-08 15:51:50 -0800
commit1a811695f9ae2ac806a64fd3b6c440c83262dc52 (patch)
treeb035e65d3923fb1c8447cc6ec604993378733c38 /opengl/java/android/opengl/Texture.java
parentb445362bd67cf596cfdd39db2dbe8f42cf9a119a (diff)
Add "potential" variants for PhoneNumberUtils.isEmergencyNumber()
The phone app needs a way to distinguish between (a) numbers that are definitely emergency numbers, and (b) numbers that *might* result in an emergency call being dialed, but aren't specifically emergency numbers themselves. (The phone app needs this distinction in order to enforce the restriction that 3rd party apps should not be allowed to make emergency calls using the ACTION_CALL intent, while still making sure that the in-call UI only displays the "emergency call" state for numbers that are *definitely* emergency numbers. See bug 5493790 for the full details;) So this change adds a full set of "isPotentialEmergencyNumber()" methods to go along with the "isEmergencyNumber()" methods we've had all along. The "potential" variants behave identically to the original methods, *except* that they ultimately use number.startsWith() rather than number.equals() when comparing against the list of emergency numbers. TESTED: - Unit test 'PhoneNumberUtilsTest#testIsEmergencyNumber' passes. (The PhoneNumberUtilsTest class doesn't pass in its entirety, but it was broken before this change also.) - Also see the commit description of change Ib949fea3c0ce6b341a90e617a03ba3f22c69018b for the exact tests I ran against the phone app. This change should be submitted along with Change-Id: Ib949fea3c0ce6b341a90e617a03ba3f22c69018b in apps/Phone (but this change must go in first to avoid breaking the build.) Bug: 5493790 Change-Id: Ic528cfcc555734cdaf4ca8a18a50199771ba49b1
Diffstat (limited to 'opengl/java/android/opengl/Texture.java')
0 files changed, 0 insertions, 0 deletions