java.lang.Object | |
↳ | com.android.phone.OtaUtils |
Handles all OTA Call related logic and UI functionality. The InCallScreen interacts with this class to perform an OTA Call. OTA is a CDMA-specific feature: OTA or OTASP == Over The Air service provisioning SPC == Service Programming Code TODO: Include pointer to more detailed documentation.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
OtaUtils.CdmaOtaConfigData | Defines OTA screen configuration items read from config.xml and used to control OTA display. | ||||||||||
OtaUtils.CdmaOtaInCallScreenUiState | The state of the OTA InCallScreen UI. | ||||||||||
OtaUtils.CdmaOtaProvisionData | Defines OTA information that needs to be maintained during an OTA call when display orientation changes. | ||||||||||
OtaUtils.CdmaOtaScreenState | The OTA screen state machine. |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
OTA_FAILURE_DIALOG_TIMEOUT | |||||||||||
OTA_SPC_TIMEOUT |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Clear out all OTA UI widget elements.
| |||||||||||
Get the Ota InCallScreen UI state
| |||||||||||
Starts the OTA provisioning call.
| |||||||||||
Returns true if the phone needs activation.
| |||||||||||
Handle the click events for OTA buttons.
| |||||||||||
Handle OTA unsuccessful notice expiry.
| |||||||||||
When SPC notice times out, force phone to power down.
| |||||||||||
Handle OTA Provision events from Framework.
| |||||||||||
Show Activation Screen when phone powers up and OTA provision is
required.
| |||||||||||
Show the appropriate OTA screen based on the current state of OTA call.
| |||||||||||
Show either programming success dialog when OTA provisioning succeeds, or
programming failure dialog when it fails.
| |||||||||||
Save the Ota InCallScreen UI state
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Clear out all OTA UI widget elements. Needs to get called when OTA call ends or InCallScreen is destroyed.
disableSpeaker | parameter control whether Speaker should be turned off. |
---|
Get the Ota InCallScreen UI state
Starts the OTA provisioning call. If the MIN isn't available yet, it returns false and adds an event to return the request to the calling app when it becomes available.
Returns true if the phone needs activation.
minString | the phone's MIN configuration string |
---|
if the string is invalid | |
IllegalArgumentException |
Handle the click events for OTA buttons.
Handle OTA unsuccessful notice expiry. Dismisses the two-second notice and shows the activation screen.
When SPC notice times out, force phone to power down.
Handle OTA Provision events from Framework. Possible events are: OTA Commit Event - OTA provisioning was successful SPC retries exceeded - SPC failure retries has exceeded, and Phone needs to power down.
Show Activation Screen when phone powers up and OTA provision is required. Also shown when activation fails and user needs to re-attempt it. Contains ACTIVATE and SKIP buttons which allow user to start OTA activation or skip the activation process.
Show the appropriate OTA screen based on the current state of OTA call. Shown whenever calling screen is resumed.
Show either programming success dialog when OTA provisioning succeeds, or programming failure dialog when it fails. See otaShowProgramFailure for more details.
Save the Ota InCallScreen UI state