1 /*
2  * Copyright (C) 2018 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package com.android.internal.telephony;
18 
19 import android.app.PendingIntent;
20 import android.net.Uri;
21 import android.os.Bundle;
22 
23 import java.util.List;
24 
25 /**
26  * Base class for ISms that facilitates forward compatibility with new features.
27  */
28 public class ISmsImplBase extends ISms.Stub {
29 
30     @Override
getAllMessagesFromIccEfForSubscriber(int subId, String callingPkg)31     public List<SmsRawData> getAllMessagesFromIccEfForSubscriber(int subId, String callingPkg) {
32         throw new UnsupportedOperationException();
33     }
34 
35     @Override
updateMessageOnIccEfForSubscriber(int subId, String callingPkg, int messageIndex, int newStatus, byte[] pdu)36     public boolean updateMessageOnIccEfForSubscriber(int subId, String callingPkg, int messageIndex,
37             int newStatus, byte[] pdu) {
38         throw new UnsupportedOperationException();
39     }
40 
41     @Override
copyMessageToIccEfForSubscriber(int subId, String callingPkg, int status, byte[] pdu, byte[] smsc)42     public boolean copyMessageToIccEfForSubscriber(int subId, String callingPkg, int status,
43             byte[] pdu, byte[] smsc) {
44         throw new UnsupportedOperationException();
45     }
46 
47     @Override
sendDataForSubscriber(int subId, String callingPkg, String callingAttributionTag, String destAddr, String scAddr, int destPort, byte[] data, PendingIntent sentIntent, PendingIntent deliveryIntent)48     public void sendDataForSubscriber(int subId, String callingPkg, String callingAttributionTag,
49             String destAddr, String scAddr, int destPort, byte[] data, PendingIntent sentIntent,
50             PendingIntent deliveryIntent) {
51         throw new UnsupportedOperationException();
52     }
53 
54     @Override
sendTextForSubscriber(int subId, String callingPkg, String callingAttributionTag, String destAddr, String scAddr, String text, PendingIntent sentIntent, PendingIntent deliveryIntent, boolean persistMessageForNonDefaultSmsApp, long messageId)55     public void sendTextForSubscriber(int subId, String callingPkg, String callingAttributionTag,
56             String destAddr, String scAddr, String text, PendingIntent sentIntent,
57             PendingIntent deliveryIntent, boolean persistMessageForNonDefaultSmsApp,
58             long messageId) {
59         throw new UnsupportedOperationException();
60     }
61 
62     @Override
sendTextForSubscriberWithOptions(int subId, String callingPkg, String callingAttributionTag, String destAddr, String scAddr, String text, PendingIntent sentIntent, PendingIntent deliveryIntent, boolean persistMessageForNonDefaultSmsApp, int priority, boolean expectMore, int validityPeriod)63     public void sendTextForSubscriberWithOptions(int subId, String callingPkg,
64             String callingAttributionTag, String destAddr, String scAddr, String text,
65             PendingIntent sentIntent, PendingIntent deliveryIntent,
66             boolean persistMessageForNonDefaultSmsApp, int priority, boolean expectMore,
67             int validityPeriod) {
68         throw new UnsupportedOperationException();
69     }
70 
71     @Override
injectSmsPduForSubscriber( int subId, byte[] pdu, String format, PendingIntent receivedIntent)72     public void injectSmsPduForSubscriber(
73             int subId, byte[] pdu, String format, PendingIntent receivedIntent) {
74         throw new UnsupportedOperationException();
75     }
76 
77     @Override
sendMultipartTextForSubscriber(int subId, String callingPkg, String callingAttributionTag, String destinationAddress, String scAddress, List<String> parts, List<PendingIntent> sentIntents, List<PendingIntent> deliveryIntents, boolean persistMessageForNonDefaultSmsApp, long messageId)78     public void sendMultipartTextForSubscriber(int subId, String callingPkg,
79             String callingAttributionTag, String destinationAddress, String scAddress,
80             List<String> parts, List<PendingIntent> sentIntents,
81             List<PendingIntent> deliveryIntents, boolean persistMessageForNonDefaultSmsApp,
82             long messageId) {
83         throw new UnsupportedOperationException();
84     }
85 
86     @Override
sendMultipartTextForSubscriberWithOptions(int subId, String callingPkg, String callingAttributionTag, String destinationAddress, String scAddress, List<String> parts, List<PendingIntent> sentIntents, List<PendingIntent> deliveryIntents, boolean persistMessageForNonDefaultSmsApp, int priority, boolean expectMore, int validityPeriod)87     public void sendMultipartTextForSubscriberWithOptions(int subId, String callingPkg,
88             String callingAttributionTag, String destinationAddress, String scAddress,
89             List<String> parts, List<PendingIntent> sentIntents,
90             List<PendingIntent> deliveryIntents, boolean persistMessageForNonDefaultSmsApp,
91             int priority, boolean expectMore, int validityPeriod) {
92         throw new UnsupportedOperationException();
93     }
94 
95     @Override
enableCellBroadcastForSubscriber(int subId, int messageIdentifier, int ranType)96     public boolean enableCellBroadcastForSubscriber(int subId, int messageIdentifier, int ranType) {
97         throw new UnsupportedOperationException();
98     }
99 
100     @Override
disableCellBroadcastForSubscriber(int subId, int messageIdentifier, int ranType)101     public boolean disableCellBroadcastForSubscriber(int subId, int messageIdentifier,
102             int ranType) {
103         throw new UnsupportedOperationException();
104     }
105 
106     @Override
enableCellBroadcastRangeForSubscriber(int subId, int startMessageId, int endMessageId, int ranType)107     public boolean enableCellBroadcastRangeForSubscriber(int subId, int startMessageId,
108             int endMessageId, int ranType) {
109         throw new UnsupportedOperationException();
110     }
111 
112     @Override
disableCellBroadcastRangeForSubscriber(int subId, int startMessageId, int endMessageId, int ranType)113     public boolean disableCellBroadcastRangeForSubscriber(int subId, int startMessageId,
114             int endMessageId, int ranType) {
115         throw new UnsupportedOperationException();
116     }
117 
118     @Override
getPremiumSmsPermission(String packageName)119     public int getPremiumSmsPermission(String packageName) {
120         throw new UnsupportedOperationException();
121     }
122 
123     @Override
getPremiumSmsPermissionForSubscriber(int subId, String packageName)124     public int getPremiumSmsPermissionForSubscriber(int subId, String packageName) {
125         throw new UnsupportedOperationException();
126     }
127 
128     @Override
setPremiumSmsPermission(String packageName, int permission)129     public void setPremiumSmsPermission(String packageName, int permission) {
130         throw new UnsupportedOperationException();
131     }
132 
133     @Override
setPremiumSmsPermissionForSubscriber(int subId, String packageName, int permission)134     public void setPremiumSmsPermissionForSubscriber(int subId, String packageName,
135             int permission) {
136         throw new UnsupportedOperationException();
137     }
138 
139     @Override
isImsSmsSupportedForSubscriber(int subId)140     public boolean isImsSmsSupportedForSubscriber(int subId) {
141         throw new UnsupportedOperationException();
142     }
143 
144     @Override
isSmsSimPickActivityNeeded(int subId)145     public boolean isSmsSimPickActivityNeeded(int subId) {
146         throw new UnsupportedOperationException();
147     }
148 
149     @Override
getPreferredSmsSubscription()150     public int getPreferredSmsSubscription() {
151         throw new UnsupportedOperationException();
152     }
153 
154     @Override
getImsSmsFormatForSubscriber(int subId)155     public String getImsSmsFormatForSubscriber(int subId) {
156         throw new UnsupportedOperationException();
157     }
158 
159     @Override
isSMSPromptEnabled()160     public boolean isSMSPromptEnabled() {
161         throw new UnsupportedOperationException();
162     }
163 
164     @Override
sendStoredText(int subId, String callingPkg, String callingAttributionTag, Uri messageUri, String scAddress, PendingIntent sentIntent, PendingIntent deliveryIntent)165     public void sendStoredText(int subId, String callingPkg, String callingAttributionTag,
166             Uri messageUri, String scAddress, PendingIntent sentIntent,
167             PendingIntent deliveryIntent) {
168         throw new UnsupportedOperationException();
169     }
170 
171     @Override
sendStoredMultipartText(int subId, String callingPkg, String callingAttributionTag, Uri messageUri, String scAddress, List<PendingIntent> sentIntents, List<PendingIntent> deliveryIntents)172     public void sendStoredMultipartText(int subId, String callingPkg, String callingAttributionTag,
173             Uri messageUri, String scAddress, List<PendingIntent> sentIntents,
174             List<PendingIntent> deliveryIntents) {
175         throw new UnsupportedOperationException();
176     }
177 
178     @Override
getCarrierConfigValuesForSubscriber(int subId)179     public Bundle getCarrierConfigValuesForSubscriber(int subId) {
180         throw new UnsupportedOperationException();
181     }
182 
183     @Override
createAppSpecificSmsToken(int subId, String callingPkg, PendingIntent intent)184     public String createAppSpecificSmsToken(int subId, String callingPkg, PendingIntent intent) {
185         throw new UnsupportedOperationException();
186     }
187 
188     @Override
createAppSpecificSmsTokenWithPackageInfo( int subId, String callingPkg, String prefixes, PendingIntent intent)189     public String createAppSpecificSmsTokenWithPackageInfo(
190             int subId, String callingPkg, String prefixes, PendingIntent intent) {
191         throw new UnsupportedOperationException();
192     }
193 
194     @Override
setStorageMonitorMemoryStatusOverride(int subId, boolean storageAvailable)195     public void setStorageMonitorMemoryStatusOverride(int subId, boolean storageAvailable) {
196         throw new UnsupportedOperationException();
197     }
198 
199     @Override
clearStorageMonitorMemoryStatusOverride(int subId)200     public void clearStorageMonitorMemoryStatusOverride(int subId) {
201         throw new UnsupportedOperationException();
202     }
203 
204     @Override
checkSmsShortCodeDestination(int subid, String callingPackage, String callingFeatureId, String destAddress, String countryIso)205     public int checkSmsShortCodeDestination(int subid, String callingPackage,
206             String callingFeatureId, String destAddress, String countryIso) {
207         throw new UnsupportedOperationException();
208     }
209 
210     @Override
getSmscAddressFromIccEfForSubscriber(int subId, String callingPackage)211     public String getSmscAddressFromIccEfForSubscriber(int subId, String callingPackage) {
212         throw new UnsupportedOperationException();
213     }
214 
215     @Override
setSmscAddressOnIccEfForSubscriber( String smsc, int subId, String callingPackage)216     public boolean setSmscAddressOnIccEfForSubscriber(
217             String smsc, int subId, String callingPackage) {
218         throw new UnsupportedOperationException();
219     }
220 
221     @Override
getSmsCapacityOnIccForSubscriber(int subId)222     public int getSmsCapacityOnIccForSubscriber(int subId) {
223         throw new UnsupportedOperationException();
224     }
225 
226     @Override
resetAllCellBroadcastRanges(int subId)227     public boolean resetAllCellBroadcastRanges(int subId) {
228         throw new UnsupportedOperationException();
229     }
230 
231     @Override
getWapMessageSize(String locationUrl)232     public long getWapMessageSize(String locationUrl) {
233         throw new UnsupportedOperationException();
234     }
235 
236 }
237