コード例 #1
0
 // reason=true means get config when init.
 // reason=false means get config after update
 private void getCellBroadcastConfig() {
   MmsLog.d(LOG_TAG, "getCellBroadcastConfig start");
   onStarted(mLanguagePreference, true);
   SmsBroadcastConfigInfo[] info = EncapsulatedSmsManager.getCellBroadcastSmsConfig(mSlotId);
   handleGetCellBroadcastConfigResponse(info);
   MmsLog.d(LOG_TAG, "getCellBroadcastConfig end");
 }
コード例 #2
0
 private void setCellBroadcastConfig(SmsBroadcastConfigInfo[] objectList) {
   MmsLog.d(LOG_TAG, "setCellBroadcastConfig start");
   onStarted(mLanguagePreference, false);
   boolean isSetConfigSuccess =
       EncapsulatedSmsManager.setCellBroadcastSmsConfig(objectList, objectList, mSlotId);
   handleSetCellBroadcastConfigResponse(isSetConfigSuccess);
   MmsLog.d(LOG_TAG, "setCellBroadcastConfig end isSetConfigSuccess =" + isSetConfigSuccess);
 }
コード例 #3
0
 private void handleSetCellBroadcastConfigResponse(boolean isSetConfigSuccess) {
   onFinished(mLanguagePreference, false);
   onFinished(mAddChannelPreference, false);
   if (!isSetConfigSuccess) {
     onError(mLanguagePreference, EXCEPTION_ERROR);
   }
   SmsBroadcastConfigInfo[] info = EncapsulatedSmsManager.getCellBroadcastSmsConfig(mSlotId);
   handleGetCellBroadcastConfigResponse(info);
 }