@@ -37,6 +37,7 @@ public class AndroidMobileCommandHelper extends MobileCommand {
37
37
*
38
38
* @return a key-value pair. The key is the command name. The value is a {@link Map} command arguments.
39
39
*/
40
+ @ Deprecated
40
41
public static Map .Entry <String , Map <String , ?>> currentActivityCommand () {
41
42
return new AbstractMap .SimpleEntry <>(CURRENT_ACTIVITY , ImmutableMap .of ());
42
43
}
@@ -46,6 +47,7 @@ public class AndroidMobileCommandHelper extends MobileCommand {
46
47
*
47
48
* @return a key-value pair. The key is the command name. The value is a {@link Map} command arguments.
48
49
*/
50
+ @ Deprecated
49
51
public static Map .Entry <String , Map <String , ?>> currentPackageCommand () {
50
52
return new AbstractMap .SimpleEntry <>(GET_CURRENT_PACKAGE , ImmutableMap .of ());
51
53
}
@@ -57,6 +59,7 @@ public class AndroidMobileCommandHelper extends MobileCommand {
57
59
* @param path path to .ec file.
58
60
* @return a key-value pair. The key is the command name. The value is a {@link Map} command arguments.
59
61
*/
62
+ @ Deprecated
60
63
public static Map .Entry <String , Map <String , ?>> endTestCoverageCommand (String intent ,
61
64
String path ) {
62
65
String [] parameters = new String [] {"intent" , "path" };
@@ -117,6 +120,7 @@ public class AndroidMobileCommandHelper extends MobileCommand {
117
120
*
118
121
* @return a key-value pair. The key is the command name. The value is a {@link Map} command arguments.
119
122
*/
123
+ @ Deprecated
120
124
public static Map .Entry <String , Map <String , ?>> getDisplayDensityCommand () {
121
125
return new AbstractMap .SimpleEntry <>(GET_DISPLAY_DENSITY , ImmutableMap .of ());
122
126
}
@@ -126,6 +130,7 @@ public class AndroidMobileCommandHelper extends MobileCommand {
126
130
*
127
131
* @return a key-value pair. The key is the command name. The value is a {@link Map} command arguments.
128
132
*/
133
+ @ Deprecated
129
134
public static Map .Entry <String , Map <String , ?>> getNetworkConnectionCommand () {
130
135
return new AbstractMap .SimpleEntry <>(GET_NETWORK_CONNECTION , ImmutableMap .of ());
131
136
}
@@ -136,6 +141,7 @@ public class AndroidMobileCommandHelper extends MobileCommand {
136
141
*
137
142
* @return a key-value pair. The key is the command name. The value is a {@link Map} command arguments.
138
143
*/
144
+ @ Deprecated
139
145
public static Map .Entry <String , Map <String , ?>> getSystemBarsCommand () {
140
146
return new AbstractMap .SimpleEntry <>(GET_SYSTEM_BARS , ImmutableMap .of ());
141
147
}
@@ -145,6 +151,7 @@ public class AndroidMobileCommandHelper extends MobileCommand {
145
151
*
146
152
* @return a key-value pair. The key is the command name. The value is a {@link Map} command arguments.
147
153
*/
154
+ @ Deprecated
148
155
public static Map .Entry <String , Map <String , ?>> isLockedCommand () {
149
156
return new AbstractMap .SimpleEntry <>(IS_LOCKED , ImmutableMap .of ());
150
157
}
@@ -155,6 +162,7 @@ public class AndroidMobileCommandHelper extends MobileCommand {
155
162
* @param fingerPrintId finger prints stored in Android Keystore system (from 1 to 10)
156
163
* @return a key-value pair. The key is the command name. The value is a {@link Map} command arguments.
157
164
*/
165
+ @ Deprecated
158
166
public static Map .Entry <String , Map <String , ?>> fingerPrintCommand (int fingerPrintId ) {
159
167
return new AbstractMap .SimpleEntry <>(FINGER_PRINT ,
160
168
prepareArguments ("fingerprintId" , fingerPrintId ));
@@ -165,6 +173,7 @@ public class AndroidMobileCommandHelper extends MobileCommand {
165
173
*
166
174
* @return a key-value pair. The key is the command name. The value is a {@link Map} command arguments.
167
175
*/
176
+ @ Deprecated
168
177
public static Map .Entry <String , Map <String , ?>> openNotificationsCommand () {
169
178
return new AbstractMap .SimpleEntry <>(OPEN_NOTIFICATIONS , ImmutableMap .of ());
170
179
}
@@ -175,6 +184,7 @@ public class AndroidMobileCommandHelper extends MobileCommand {
175
184
* @param bitMask The bitmask of the desired connection
176
185
* @return a key-value pair. The key is the command name. The value is a {@link Map} command arguments.
177
186
*/
187
+ @ Deprecated
178
188
public static Map .Entry <String , Map <String , ?>> setConnectionCommand (long bitMask ) {
179
189
String [] parameters = new String [] {"name" , "parameters" };
180
190
Object [] values = new Object [] {"network_connection" , ImmutableMap .of ("type" , bitMask )};
@@ -198,6 +208,7 @@ public class AndroidMobileCommandHelper extends MobileCommand {
198
208
* @return a key-value pair. The key is the command name. The value is a {@link Map} command arguments.
199
209
* @throws IllegalArgumentException when any required argument is empty
200
210
*/
211
+ @ Deprecated
201
212
public static Map .Entry <String , Map <String , ?>> startActivityCommand (String appPackage ,
202
213
String appActivity , String appWaitPackage , String appWaitActivity ,
203
214
String intentAction , String intentCategory , String intentFlags ,
@@ -234,6 +245,7 @@ public class AndroidMobileCommandHelper extends MobileCommand {
234
245
*
235
246
* @return a key-value pair. The key is the command name. The value is a {@link Map} command arguments.
236
247
*/
248
+ @ Deprecated
237
249
public static Map .Entry <String , Map <String , ?>> toggleLocationServicesCommand () {
238
250
return new AbstractMap .SimpleEntry <>(TOGGLE_LOCATION_SERVICES , ImmutableMap .of ());
239
251
}
@@ -243,6 +255,7 @@ public class AndroidMobileCommandHelper extends MobileCommand {
243
255
*
244
256
* @return a key-value pair. The key is the command name. The value is a {@link Map} command arguments.
245
257
*/
258
+ @ Deprecated
246
259
public static Map .Entry <String , Map <String , ?>> unlockCommand () {
247
260
return new AbstractMap .SimpleEntry <>(UNLOCK , ImmutableMap .of ());
248
261
}
@@ -256,6 +269,7 @@ public class AndroidMobileCommandHelper extends MobileCommand {
256
269
* @param value a new value
257
270
* @return a key-value pair. The key is the command name. The value is a {@link Map} command arguments.
258
271
*/
272
+ @ Deprecated
259
273
public static Map .Entry <String , Map <String , ?>> replaceElementValueCommand (
260
274
RemoteWebElement remoteWebElement , String value ) {
261
275
String [] parameters = new String [] {"id" , "value" };
@@ -275,6 +289,7 @@ public class AndroidMobileCommandHelper extends MobileCommand {
275
289
*
276
290
* @return a key-value pair. The key is the command name. The value is a {@link Map} command arguments.
277
291
*/
292
+ @ Deprecated
278
293
public static Map .Entry <String , Map <String , ?>> sendSMSCommand (
279
294
String phoneNumber , String message ) {
280
295
ImmutableMap <String , ?> parameters = ImmutableMap
@@ -294,6 +309,7 @@ public class AndroidMobileCommandHelper extends MobileCommand {
294
309
*
295
310
* @return a key-value pair. The key is the command name. The value is a {@link Map} command arguments.
296
311
*/
312
+ @ Deprecated
297
313
public static Map .Entry <String , Map <String , ?>> gsmCallCommand (
298
314
String phoneNumber , GsmCallActions gsmCallActions ) {
299
315
String [] parameters = new String [] {"phoneNumber" , "action" };
@@ -309,6 +325,7 @@ public class AndroidMobileCommandHelper extends MobileCommand {
309
325
*
310
326
* @return a key-value pair. The key is the command name. The value is a {@link Map} command arguments.
311
327
*/
328
+ @ Deprecated
312
329
public static Map .Entry <String , Map <String , ?>> gsmSignalStrengthCommand (
313
330
GsmSignalStrength gsmSignalStrength ) {
314
331
return new AbstractMap .SimpleEntry <>(GSM_SIGNAL ,
@@ -327,6 +344,7 @@ public class AndroidMobileCommandHelper extends MobileCommand {
327
344
*
328
345
* @return a key-value pair. The key is the command name. The value is a {@link Map} command arguments.
329
346
*/
347
+ @ Deprecated
330
348
public static Map .Entry <String , Map <String , ?>> gsmVoiceCommand (
331
349
GsmVoiceState gsmVoiceState ) {
332
350
return new AbstractMap .SimpleEntry <>(GSM_VOICE ,
@@ -341,6 +359,7 @@ public class AndroidMobileCommandHelper extends MobileCommand {
341
359
*
342
360
* @return a key-value pair. The key is the command name. The value is a {@link Map} command arguments.
343
361
*/
362
+ @ Deprecated
344
363
public static Map .Entry <String , Map <String , ?>> networkSpeedCommand (
345
364
NetworkSpeed networkSpeed ) {
346
365
return new AbstractMap .SimpleEntry <>(NETWORK_SPEED ,
@@ -355,6 +374,7 @@ public class AndroidMobileCommandHelper extends MobileCommand {
355
374
*
356
375
* @return a key-value pair. The key is the command name. The value is a {@link Map} command arguments.
357
376
*/
377
+ @ Deprecated
358
378
public static Map .Entry <String , Map <String , ?>> powerCapacityCommand (
359
379
int percent ) {
360
380
return new AbstractMap .SimpleEntry <>(POWER_CAPACITY ,
@@ -369,6 +389,7 @@ public class AndroidMobileCommandHelper extends MobileCommand {
369
389
*
370
390
* @return a key-value pair. The key is the command name. The value is a {@link Map} command arguments.
371
391
*/
392
+ @ Deprecated
372
393
public static Map .Entry <String , Map <String , ?>> powerACCommand (
373
394
PowerACState powerACState ) {
374
395
return new AbstractMap .SimpleEntry <>(POWER_AC_STATE ,
@@ -380,6 +401,7 @@ public class AndroidMobileCommandHelper extends MobileCommand {
380
401
*
381
402
* @return a key-value pair. The key is the command name. The value is a {@link Map} command arguments.
382
403
*/
404
+ @ Deprecated
383
405
public static Map .Entry <String , Map <String , ?>> toggleWifiCommand () {
384
406
return new AbstractMap .SimpleEntry <>(TOGGLE_WIFI , ImmutableMap .of ());
385
407
}
@@ -389,6 +411,7 @@ public class AndroidMobileCommandHelper extends MobileCommand {
389
411
*
390
412
* @return a key-value pair. The key is the command name. The value is a {@link Map} command arguments.
391
413
*/
414
+ @ Deprecated
392
415
public static Map .Entry <String , Map <String , ?>> toggleAirplaneCommand () {
393
416
return new AbstractMap .SimpleEntry <>(TOGGLE_AIRPLANE_MODE , ImmutableMap .of ());
394
417
}
@@ -398,6 +421,7 @@ public class AndroidMobileCommandHelper extends MobileCommand {
398
421
*
399
422
* @return a key-value pair. The key is the command name. The value is a {@link Map} command arguments.
400
423
*/
424
+ @ Deprecated
401
425
public static Map .Entry <String , Map <String , ?>> toggleDataCommand () {
402
426
return new AbstractMap .SimpleEntry <>(TOGGLE_DATA , ImmutableMap .of ());
403
427
}
0 commit comments