id int32 0 165k | repo stringlengths 7 58 | path stringlengths 12 218 | func_name stringlengths 3 140 | original_string stringlengths 73 34.1k | language stringclasses 1 value | code stringlengths 73 34.1k | code_tokens list | docstring stringlengths 3 16k | docstring_tokens list | sha stringlengths 40 40 | url stringlengths 105 339 |
|---|---|---|---|---|---|---|---|---|---|---|---|
30,100 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.waitForView | public <T extends View> boolean waitForView(View view){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "waitForView("+view+")");
}
return waiter.waitForView(view);
} | java | public <T extends View> boolean waitForView(View view){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "waitForView("+view+")");
}
return waiter.waitForView(view);
} | [
"public",
"<",
"T",
"extends",
"View",
">",
"boolean",
"waitForView",
"(",
"View",
"view",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"waitForView(\"",
"+",
"view",
"+"... | Waits for the specified View. Default timeout is 20 seconds.
@param view the {@link View} object to wait for
@return {@code true} if the {@link View} is displayed and {@code false} if it is not displayed before the timeout | [
"Waits",
"for",
"the",
"specified",
"View",
".",
"Default",
"timeout",
"is",
"20",
"seconds",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L577-L583 |
30,101 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.waitForView | public <T extends View> boolean waitForView(View view, int timeout, boolean scroll){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "waitForView("+view+", "+timeout+", "+scroll+")");
}
boolean checkIsShown = false;
if(!scroll){
checkIsShown = true;
}
View viewToWaitFor = waiter.waitForView(view, timeout, scroll, checkIsShown);
if(viewToWaitFor != null)
return true;
return false;
} | java | public <T extends View> boolean waitForView(View view, int timeout, boolean scroll){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "waitForView("+view+", "+timeout+", "+scroll+")");
}
boolean checkIsShown = false;
if(!scroll){
checkIsShown = true;
}
View viewToWaitFor = waiter.waitForView(view, timeout, scroll, checkIsShown);
if(viewToWaitFor != null)
return true;
return false;
} | [
"public",
"<",
"T",
"extends",
"View",
">",
"boolean",
"waitForView",
"(",
"View",
"view",
",",
"int",
"timeout",
",",
"boolean",
"scroll",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLog... | Waits for the specified View.
@param view the {@link View} object to wait for
@param timeout the amount of time in milliseconds to wait
@param scroll {@code true} if scrolling should be performed
@return {@code true} if the {@link View} is displayed and {@code false} if it is not displayed before the timeout | [
"Waits",
"for",
"the",
"specified",
"View",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L594-L611 |
30,102 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.waitForView | public <T extends View> boolean waitForView(final Class<T> viewClass, final int minimumNumberOfMatches, final int timeout){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "waitForView("+viewClass+", "+minimumNumberOfMatches+", "+timeout+")");
}
int index = minimumNumberOfMatches-1;
if(index < 1)
index = 0;
return waiter.waitForView(viewClass, index, timeout, true);
} | java | public <T extends View> boolean waitForView(final Class<T> viewClass, final int minimumNumberOfMatches, final int timeout){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "waitForView("+viewClass+", "+minimumNumberOfMatches+", "+timeout+")");
}
int index = minimumNumberOfMatches-1;
if(index < 1)
index = 0;
return waiter.waitForView(viewClass, index, timeout, true);
} | [
"public",
"<",
"T",
"extends",
"View",
">",
"boolean",
"waitForView",
"(",
"final",
"Class",
"<",
"T",
">",
"viewClass",
",",
"final",
"int",
"minimumNumberOfMatches",
",",
"final",
"int",
"timeout",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")... | Waits for a View matching the specified class.
@param viewClass the {@link View} class to wait for
@param minimumNumberOfMatches the minimum number of matches that are expected to be found. {@code 0} means any number of matches
@param timeout the amount of time in milliseconds to wait
@return {@code true} if the {@link View} is displayed and {@code false} if it is not displayed before the timeout | [
"Waits",
"for",
"a",
"View",
"matching",
"the",
"specified",
"class",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L622-L633 |
30,103 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.waitForWebElement | public boolean waitForWebElement(By by){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "waitForWebElement("+by+")");
}
return (waiter.waitForWebElement(by, 0, Timeout.getLargeTimeout(), true) != null);
} | java | public boolean waitForWebElement(By by){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "waitForWebElement("+by+")");
}
return (waiter.waitForWebElement(by, 0, Timeout.getLargeTimeout(), true) != null);
} | [
"public",
"boolean",
"waitForWebElement",
"(",
"By",
"by",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"waitForWebElement(\"",
"+",
"by",
"+",
"\")\"",
")",
";",
"}",
"r... | Waits for a WebElement matching the specified By object. Default timeout is 20 seconds.
@param by the By object. Examples are: {@code By.id("id")} and {@code By.name("name")}
@return {@code true} if the {@link WebElement} is displayed and {@code false} if it is not displayed before the timeout | [
"Waits",
"for",
"a",
"WebElement",
"matching",
"the",
"specified",
"By",
"object",
".",
"Default",
"timeout",
"is",
"20",
"seconds",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L665-L671 |
30,104 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.waitForWebElement | public boolean waitForWebElement(By by, int timeout, boolean scroll){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "waitForWebElement("+by+", "+timeout+", "+scroll+")");
}
return (waiter.waitForWebElement(by, 0, timeout, scroll) != null);
} | java | public boolean waitForWebElement(By by, int timeout, boolean scroll){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "waitForWebElement("+by+", "+timeout+", "+scroll+")");
}
return (waiter.waitForWebElement(by, 0, timeout, scroll) != null);
} | [
"public",
"boolean",
"waitForWebElement",
"(",
"By",
"by",
",",
"int",
"timeout",
",",
"boolean",
"scroll",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"waitForWebElement(\"... | Waits for a WebElement matching the specified By object.
@param by the By object. Examples are: {@code By.id("id")} and {@code By.name("name")}
@param timeout the the amount of time in milliseconds to wait
@param scroll {@code true} if scrolling should be performed
@return {@code true} if the {@link WebElement} is displayed and {@code false} if it is not displayed before the timeout | [
"Waits",
"for",
"a",
"WebElement",
"matching",
"the",
"specified",
"By",
"object",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L682-L688 |
30,105 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.searchEditText | public boolean searchEditText(String text) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "searchEditText(\""+text+"\")");
}
return searcher.searchWithTimeoutFor(EditText.class, text, 1, true, false);
} | java | public boolean searchEditText(String text) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "searchEditText(\""+text+"\")");
}
return searcher.searchWithTimeoutFor(EditText.class, text, 1, true, false);
} | [
"public",
"boolean",
"searchEditText",
"(",
"String",
"text",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"searchEditText(\\\"\"",
"+",
"text",
"+",
"\"\\\")\"",
")",
";",
... | Searches for a text in the EditText objects currently displayed and returns true if found. Will automatically scroll when needed.
@param text the text to search for
@return {@code true} if an {@link EditText} displaying the specified text is found or {@code false} if it is not found | [
"Searches",
"for",
"a",
"text",
"in",
"the",
"EditText",
"objects",
"currently",
"displayed",
"and",
"returns",
"true",
"if",
"found",
".",
"Will",
"automatically",
"scroll",
"when",
"needed",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L731-L737 |
30,106 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.getCurrentActivity | public Activity getCurrentActivity() {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "getCurrentActivity()");
}
return activityUtils.getCurrentActivity(false);
} | java | public Activity getCurrentActivity() {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "getCurrentActivity()");
}
return activityUtils.getCurrentActivity(false);
} | [
"public",
"Activity",
"getCurrentActivity",
"(",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"getCurrentActivity()\"",
")",
";",
"}",
"return",
"activityUtils",
".",
"getCurre... | Returns the current Activity.
@return the current Activity | [
"Returns",
"the",
"current",
"Activity",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L962-L968 |
30,107 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.assertCurrentActivity | public void assertCurrentActivity(String message, String name, boolean isNewInstance)
{
if(config.commandLogging){
Log.d(config.commandLoggingTag, "assertCurrentActivity("+message+", "+name+", "+isNewInstance+")");
}
asserter.assertCurrentActivity(message, name, isNewInstance);
} | java | public void assertCurrentActivity(String message, String name, boolean isNewInstance)
{
if(config.commandLogging){
Log.d(config.commandLoggingTag, "assertCurrentActivity("+message+", "+name+", "+isNewInstance+")");
}
asserter.assertCurrentActivity(message, name, isNewInstance);
} | [
"public",
"void",
"assertCurrentActivity",
"(",
"String",
"message",
",",
"String",
"name",
",",
"boolean",
"isNewInstance",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"ass... | Asserts that the Activity matching the specified name is active, with the possibility to
verify that the expected Activity is a new instance of the Activity.
@param message the message to display if the assert fails
@param name the name of the Activity that is expected to be active. Example is: {@code "MyActivity"}
@param isNewInstance {@code true} if the expected {@link Activity} is a new instance of the {@link Activity} | [
"Asserts",
"that",
"the",
"Activity",
"matching",
"the",
"specified",
"name",
"is",
"active",
"with",
"the",
"possibility",
"to",
"verify",
"that",
"the",
"expected",
"Activity",
"is",
"a",
"new",
"instance",
"of",
"the",
"Activity",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L1013-L1020 |
30,108 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.assertCurrentActivity | @SuppressWarnings("unchecked")
public void assertCurrentActivity(String message, @SuppressWarnings("rawtypes") Class activityClass,
boolean isNewInstance) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "assertCurrentActivity(\""+message+"\", "+activityClass+", "+isNewInstance+")");
}
asserter.assertCurrentActivity(message, activityClass, isNewInstance);
} | java | @SuppressWarnings("unchecked")
public void assertCurrentActivity(String message, @SuppressWarnings("rawtypes") Class activityClass,
boolean isNewInstance) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "assertCurrentActivity(\""+message+"\", "+activityClass+", "+isNewInstance+")");
}
asserter.assertCurrentActivity(message, activityClass, isNewInstance);
} | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"public",
"void",
"assertCurrentActivity",
"(",
"String",
"message",
",",
"@",
"SuppressWarnings",
"(",
"\"rawtypes\"",
")",
"Class",
"activityClass",
",",
"boolean",
"isNewInstance",
")",
"{",
"if",
"(",
"config... | Asserts that the Activity matching the specified class is active, with the possibility to
verify that the expected Activity is a new instance of the Activity.
@param message the message to display if the assert fails
@param activityClass the class of the Activity that is expected to be active. Example is: {@code MyActivity.class}
@param isNewInstance {@code true} if the expected {@link Activity} is a new instance of the {@link Activity} | [
"Asserts",
"that",
"the",
"Activity",
"matching",
"the",
"specified",
"class",
"is",
"active",
"with",
"the",
"possibility",
"to",
"verify",
"that",
"the",
"expected",
"Activity",
"is",
"a",
"new",
"instance",
"of",
"the",
"Activity",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L1031-L1039 |
30,109 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.waitForDialogToOpen | public boolean waitForDialogToOpen() {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "waitForDialogToOpen()");
}
return dialogUtils.waitForDialogToOpen(Timeout.getLargeTimeout(), true);
} | java | public boolean waitForDialogToOpen() {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "waitForDialogToOpen()");
}
return dialogUtils.waitForDialogToOpen(Timeout.getLargeTimeout(), true);
} | [
"public",
"boolean",
"waitForDialogToOpen",
"(",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"waitForDialogToOpen()\"",
")",
";",
"}",
"return",
"dialogUtils",
".",
"waitForDi... | Waits for a Dialog to open. Default timeout is 20 seconds.
@return {@code true} if the {@link android.app.Dialog} is opened before the timeout and {@code false} if it is not opened | [
"Waits",
"for",
"a",
"Dialog",
"to",
"open",
".",
"Default",
"timeout",
"is",
"20",
"seconds",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L1060-L1066 |
30,110 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.waitForDialogToClose | public boolean waitForDialogToClose() {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "waitForDialogToClose()");
}
return dialogUtils.waitForDialogToClose(Timeout.getLargeTimeout());
} | java | public boolean waitForDialogToClose() {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "waitForDialogToClose()");
}
return dialogUtils.waitForDialogToClose(Timeout.getLargeTimeout());
} | [
"public",
"boolean",
"waitForDialogToClose",
"(",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"waitForDialogToClose()\"",
")",
";",
"}",
"return",
"dialogUtils",
".",
"waitFor... | Waits for a Dialog to close. Default timeout is 20 seconds.
@return {@code true} if the {@link android.app.Dialog} is closed before the timeout and {@code false} if it is not closed | [
"Waits",
"for",
"a",
"Dialog",
"to",
"close",
".",
"Default",
"timeout",
"is",
"20",
"seconds",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L1074-L1080 |
30,111 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.waitForDialogToOpen | public boolean waitForDialogToOpen(long timeout) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "waitForDialogToOpen("+timeout+")");
}
return dialogUtils.waitForDialogToOpen(timeout, true);
} | java | public boolean waitForDialogToOpen(long timeout) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "waitForDialogToOpen("+timeout+")");
}
return dialogUtils.waitForDialogToOpen(timeout, true);
} | [
"public",
"boolean",
"waitForDialogToOpen",
"(",
"long",
"timeout",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"waitForDialogToOpen(\"",
"+",
"timeout",
"+",
"\")\"",
")",
... | Waits for a Dialog to open.
@param timeout the amount of time in milliseconds to wait
@return {@code true} if the {@link android.app.Dialog} is opened before the timeout and {@code false} if it is not opened | [
"Waits",
"for",
"a",
"Dialog",
"to",
"open",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L1089-L1095 |
30,112 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.waitForDialogToClose | public boolean waitForDialogToClose(long timeout) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "waitForDialogToClose("+timeout+")");
}
return dialogUtils.waitForDialogToClose(timeout);
} | java | public boolean waitForDialogToClose(long timeout) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "waitForDialogToClose("+timeout+")");
}
return dialogUtils.waitForDialogToClose(timeout);
} | [
"public",
"boolean",
"waitForDialogToClose",
"(",
"long",
"timeout",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"waitForDialogToClose(\"",
"+",
"timeout",
"+",
"\")\"",
")",
... | Waits for a Dialog to close.
@param timeout the amount of time in milliseconds to wait
@return {@code true} if the {@link android.app.Dialog} is closed before the timeout and {@code false} if it is not closed | [
"Waits",
"for",
"a",
"Dialog",
"to",
"close",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L1104-L1110 |
30,113 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.clickOnScreen | public void clickOnScreen(float x, float y) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickOnScreen("+x+", "+y+")");
}
sleeper.sleep();
clicker.clickOnScreen(x, y, null);
} | java | public void clickOnScreen(float x, float y) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickOnScreen("+x+", "+y+")");
}
sleeper.sleep();
clicker.clickOnScreen(x, y, null);
} | [
"public",
"void",
"clickOnScreen",
"(",
"float",
"x",
",",
"float",
"y",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"clickOnScreen(\"",
"+",
"x",
"+",
"\", \"",
"+",
... | Clicks the specified coordinates.
@param x the x coordinate
@param y the y coordinate | [
"Clicks",
"the",
"specified",
"coordinates",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L1134-L1141 |
30,114 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.clickOnScreen | public void clickOnScreen(float x, float y, int numberOfClicks) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickOnScreen("+x+", "+y+", "+numberOfClicks+")");
}
if (android.os.Build.VERSION.SDK_INT < 14){
throw new RuntimeException("clickOnScreen(float x, float y, int numberOfClicks) requires API level >= 14");
}
tapper.generateTapGesture(numberOfClicks, new PointF(x, y));
} | java | public void clickOnScreen(float x, float y, int numberOfClicks) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickOnScreen("+x+", "+y+", "+numberOfClicks+")");
}
if (android.os.Build.VERSION.SDK_INT < 14){
throw new RuntimeException("clickOnScreen(float x, float y, int numberOfClicks) requires API level >= 14");
}
tapper.generateTapGesture(numberOfClicks, new PointF(x, y));
} | [
"public",
"void",
"clickOnScreen",
"(",
"float",
"x",
",",
"float",
"y",
",",
"int",
"numberOfClicks",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"clickOnScreen(\"",
"+",... | Clicks the specified coordinates rapidly a specified number of times. Requires API level >= 14.
@param x the x coordinate
@param y the y coordinate
@param numberOfClicks the number of clicks to perform | [
"Clicks",
"the",
"specified",
"coordinates",
"rapidly",
"a",
"specified",
"number",
"of",
"times",
".",
"Requires",
"API",
"level",
">",
"=",
"14",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L1151-L1161 |
30,115 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.clickLongOnScreen | public void clickLongOnScreen(float x, float y) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickLongOnScreen("+x+", "+y+")");
}
clicker.clickLongOnScreen(x, y, 0, null);
} | java | public void clickLongOnScreen(float x, float y) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickLongOnScreen("+x+", "+y+")");
}
clicker.clickLongOnScreen(x, y, 0, null);
} | [
"public",
"void",
"clickLongOnScreen",
"(",
"float",
"x",
",",
"float",
"y",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"clickLongOnScreen(\"",
"+",
"x",
"+",
"\", \"",
... | Long clicks the specified coordinates.
@param x the x coordinate
@param y the y coordinate | [
"Long",
"clicks",
"the",
"specified",
"coordinates",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L1170-L1176 |
30,116 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.clickOnButton | public void clickOnButton(String text) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickOnButton(\""+text+"\")");
}
clicker.clickOn(Button.class, text);
} | java | public void clickOnButton(String text) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickOnButton(\""+text+"\")");
}
clicker.clickOn(Button.class, text);
} | [
"public",
"void",
"clickOnButton",
"(",
"String",
"text",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"clickOnButton(\\\"\"",
"+",
"text",
"+",
"\"\\\")\"",
")",
";",
"}",... | Clicks a Button displaying the specified text. Will automatically scroll when needed.
@param text the text displayed by the {@link Button}. The parameter will be interpreted as a regular expression | [
"Clicks",
"a",
"Button",
"displaying",
"the",
"specified",
"text",
".",
"Will",
"automatically",
"scroll",
"when",
"needed",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L1201-L1208 |
30,117 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.clickOnImageButton | public void clickOnImageButton(int index) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickOnImageButton("+index+")");
}
clicker.clickOn(ImageButton.class, index);
} | java | public void clickOnImageButton(int index) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickOnImageButton("+index+")");
}
clicker.clickOn(ImageButton.class, index);
} | [
"public",
"void",
"clickOnImageButton",
"(",
"int",
"index",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"clickOnImageButton(\"",
"+",
"index",
"+",
"\")\"",
")",
";",
"}"... | Clicks an ImageButton matching the specified index.
@param index the index of the {@link ImageButton} to click. 0 if only one is available | [
"Clicks",
"an",
"ImageButton",
"matching",
"the",
"specified",
"index",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L1216-L1222 |
30,118 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.clickOnToggleButton | public void clickOnToggleButton(String text) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickOnToggleButton(\""+text+"\")");
}
clicker.clickOn(ToggleButton.class, text);
} | java | public void clickOnToggleButton(String text) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickOnToggleButton(\""+text+"\")");
}
clicker.clickOn(ToggleButton.class, text);
} | [
"public",
"void",
"clickOnToggleButton",
"(",
"String",
"text",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"clickOnToggleButton(\\\"\"",
"+",
"text",
"+",
"\"\\\")\"",
")",
... | Clicks a ToggleButton displaying the specified text.
@param text the text displayed by the {@link ToggleButton}. The parameter will be interpreted as a regular expression | [
"Clicks",
"a",
"ToggleButton",
"displaying",
"the",
"specified",
"text",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L1230-L1236 |
30,119 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.clickOnMenuItem | public void clickOnMenuItem(String text, boolean subMenu)
{
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickOnMenuItem(\""+text+"\", "+subMenu+")");
}
clicker.clickOnMenuItem(text, subMenu);
} | java | public void clickOnMenuItem(String text, boolean subMenu)
{
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickOnMenuItem(\""+text+"\", "+subMenu+")");
}
clicker.clickOnMenuItem(text, subMenu);
} | [
"public",
"void",
"clickOnMenuItem",
"(",
"String",
"text",
",",
"boolean",
"subMenu",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"clickOnMenuItem(\\\"\"",
"+",
"text",
"+"... | Clicks a MenuItem displaying the specified text.
@param text the text displayed by the MenuItem. The parameter will be interpreted as a regular expression
@param subMenu {@code true} if the menu item could be located in a sub menu | [
"Clicks",
"a",
"MenuItem",
"displaying",
"the",
"specified",
"text",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L1260-L1267 |
30,120 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.clickOnWebElement | public void clickOnWebElement(WebElement webElement){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickOnWebElement("+webElement+")");
}
if(webElement == null)
Assert.fail("WebElement is null and can therefore not be clicked!");
clicker.clickOnScreen(webElement.getLocationX(), webElement.getLocationY(), null);
} | java | public void clickOnWebElement(WebElement webElement){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickOnWebElement("+webElement+")");
}
if(webElement == null)
Assert.fail("WebElement is null and can therefore not be clicked!");
clicker.clickOnScreen(webElement.getLocationX(), webElement.getLocationY(), null);
} | [
"public",
"void",
"clickOnWebElement",
"(",
"WebElement",
"webElement",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"clickOnWebElement(\"",
"+",
"webElement",
"+",
"\")\"",
")... | Clicks the specified WebElement.
@param webElement the WebElement to click | [
"Clicks",
"the",
"specified",
"WebElement",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L1275-L1284 |
30,121 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.pressSoftKeyboardNextButton | public void pressSoftKeyboardNextButton(){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "pressSoftKeyboardNextButton()");
}
presser.pressSoftKeyboard(EditorInfo.IME_ACTION_NEXT);
} | java | public void pressSoftKeyboardNextButton(){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "pressSoftKeyboardNextButton()");
}
presser.pressSoftKeyboard(EditorInfo.IME_ACTION_NEXT);
} | [
"public",
"void",
"pressSoftKeyboardNextButton",
"(",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"pressSoftKeyboardNextButton()\"",
")",
";",
"}",
"presser",
".",
"pressSoftKey... | Presses the soft keyboard next button. | [
"Presses",
"the",
"soft",
"keyboard",
"next",
"button",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L1372-L1378 |
30,122 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.pressSoftKeyboardSearchButton | public void pressSoftKeyboardSearchButton(){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "pressSoftKeyboardSearchButton()");
}
presser.pressSoftKeyboard(EditorInfo.IME_ACTION_SEARCH);
} | java | public void pressSoftKeyboardSearchButton(){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "pressSoftKeyboardSearchButton()");
}
presser.pressSoftKeyboard(EditorInfo.IME_ACTION_SEARCH);
} | [
"public",
"void",
"pressSoftKeyboardSearchButton",
"(",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"pressSoftKeyboardSearchButton()\"",
")",
";",
"}",
"presser",
".",
"pressSof... | Presses the soft keyboard search button. | [
"Presses",
"the",
"soft",
"keyboard",
"search",
"button",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L1384-L1390 |
30,123 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.pressSoftKeyboardGoButton | public void pressSoftKeyboardGoButton(){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "pressSoftKeyboardGoButton()");
}
presser.pressSoftKeyboard(EditorInfo.IME_ACTION_GO);
} | java | public void pressSoftKeyboardGoButton(){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "pressSoftKeyboardGoButton()");
}
presser.pressSoftKeyboard(EditorInfo.IME_ACTION_GO);
} | [
"public",
"void",
"pressSoftKeyboardGoButton",
"(",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"pressSoftKeyboardGoButton()\"",
")",
";",
"}",
"presser",
".",
"pressSoftKeyboar... | Presses the soft keyboard go button. | [
"Presses",
"the",
"soft",
"keyboard",
"go",
"button",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L1396-L1402 |
30,124 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.pressSoftKeyboardDoneButton | public void pressSoftKeyboardDoneButton(){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "pressSoftKeyboardDoneButton()");
}
presser.pressSoftKeyboard(EditorInfo.IME_ACTION_DONE);
} | java | public void pressSoftKeyboardDoneButton(){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "pressSoftKeyboardDoneButton()");
}
presser.pressSoftKeyboard(EditorInfo.IME_ACTION_DONE);
} | [
"public",
"void",
"pressSoftKeyboardDoneButton",
"(",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"pressSoftKeyboardDoneButton()\"",
")",
";",
"}",
"presser",
".",
"pressSoftKey... | Presses the soft keyboard done button. | [
"Presses",
"the",
"soft",
"keyboard",
"done",
"button",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L1408-L1414 |
30,125 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.clickOnView | public void clickOnView(View view) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickOnView("+view+")");
}
view = waiter.waitForView(view, Timeout.getSmallTimeout());
clicker.clickOnScreen(view);
} | java | public void clickOnView(View view) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickOnView("+view+")");
}
view = waiter.waitForView(view, Timeout.getSmallTimeout());
clicker.clickOnScreen(view);
} | [
"public",
"void",
"clickOnView",
"(",
"View",
"view",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"clickOnView(\"",
"+",
"view",
"+",
"\")\"",
")",
";",
"}",
"view",
"... | Clicks the specified View.
@param view the {@link View} to click | [
"Clicks",
"the",
"specified",
"View",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L1439-L1446 |
30,126 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.clickLongOnView | public void clickLongOnView(View view, int time) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickLongOnView("+view+", "+time+")");
}
clicker.clickOnScreen(view, true, time);
} | java | public void clickLongOnView(View view, int time) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickLongOnView("+view+", "+time+")");
}
clicker.clickOnScreen(view, true, time);
} | [
"public",
"void",
"clickLongOnView",
"(",
"View",
"view",
",",
"int",
"time",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"clickLongOnView(\"",
"+",
"view",
"+",
"\", \"",... | Long clicks the specified View for a specified amount of time.
@param view the {@link View} to long click
@param time the amount of time to long click | [
"Long",
"clicks",
"the",
"specified",
"View",
"for",
"a",
"specified",
"amount",
"of",
"time",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L1491-L1498 |
30,127 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.clickOnText | public void clickOnText(String text) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickOnText(\""+text+"\")");
}
clicker.clickOnText(text, false, 1, true, 0);
} | java | public void clickOnText(String text) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickOnText(\""+text+"\")");
}
clicker.clickOnText(text, false, 1, true, 0);
} | [
"public",
"void",
"clickOnText",
"(",
"String",
"text",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"clickOnText(\\\"\"",
"+",
"text",
"+",
"\"\\\")\"",
")",
";",
"}",
"... | Clicks a View or WebElement displaying the specified
text. Will automatically scroll when needed.
@param text the text to click. The parameter will be interpreted as a regular expression | [
"Clicks",
"a",
"View",
"or",
"WebElement",
"displaying",
"the",
"specified",
"text",
".",
"Will",
"automatically",
"scroll",
"when",
"needed",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L1507-L1513 |
30,128 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.clickLongOnTextAndPress | public void clickLongOnTextAndPress(String text, int index) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickLongOnTextAndPress(\""+text+"\", "+index+")");
}
clicker.clickLongOnTextAndPress(text, index);
} | java | public void clickLongOnTextAndPress(String text, int index) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickLongOnTextAndPress(\""+text+"\", "+index+")");
}
clicker.clickLongOnTextAndPress(text, index);
} | [
"public",
"void",
"clickLongOnTextAndPress",
"(",
"String",
"text",
",",
"int",
"index",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"clickLongOnTextAndPress(\\\"\"",
"+",
"te... | Long clicks a View displaying the specified text and then selects
an item from the context menu that appears. Will automatically scroll when needed.
@param text the text to click. The parameter will be interpreted as a regular expression
@param index the index of the menu item to press. {@code 0} if only one is available | [
"Long",
"clicks",
"a",
"View",
"displaying",
"the",
"specified",
"text",
"and",
"then",
"selects",
"an",
"item",
"from",
"the",
"context",
"menu",
"that",
"appears",
".",
"Will",
"automatically",
"scroll",
"when",
"needed",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L1619-L1625 |
30,129 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.clickOnButton | public void clickOnButton(int index) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickOnButton("+index+")");
}
clicker.clickOn(Button.class, index);
} | java | public void clickOnButton(int index) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickOnButton("+index+")");
}
clicker.clickOn(Button.class, index);
} | [
"public",
"void",
"clickOnButton",
"(",
"int",
"index",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"clickOnButton(\"",
"+",
"index",
"+",
"\")\"",
")",
";",
"}",
"click... | Clicks a Button matching the specified index.
@param index the index of the {@link Button} to click. {@code 0} if only one is available | [
"Clicks",
"a",
"Button",
"matching",
"the",
"specified",
"index",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L1633-L1639 |
30,130 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.clickOnRadioButton | public void clickOnRadioButton(int index) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickOnRadioButton("+index+")");
}
clicker.clickOn(RadioButton.class, index);
} | java | public void clickOnRadioButton(int index) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickOnRadioButton("+index+")");
}
clicker.clickOn(RadioButton.class, index);
} | [
"public",
"void",
"clickOnRadioButton",
"(",
"int",
"index",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"clickOnRadioButton(\"",
"+",
"index",
"+",
"\")\"",
")",
";",
"}"... | Clicks a RadioButton matching the specified index.
@param index the index of the {@link RadioButton} to click. {@code 0} if only one is available | [
"Clicks",
"a",
"RadioButton",
"matching",
"the",
"specified",
"index",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L1647-L1653 |
30,131 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.clickOnCheckBox | public void clickOnCheckBox(int index) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickOnCheckBox("+index+")");
}
clicker.clickOn(CheckBox.class, index);
} | java | public void clickOnCheckBox(int index) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickOnCheckBox("+index+")");
}
clicker.clickOn(CheckBox.class, index);
} | [
"public",
"void",
"clickOnCheckBox",
"(",
"int",
"index",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"clickOnCheckBox(\"",
"+",
"index",
"+",
"\")\"",
")",
";",
"}",
"c... | Clicks a CheckBox matching the specified index.
@param index the index of the {@link CheckBox} to click. {@code 0} if only one is available | [
"Clicks",
"a",
"CheckBox",
"matching",
"the",
"specified",
"index",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L1661-L1667 |
30,132 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.clickOnEditText | public void clickOnEditText(int index) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickOnEditText("+index+")");
}
clicker.clickOn(EditText.class, index);
} | java | public void clickOnEditText(int index) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickOnEditText("+index+")");
}
clicker.clickOn(EditText.class, index);
} | [
"public",
"void",
"clickOnEditText",
"(",
"int",
"index",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"clickOnEditText(\"",
"+",
"index",
"+",
"\")\"",
")",
";",
"}",
"c... | Clicks an EditText matching the specified index.
@param index the index of the {@link EditText} to click. {@code 0} if only one is available | [
"Clicks",
"an",
"EditText",
"matching",
"the",
"specified",
"index",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L1675-L1681 |
30,133 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.clickInList | public void clickInList(int line, int index, int id) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickInList("+line+", "+index+", " + id +")");
}
clicker.clickInList(line, index, id, false, 0);
} | java | public void clickInList(int line, int index, int id) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickInList("+line+", "+index+", " + id +")");
}
clicker.clickInList(line, index, id, false, 0);
} | [
"public",
"void",
"clickInList",
"(",
"int",
"line",
",",
"int",
"index",
",",
"int",
"id",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"clickInList(\"",
"+",
"line",
... | Clicks a View with a specified resource id on the specified line in the list matching the specified index
@param line the line where the View exists
@param index the index of the List. {@code 0} if only one is available
@param id the resource id of the View to click | [
"Clicks",
"a",
"View",
"with",
"a",
"specified",
"resource",
"id",
"on",
"the",
"specified",
"line",
"in",
"the",
"list",
"matching",
"the",
"specified",
"index"
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L1724-L1730 |
30,134 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.clickLongInList | public ArrayList<TextView> clickLongInList(int line, int index){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickLongInList("+line+", "+index+")");
}
return clicker.clickInList(line, index, 0, true, 0);
} | java | public ArrayList<TextView> clickLongInList(int line, int index){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickLongInList("+line+", "+index+")");
}
return clicker.clickInList(line, index, 0, true, 0);
} | [
"public",
"ArrayList",
"<",
"TextView",
">",
"clickLongInList",
"(",
"int",
"line",
",",
"int",
"index",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"clickLongInList(\"",
... | Long clicks the specified list line in the ListView matching the specified index and
returns an ArrayList of the TextView objects that the list line is displaying.
@param line the line to click
@param index the index of the list. {@code 0} if only one is available
@return an {@code ArrayList} of the {@link TextView} objects located in the list line | [
"Long",
"clicks",
"the",
"specified",
"list",
"line",
"in",
"the",
"ListView",
"matching",
"the",
"specified",
"index",
"and",
"returns",
"an",
"ArrayList",
"of",
"the",
"TextView",
"objects",
"that",
"the",
"list",
"line",
"is",
"displaying",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L1757-L1763 |
30,135 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.clickInRecyclerView | public ArrayList<TextView> clickInRecyclerView(int itemIndex) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickInRecyclerView("+itemIndex+")");
}
return clicker.clickInRecyclerView(itemIndex);
} | java | public ArrayList<TextView> clickInRecyclerView(int itemIndex) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickInRecyclerView("+itemIndex+")");
}
return clicker.clickInRecyclerView(itemIndex);
} | [
"public",
"ArrayList",
"<",
"TextView",
">",
"clickInRecyclerView",
"(",
"int",
"itemIndex",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"clickInRecyclerView(\"",
"+",
"itemIn... | Clicks the specified item index and returns an ArrayList of the TextView objects that
the item index is displaying. Will use the first RecyclerView it finds.
@param itemIndex the item index to click
@return an {@code ArrayList} of the {@link TextView} objects located in the item index | [
"Clicks",
"the",
"specified",
"item",
"index",
"and",
"returns",
"an",
"ArrayList",
"of",
"the",
"TextView",
"objects",
"that",
"the",
"item",
"index",
"is",
"displaying",
".",
"Will",
"use",
"the",
"first",
"RecyclerView",
"it",
"finds",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L1792-L1798 |
30,136 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.clickInRecyclerView | public void clickInRecyclerView(int itemIndex, int recyclerViewIndex, int id) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickInRecyclerView("+itemIndex+", "+recyclerViewIndex+", " + id +")");
}
clicker.clickInRecyclerView(itemIndex, recyclerViewIndex, id, false, 0);
} | java | public void clickInRecyclerView(int itemIndex, int recyclerViewIndex, int id) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickInRecyclerView("+itemIndex+", "+recyclerViewIndex+", " + id +")");
}
clicker.clickInRecyclerView(itemIndex, recyclerViewIndex, id, false, 0);
} | [
"public",
"void",
"clickInRecyclerView",
"(",
"int",
"itemIndex",
",",
"int",
"recyclerViewIndex",
",",
"int",
"id",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"clickInRecy... | Clicks a View with a specified resource id on the specified item index in the RecyclerView matching the specified RecyclerView index
@param itemIndex the line where the View exists
@param recyclerViewIndex the index of the RecyclerView. {@code 0} if only one is available
@param id the resource id of the View to click | [
"Clicks",
"a",
"View",
"with",
"a",
"specified",
"resource",
"id",
"on",
"the",
"specified",
"item",
"index",
"in",
"the",
"RecyclerView",
"matching",
"the",
"specified",
"RecyclerView",
"index"
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L1825-L1831 |
30,137 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.clickOnActionBarItem | public void clickOnActionBarItem(int id){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickOnActionBarItem("+id+")");
}
clicker.clickOnActionBarItem(id);
} | java | public void clickOnActionBarItem(int id){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickOnActionBarItem("+id+")");
}
clicker.clickOnActionBarItem(id);
} | [
"public",
"void",
"clickOnActionBarItem",
"(",
"int",
"id",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"clickOnActionBarItem(\"",
"+",
"id",
"+",
"\")\"",
")",
";",
"}",
... | Clicks an ActionBarItem matching the specified resource id.
@param id the R.id of the ActionBar item to click | [
"Clicks",
"an",
"ActionBarItem",
"matching",
"the",
"specified",
"resource",
"id",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L1890-L1896 |
30,138 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.createIllustrationBuilder | public Illustration.Builder createIllustrationBuilder(){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "createIllustrationBuilder()");
}
return new Illustration.Builder();
} | java | public Illustration.Builder createIllustrationBuilder(){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "createIllustrationBuilder()");
}
return new Illustration.Builder();
} | [
"public",
"Illustration",
".",
"Builder",
"createIllustrationBuilder",
"(",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"createIllustrationBuilder()\"",
")",
";",
"}",
"return",... | An Builder pattern that will allow the client to build a new illustration | [
"An",
"Builder",
"pattern",
"that",
"will",
"allow",
"the",
"client",
"to",
"build",
"a",
"new",
"illustration"
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L1919-L1925 |
30,139 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.drag | public void drag(float fromX, float toX, float fromY, float toY,
int stepCount) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "drag("+fromX+", "+toX+", "+fromY+", "+toY+")");
}
dialogUtils.hideSoftKeyboard(null, false, true);
scroller.drag(fromX, toX, fromY, toY, stepCount);
} | java | public void drag(float fromX, float toX, float fromY, float toY,
int stepCount) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "drag("+fromX+", "+toX+", "+fromY+", "+toY+")");
}
dialogUtils.hideSoftKeyboard(null, false, true);
scroller.drag(fromX, toX, fromY, toY, stepCount);
} | [
"public",
"void",
"drag",
"(",
"float",
"fromX",
",",
"float",
"toX",
",",
"float",
"fromY",
",",
"float",
"toY",
",",
"int",
"stepCount",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLo... | Simulate touching the specified location and dragging it to a new location.
@param fromX X coordinate of the initial touch, in screen coordinates
@param toX X coordinate of the drag destination, in screen coordinates
@param fromY Y coordinate of the initial touch, in screen coordinates
@param toY Y coordinate of the drag destination, in screen coordinates
@param stepCount how many move steps to include in the drag. Less steps results in a faster drag | [
"Simulate",
"touching",
"the",
"specified",
"location",
"and",
"dragging",
"it",
"to",
"a",
"new",
"location",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L1961-L1969 |
30,140 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.scrollToTop | @SuppressWarnings("unchecked")
public void scrollToTop() {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "scrollToTop()");
}
View recyclerView = viewFetcher.getRecyclerView(true, 0);
if(recyclerView != null){
waiter.waitForViews(true, AbsListView.class, ScrollView.class, WebView.class, recyclerView.getClass());
}
else {
waiter.waitForViews(true, AbsListView.class, ScrollView.class, WebView.class);
}
scroller.scroll(Scroller.UP, true);
} | java | @SuppressWarnings("unchecked")
public void scrollToTop() {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "scrollToTop()");
}
View recyclerView = viewFetcher.getRecyclerView(true, 0);
if(recyclerView != null){
waiter.waitForViews(true, AbsListView.class, ScrollView.class, WebView.class, recyclerView.getClass());
}
else {
waiter.waitForViews(true, AbsListView.class, ScrollView.class, WebView.class);
}
scroller.scroll(Scroller.UP, true);
} | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"public",
"void",
"scrollToTop",
"(",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"scrollToTop()\"",
")",
";",
"}",
"Vi... | Scrolls to the top of the screen. | [
"Scrolls",
"to",
"the",
"top",
"of",
"the",
"screen",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L2043-L2057 |
30,141 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.scrollDownList | public boolean scrollDownList(AbsListView list) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "scrollDownList("+list+")");
}
return scroller.scrollList(list, Scroller.DOWN, false);
} | java | public boolean scrollDownList(AbsListView list) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "scrollDownList("+list+")");
}
return scroller.scrollList(list, Scroller.DOWN, false);
} | [
"public",
"boolean",
"scrollDownList",
"(",
"AbsListView",
"list",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"scrollDownList(\"",
"+",
"list",
"+",
"\")\"",
")",
";",
"}... | Scrolls down the specified AbsListView.
@param list the {@link AbsListView} to scroll
@return {@code true} if more scrolling can be performed | [
"Scrolls",
"down",
"the",
"specified",
"AbsListView",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L2066-L2072 |
30,142 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.scrollListToBottom | public boolean scrollListToBottom(AbsListView list) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "scrollListToBottom("+list+")");
}
return scroller.scrollList(list, Scroller.DOWN, true);
} | java | public boolean scrollListToBottom(AbsListView list) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "scrollListToBottom("+list+")");
}
return scroller.scrollList(list, Scroller.DOWN, true);
} | [
"public",
"boolean",
"scrollListToBottom",
"(",
"AbsListView",
"list",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"scrollListToBottom(\"",
"+",
"list",
"+",
"\")\"",
")",
"... | Scrolls to the bottom of the specified AbsListView.
@param list the {@link AbsListView} to scroll
@return {@code true} if more scrolling can be performed | [
"Scrolls",
"to",
"the",
"bottom",
"of",
"the",
"specified",
"AbsListView",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L2081-L2087 |
30,143 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.scrollUpList | public boolean scrollUpList(AbsListView list) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "scrollUpList("+list+")");
}
return scroller.scrollList(list, Scroller.UP, false);
} | java | public boolean scrollUpList(AbsListView list) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "scrollUpList("+list+")");
}
return scroller.scrollList(list, Scroller.UP, false);
} | [
"public",
"boolean",
"scrollUpList",
"(",
"AbsListView",
"list",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"scrollUpList(\"",
"+",
"list",
"+",
"\")\"",
")",
";",
"}",
... | Scrolls up the specified AbsListView.
@param list the {@link AbsListView} to scroll
@return {@code true} if more scrolling can be performed | [
"Scrolls",
"up",
"the",
"specified",
"AbsListView",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L2096-L2102 |
30,144 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.scrollListToTop | public boolean scrollListToTop(AbsListView list) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "scrollListToTop("+list+")");
}
return scroller.scrollList(list, Scroller.UP, true);
} | java | public boolean scrollListToTop(AbsListView list) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "scrollListToTop("+list+")");
}
return scroller.scrollList(list, Scroller.UP, true);
} | [
"public",
"boolean",
"scrollListToTop",
"(",
"AbsListView",
"list",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"scrollListToTop(\"",
"+",
"list",
"+",
"\")\"",
")",
";",
... | Scrolls to the top of the specified AbsListView.
@param list the {@link AbsListView} to scroll
@return {@code true} if more scrolling can be performed | [
"Scrolls",
"to",
"the",
"top",
"of",
"the",
"specified",
"AbsListView",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L2111-L2117 |
30,145 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.scrollDownList | public boolean scrollDownList(int index) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "scrollDownList("+index+")");
}
return scroller.scrollList(waiter.waitForAndGetView(index, ListView.class), Scroller.DOWN, false);
} | java | public boolean scrollDownList(int index) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "scrollDownList("+index+")");
}
return scroller.scrollList(waiter.waitForAndGetView(index, ListView.class), Scroller.DOWN, false);
} | [
"public",
"boolean",
"scrollDownList",
"(",
"int",
"index",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"scrollDownList(\"",
"+",
"index",
"+",
"\")\"",
")",
";",
"}",
"... | Scrolls down a ListView matching the specified index.
@param index the index of the {@link ListView} to scroll. {@code 0} if only one list is available
@return {@code true} if more scrolling can be performed | [
"Scrolls",
"down",
"a",
"ListView",
"matching",
"the",
"specified",
"index",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L2126-L2132 |
30,146 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.scrollListToBottom | public boolean scrollListToBottom(int index) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "scrollListToBottom("+index+")");
}
return scroller.scrollList(waiter.waitForAndGetView(index, ListView.class), Scroller.DOWN, true);
} | java | public boolean scrollListToBottom(int index) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "scrollListToBottom("+index+")");
}
return scroller.scrollList(waiter.waitForAndGetView(index, ListView.class), Scroller.DOWN, true);
} | [
"public",
"boolean",
"scrollListToBottom",
"(",
"int",
"index",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"scrollListToBottom(\"",
"+",
"index",
"+",
"\")\"",
")",
";",
... | Scrolls a ListView matching the specified index to the bottom.
@param index the index of the {@link ListView} to scroll. {@code 0} if only one list is available
@return {@code true} if more scrolling can be performed | [
"Scrolls",
"a",
"ListView",
"matching",
"the",
"specified",
"index",
"to",
"the",
"bottom",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L2141-L2147 |
30,147 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.scrollUpList | public boolean scrollUpList(int index) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "scrollUpList("+index+")");
}
return scroller.scrollList(waiter.waitForAndGetView(index, ListView.class), Scroller.UP, false);
} | java | public boolean scrollUpList(int index) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "scrollUpList("+index+")");
}
return scroller.scrollList(waiter.waitForAndGetView(index, ListView.class), Scroller.UP, false);
} | [
"public",
"boolean",
"scrollUpList",
"(",
"int",
"index",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"scrollUpList(\"",
"+",
"index",
"+",
"\")\"",
")",
";",
"}",
"retu... | Scrolls up a ListView matching the specified index.
@param index the index of the {@link ListView} to scroll. {@code 0} if only one list is available
@return {@code true} if more scrolling can be performed | [
"Scrolls",
"up",
"a",
"ListView",
"matching",
"the",
"specified",
"index",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L2156-L2162 |
30,148 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.scrollListToTop | public boolean scrollListToTop(int index) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "scrollListToTop("+index+")");
}
return scroller.scrollList(waiter.waitForAndGetView(index, ListView.class), Scroller.UP, true);
} | java | public boolean scrollListToTop(int index) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "scrollListToTop("+index+")");
}
return scroller.scrollList(waiter.waitForAndGetView(index, ListView.class), Scroller.UP, true);
} | [
"public",
"boolean",
"scrollListToTop",
"(",
"int",
"index",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"scrollListToTop(\"",
"+",
"index",
"+",
"\")\"",
")",
";",
"}",
... | Scrolls a ListView matching the specified index to the top.
@param index the index of the {@link ListView} to scroll. {@code 0} if only one list is available
@return {@code true} if more scrolling can be performed | [
"Scrolls",
"a",
"ListView",
"matching",
"the",
"specified",
"index",
"to",
"the",
"top",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L2171-L2177 |
30,149 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.scrollListToLine | public void scrollListToLine(AbsListView absListView, int line){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "scrollListToLine("+absListView+", "+line+")");
}
scroller.scrollListToLine(absListView, line);
} | java | public void scrollListToLine(AbsListView absListView, int line){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "scrollListToLine("+absListView+", "+line+")");
}
scroller.scrollListToLine(absListView, line);
} | [
"public",
"void",
"scrollListToLine",
"(",
"AbsListView",
"absListView",
",",
"int",
"line",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"scrollListToLine(\"",
"+",
"absListVi... | Scroll the specified AbsListView to the specified line.
@param absListView the {@link AbsListView} to scroll
@param line the line to scroll to | [
"Scroll",
"the",
"specified",
"AbsListView",
"to",
"the",
"specified",
"line",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L2186-L2192 |
30,150 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.scrollListToLine | public void scrollListToLine(int index, int line){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "scrollListToLine("+index+", "+line+")");
}
scroller.scrollListToLine(waiter.waitForAndGetView(index, AbsListView.class), line);
} | java | public void scrollListToLine(int index, int line){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "scrollListToLine("+index+", "+line+")");
}
scroller.scrollListToLine(waiter.waitForAndGetView(index, AbsListView.class), line);
} | [
"public",
"void",
"scrollListToLine",
"(",
"int",
"index",
",",
"int",
"line",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"scrollListToLine(\"",
"+",
"index",
"+",
"\", \... | Scroll a AbsListView matching the specified index to the specified line.
@param index the index of the {@link AbsListView} to scroll
@param line the line to scroll to | [
"Scroll",
"a",
"AbsListView",
"matching",
"the",
"specified",
"index",
"to",
"the",
"specified",
"line",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L2201-L2207 |
30,151 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.scrollDownRecyclerView | public boolean scrollDownRecyclerView(int index) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "scrollDownRecyclerView("+index+")");
}
if(!config.shouldScroll) {
return true;
}
View recyclerView = viewFetcher.getRecyclerView(index, Timeout.getSmallTimeout());
return scroller.scrollView(recyclerView, Scroller.DOWN);
} | java | public boolean scrollDownRecyclerView(int index) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "scrollDownRecyclerView("+index+")");
}
if(!config.shouldScroll) {
return true;
}
View recyclerView = viewFetcher.getRecyclerView(index, Timeout.getSmallTimeout());
return scroller.scrollView(recyclerView, Scroller.DOWN);
} | [
"public",
"boolean",
"scrollDownRecyclerView",
"(",
"int",
"index",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"scrollDownRecyclerView(\"",
"+",
"index",
"+",
"\")\"",
")",
... | Scrolls down a RecyclerView matching the specified index.
@param index the index of the RecyclerView to scroll. {@code 0} if only one RecyclerView is available
@return {@code true} if more scrolling can be performed | [
"Scrolls",
"down",
"a",
"RecyclerView",
"matching",
"the",
"specified",
"index",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L2217-L2230 |
30,152 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.scrollRecyclerViewToBottom | public boolean scrollRecyclerViewToBottom(int index) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "scrollRecyclerViewToBottom("+index+")");
}
if(!config.shouldScroll) {
return true;
}
View recyclerView = viewFetcher.getRecyclerView(index, Timeout.getSmallTimeout());
scroller.scrollViewAllTheWay(recyclerView, Scroller.DOWN);
return false;
} | java | public boolean scrollRecyclerViewToBottom(int index) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "scrollRecyclerViewToBottom("+index+")");
}
if(!config.shouldScroll) {
return true;
}
View recyclerView = viewFetcher.getRecyclerView(index, Timeout.getSmallTimeout());
scroller.scrollViewAllTheWay(recyclerView, Scroller.DOWN);
return false;
} | [
"public",
"boolean",
"scrollRecyclerViewToBottom",
"(",
"int",
"index",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"scrollRecyclerViewToBottom(\"",
"+",
"index",
"+",
"\")\"",
... | Scrolls a RecyclerView matching the specified index to the bottom.
@param index the index of the RecyclerView to scroll. {@code 0} if only one list is available
@return {@code true} if more scrolling can be performed | [
"Scrolls",
"a",
"RecyclerView",
"matching",
"the",
"specified",
"index",
"to",
"the",
"bottom",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L2239-L2253 |
30,153 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.scrollRecyclerViewToTop | public boolean scrollRecyclerViewToTop(int index) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "scrollRecyclerViewToTop("+index+")");
}
if(!config.shouldScroll) {
return false;
}
View recyclerView = viewFetcher.getRecyclerView(index, Timeout.getSmallTimeout());
scroller.scrollViewAllTheWay(recyclerView, Scroller.UP);
return false;
} | java | public boolean scrollRecyclerViewToTop(int index) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "scrollRecyclerViewToTop("+index+")");
}
if(!config.shouldScroll) {
return false;
}
View recyclerView = viewFetcher.getRecyclerView(index, Timeout.getSmallTimeout());
scroller.scrollViewAllTheWay(recyclerView, Scroller.UP);
return false;
} | [
"public",
"boolean",
"scrollRecyclerViewToTop",
"(",
"int",
"index",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"scrollRecyclerViewToTop(\"",
"+",
"index",
"+",
"\")\"",
")",... | Scrolls a RecyclerView matching the specified index to the top.
@param index the index of the RecyclerView to scroll. {@code 0} if only one list is available
@return {@code true} if more scrolling can be performed | [
"Scrolls",
"a",
"RecyclerView",
"matching",
"the",
"specified",
"index",
"to",
"the",
"top",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L2283-L2297 |
30,154 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.pinchToZoom | public void pinchToZoom(PointF startPoint1, PointF startPoint2, PointF endPoint1, PointF endPoint2)
{
if(config.commandLogging){
Log.d(config.commandLoggingTag, "pinchToZoom("+startPoint1+", "+startPoint2+", "+endPoint1+", "+endPoint2+")");
}
if (android.os.Build.VERSION.SDK_INT < 14){
throw new RuntimeException("pinchToZoom() requires API level >= 14");
}
zoomer.generateZoomGesture(startPoint1, startPoint2, endPoint1, endPoint2);
} | java | public void pinchToZoom(PointF startPoint1, PointF startPoint2, PointF endPoint1, PointF endPoint2)
{
if(config.commandLogging){
Log.d(config.commandLoggingTag, "pinchToZoom("+startPoint1+", "+startPoint2+", "+endPoint1+", "+endPoint2+")");
}
if (android.os.Build.VERSION.SDK_INT < 14){
throw new RuntimeException("pinchToZoom() requires API level >= 14");
}
zoomer.generateZoomGesture(startPoint1, startPoint2, endPoint1, endPoint2);
} | [
"public",
"void",
"pinchToZoom",
"(",
"PointF",
"startPoint1",
",",
"PointF",
"startPoint2",
",",
"PointF",
"endPoint1",
",",
"PointF",
"endPoint2",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"comma... | Zooms in or out if startPoint1 and startPoint2 are larger or smaller then endPoint1 and endPoint2. Requires API level >= 14.
@param startPoint1 First "finger" down on the screen
@param startPoint2 Second "finger" down on the screen
@param endPoint1 Corresponding ending point of startPoint1
@param endPoint2 Corresponding ending point of startPoint2 | [
"Zooms",
"in",
"or",
"out",
"if",
"startPoint1",
"and",
"startPoint2",
"are",
"larger",
"or",
"smaller",
"then",
"endPoint1",
"and",
"endPoint2",
".",
"Requires",
"API",
"level",
">",
"=",
"14",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L2409-L2419 |
30,155 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.swipe | public void swipe(PointF startPoint1, PointF startPoint2, PointF endPoint1, PointF endPoint2)
{
if(config.commandLogging){
Log.d(config.commandLoggingTag, "swipe("+startPoint1+", "+startPoint2+", "+endPoint1+", "+endPoint2+")");
}
if (android.os.Build.VERSION.SDK_INT < 14){
throw new RuntimeException("swipe() requires API level >= 14");
}
swiper.generateSwipeGesture(startPoint1, startPoint2, endPoint1,
endPoint2);
} | java | public void swipe(PointF startPoint1, PointF startPoint2, PointF endPoint1, PointF endPoint2)
{
if(config.commandLogging){
Log.d(config.commandLoggingTag, "swipe("+startPoint1+", "+startPoint2+", "+endPoint1+", "+endPoint2+")");
}
if (android.os.Build.VERSION.SDK_INT < 14){
throw new RuntimeException("swipe() requires API level >= 14");
}
swiper.generateSwipeGesture(startPoint1, startPoint2, endPoint1,
endPoint2);
} | [
"public",
"void",
"swipe",
"(",
"PointF",
"startPoint1",
",",
"PointF",
"startPoint2",
",",
"PointF",
"endPoint1",
",",
"PointF",
"endPoint2",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLogg... | Swipes with two fingers in a linear path determined by starting and ending points. Requires API level >= 14.
@param startPoint1 First "finger" down on the screen
@param startPoint2 Second "finger" down on the screen
@param endPoint1 Corresponding ending point of startPoint1
@param endPoint2 Corresponding ending point of startPoint2 | [
"Swipes",
"with",
"two",
"fingers",
"in",
"a",
"linear",
"path",
"determined",
"by",
"starting",
"and",
"ending",
"points",
".",
"Requires",
"API",
"level",
">",
"=",
"14",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L2430-L2441 |
30,156 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.setDatePicker | public void setDatePicker(int index, int year, int monthOfYear, int dayOfMonth) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "setDatePicker("+index+", "+year+", "+monthOfYear+", "+dayOfMonth+")");
}
setDatePicker(waiter.waitForAndGetView(index, DatePicker.class), year, monthOfYear, dayOfMonth);
} | java | public void setDatePicker(int index, int year, int monthOfYear, int dayOfMonth) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "setDatePicker("+index+", "+year+", "+monthOfYear+", "+dayOfMonth+")");
}
setDatePicker(waiter.waitForAndGetView(index, DatePicker.class), year, monthOfYear, dayOfMonth);
} | [
"public",
"void",
"setDatePicker",
"(",
"int",
"index",
",",
"int",
"year",
",",
"int",
"monthOfYear",
",",
"int",
"dayOfMonth",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
","... | Sets the date in a DatePicker matching the specified index.
@param index the index of the {@link DatePicker}. {@code 0} if only one is available
@param year the year e.g. 2011
@param monthOfYear the month which starts from zero e.g. 0 for January
@param dayOfMonth the day e.g. 10 | [
"Sets",
"the",
"date",
"in",
"a",
"DatePicker",
"matching",
"the",
"specified",
"index",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L2521-L2527 |
30,157 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.setDatePicker | public void setDatePicker(DatePicker datePicker, int year, int monthOfYear, int dayOfMonth) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "setDatePicker("+datePicker+", "+year+", "+monthOfYear+", "+dayOfMonth+")");
}
datePicker = (DatePicker) waiter.waitForView(datePicker, Timeout.getSmallTimeout());
setter.setDatePicker(datePicker, year, monthOfYear, dayOfMonth);
} | java | public void setDatePicker(DatePicker datePicker, int year, int monthOfYear, int dayOfMonth) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "setDatePicker("+datePicker+", "+year+", "+monthOfYear+", "+dayOfMonth+")");
}
datePicker = (DatePicker) waiter.waitForView(datePicker, Timeout.getSmallTimeout());
setter.setDatePicker(datePicker, year, monthOfYear, dayOfMonth);
} | [
"public",
"void",
"setDatePicker",
"(",
"DatePicker",
"datePicker",
",",
"int",
"year",
",",
"int",
"monthOfYear",
",",
"int",
"dayOfMonth",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggin... | Sets the date in the specified DatePicker.
@param datePicker the {@link DatePicker} object
@param year the year e.g. 2011
@param monthOfYear the month which starts from zero e.g. 03 for April
@param dayOfMonth the day e.g. 10 | [
"Sets",
"the",
"date",
"in",
"the",
"specified",
"DatePicker",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L2538-L2545 |
30,158 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.setTimePicker | public void setTimePicker(int index, int hour, int minute) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "setTimePicker("+index+", "+hour+", "+minute+")");
}
setTimePicker(waiter.waitForAndGetView(index, TimePicker.class), hour, minute);
} | java | public void setTimePicker(int index, int hour, int minute) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "setTimePicker("+index+", "+hour+", "+minute+")");
}
setTimePicker(waiter.waitForAndGetView(index, TimePicker.class), hour, minute);
} | [
"public",
"void",
"setTimePicker",
"(",
"int",
"index",
",",
"int",
"hour",
",",
"int",
"minute",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"setTimePicker(\"",
"+",
"i... | Sets the time in a TimePicker matching the specified index.
@param index the index of the {@link TimePicker}. {@code 0} if only one is available
@param hour the hour e.g. 15
@param minute the minute e.g. 30 | [
"Sets",
"the",
"time",
"in",
"a",
"TimePicker",
"matching",
"the",
"specified",
"index",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L2555-L2561 |
30,159 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.setTimePicker | public void setTimePicker(TimePicker timePicker, int hour, int minute) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "setTimePicker("+timePicker+", "+hour+", "+minute+")");
}
timePicker = (TimePicker) waiter.waitForView(timePicker, Timeout.getSmallTimeout());
setter.setTimePicker(timePicker, hour, minute);
} | java | public void setTimePicker(TimePicker timePicker, int hour, int minute) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "setTimePicker("+timePicker+", "+hour+", "+minute+")");
}
timePicker = (TimePicker) waiter.waitForView(timePicker, Timeout.getSmallTimeout());
setter.setTimePicker(timePicker, hour, minute);
} | [
"public",
"void",
"setTimePicker",
"(",
"TimePicker",
"timePicker",
",",
"int",
"hour",
",",
"int",
"minute",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"setTimePicker(\"",... | Sets the time in the specified TimePicker.
@param timePicker the {@link TimePicker} object
@param hour the hour e.g. 15
@param minute the minute e.g. 30 | [
"Sets",
"the",
"time",
"in",
"the",
"specified",
"TimePicker",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L2571-L2578 |
30,160 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.enterText | public void enterText(int index, String text) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "enterText("+index+", \""+text+"\")");
}
textEnterer.setEditText(waiter.waitForAndGetView(index, EditText.class), text);
} | java | public void enterText(int index, String text) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "enterText("+index+", \""+text+"\")");
}
textEnterer.setEditText(waiter.waitForAndGetView(index, EditText.class), text);
} | [
"public",
"void",
"enterText",
"(",
"int",
"index",
",",
"String",
"text",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"enterText(\"",
"+",
"index",
"+",
"\", \\\"\"",
"... | Enters text in an EditText matching the specified index.
@param index the index of the {@link EditText}. {@code 0} if only one is available
@param text the text to enter in the {@link EditText} field | [
"Enters",
"text",
"in",
"an",
"EditText",
"matching",
"the",
"specified",
"index",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L2664-L2670 |
30,161 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.enterTextInWebElement | public void enterTextInWebElement(By by, String text){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "enterTextInWebElement("+by+", \""+text+"\")");
}
if(waiter.waitForWebElement(by, 0, Timeout.getSmallTimeout(), false) == null) {
Assert.fail("WebElement with " + webUtils.splitNameByUpperCase(by.getClass().getSimpleName()) + ": '" + by.getValue() + "' is not found!");
}
webUtils.enterTextIntoWebElement(by, text);
} | java | public void enterTextInWebElement(By by, String text){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "enterTextInWebElement("+by+", \""+text+"\")");
}
if(waiter.waitForWebElement(by, 0, Timeout.getSmallTimeout(), false) == null) {
Assert.fail("WebElement with " + webUtils.splitNameByUpperCase(by.getClass().getSimpleName()) + ": '" + by.getValue() + "' is not found!");
}
webUtils.enterTextIntoWebElement(by, text);
} | [
"public",
"void",
"enterTextInWebElement",
"(",
"By",
"by",
",",
"String",
"text",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"enterTextInWebElement(\"",
"+",
"by",
"+",
... | Enters text in a WebElement matching the specified By object.
@param by the By object. Examples are: {@code By.id("id")} and {@code By.name("name")}
@param text the text to enter in the {@link WebElement} field | [
"Enters",
"text",
"in",
"a",
"WebElement",
"matching",
"the",
"specified",
"By",
"object",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L2695-L2704 |
30,162 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.typeText | public void typeText(EditText editText, String text) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "typeText("+editText+", \""+text+"\")");
}
editText = (EditText) waiter.waitForView(editText, Timeout.getSmallTimeout());
textEnterer.typeText(editText, text);
} | java | public void typeText(EditText editText, String text) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "typeText("+editText+", \""+text+"\")");
}
editText = (EditText) waiter.waitForView(editText, Timeout.getSmallTimeout());
textEnterer.typeText(editText, text);
} | [
"public",
"void",
"typeText",
"(",
"EditText",
"editText",
",",
"String",
"text",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"typeText(\"",
"+",
"editText",
"+",
"\", \\\... | Types text in the specified EditText.
@param editText the {@link EditText} to type text in
@param text the text to type in the {@link EditText} field | [
"Types",
"text",
"in",
"the",
"specified",
"EditText",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L2728-L2735 |
30,163 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.typeTextInWebElement | public void typeTextInWebElement(WebElement webElement, String text){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "typeTextInWebElement("+webElement+", \""+text+"\")");
}
clickOnWebElement(webElement);
dialogUtils.hideSoftKeyboard(null, true, true);
instrumentation.sendStringSync(text);
} | java | public void typeTextInWebElement(WebElement webElement, String text){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "typeTextInWebElement("+webElement+", \""+text+"\")");
}
clickOnWebElement(webElement);
dialogUtils.hideSoftKeyboard(null, true, true);
instrumentation.sendStringSync(text);
} | [
"public",
"void",
"typeTextInWebElement",
"(",
"WebElement",
"webElement",
",",
"String",
"text",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"typeTextInWebElement(\"",
"+",
"... | Types text in the specified WebElement.
@param webElement the WebElement to type text in
@param text the text to enter in the {@link WebElement} field | [
"Types",
"text",
"in",
"the",
"specified",
"WebElement",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L2777-L2785 |
30,164 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.clearTextInWebElement | public void clearTextInWebElement(By by){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clearTextInWebElement("+by+")");
}
webUtils.enterTextIntoWebElement(by, "");
} | java | public void clearTextInWebElement(By by){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clearTextInWebElement("+by+")");
}
webUtils.enterTextIntoWebElement(by, "");
} | [
"public",
"void",
"clearTextInWebElement",
"(",
"By",
"by",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"clearTextInWebElement(\"",
"+",
"by",
"+",
"\")\"",
")",
";",
"}",... | Clears text in a WebElement matching the specified By object.
@param by the By object. Examples are: {@code By.id("id")} and {@code By.name("name")} | [
"Clears",
"text",
"in",
"a",
"WebElement",
"matching",
"the",
"specified",
"By",
"object",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L2822-L2828 |
30,165 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.clickOnImage | public void clickOnImage(int index) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickOnImage("+index+")");
}
clicker.clickOn(ImageView.class, index);
} | java | public void clickOnImage(int index) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickOnImage("+index+")");
}
clicker.clickOn(ImageView.class, index);
} | [
"public",
"void",
"clickOnImage",
"(",
"int",
"index",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"clickOnImage(\"",
"+",
"index",
"+",
"\")\"",
")",
";",
"}",
"clicker... | Clicks an ImageView matching the specified index.
@param index the index of the {@link ImageView} to click. {@code 0} if only one is available | [
"Clicks",
"an",
"ImageView",
"matching",
"the",
"specified",
"index",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L2836-L2842 |
30,166 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.getEditText | public EditText getEditText(int index) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "getEditText("+index+")");
}
return getter.getView(EditText.class, index);
} | java | public EditText getEditText(int index) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "getEditText("+index+")");
}
return getter.getView(EditText.class, index);
} | [
"public",
"EditText",
"getEditText",
"(",
"int",
"index",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"getEditText(\"",
"+",
"index",
"+",
"\")\"",
")",
";",
"}",
"retur... | Returns an EditText matching the specified index.
@param index the index of the {@link EditText}. {@code 0} if only one is available
@return an {@link EditText} matching the specified index | [
"Returns",
"an",
"EditText",
"matching",
"the",
"specified",
"index",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L2851-L2857 |
30,167 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.getButton | public Button getButton(int index) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "getButton("+index+")");
}
return getter.getView(Button.class, index);
} | java | public Button getButton(int index) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "getButton("+index+")");
}
return getter.getView(Button.class, index);
} | [
"public",
"Button",
"getButton",
"(",
"int",
"index",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"getButton(\"",
"+",
"index",
"+",
"\")\"",
")",
";",
"}",
"return",
... | Returns a Button matching the specified index.
@param index the index of the {@link Button}. {@code 0} if only one is available
@return a {@link Button} matching the specified index | [
"Returns",
"a",
"Button",
"matching",
"the",
"specified",
"index",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L2866-L2872 |
30,168 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.getText | public TextView getText(int index) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "getText("+index+")");
}
return getter.getView(TextView.class, index);
} | java | public TextView getText(int index) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "getText("+index+")");
}
return getter.getView(TextView.class, index);
} | [
"public",
"TextView",
"getText",
"(",
"int",
"index",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"getText(\"",
"+",
"index",
"+",
"\")\"",
")",
";",
"}",
"return",
"g... | Returns a TextView matching the specified index.
@param index the index of the {@link TextView}. {@code 0} if only one is available
@return a {@link TextView} matching the specified index | [
"Returns",
"a",
"TextView",
"matching",
"the",
"specified",
"index",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L2881-L2887 |
30,169 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.getImage | public ImageView getImage(int index) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "getImage("+index+")");
}
return getter.getView(ImageView.class, index);
} | java | public ImageView getImage(int index) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "getImage("+index+")");
}
return getter.getView(ImageView.class, index);
} | [
"public",
"ImageView",
"getImage",
"(",
"int",
"index",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"getImage(\"",
"+",
"index",
"+",
"\")\"",
")",
";",
"}",
"return",
... | Returns an ImageView matching the specified index.
@param index the index of the {@link ImageView}. {@code 0} if only one is available
@return an {@link ImageView} matching the specified index | [
"Returns",
"an",
"ImageView",
"matching",
"the",
"specified",
"index",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L2896-L2902 |
30,170 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.getImageButton | public ImageButton getImageButton(int index) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "getImageButton("+index+")");
}
return getter.getView(ImageButton.class, index);
} | java | public ImageButton getImageButton(int index) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "getImageButton("+index+")");
}
return getter.getView(ImageButton.class, index);
} | [
"public",
"ImageButton",
"getImageButton",
"(",
"int",
"index",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"getImageButton(\"",
"+",
"index",
"+",
"\")\"",
")",
";",
"}",... | Returns an ImageButton matching the specified index.
@param index the index of the {@link ImageButton}. {@code 0} if only one is available
@return the {@link ImageButton} matching the specified index | [
"Returns",
"an",
"ImageButton",
"matching",
"the",
"specified",
"index",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L2911-L2917 |
30,171 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.getText | public TextView getText(String text)
{
if(config.commandLogging){
Log.d(config.commandLoggingTag, "getText(\""+text+"\")");
}
return getter.getView(TextView.class, text, false);
} | java | public TextView getText(String text)
{
if(config.commandLogging){
Log.d(config.commandLoggingTag, "getText(\""+text+"\")");
}
return getter.getView(TextView.class, text, false);
} | [
"public",
"TextView",
"getText",
"(",
"String",
"text",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"getText(\\\"\"",
"+",
"text",
"+",
"\"\\\")\"",
")",
";",
"}",
"retu... | Returns a TextView displaying the specified text.
@param text the text that is displayed, specified as a regular expression
@return the {@link TextView} displaying the specified text | [
"Returns",
"a",
"TextView",
"displaying",
"the",
"specified",
"text",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L2926-L2933 |
30,172 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.getButton | public Button getButton(String text, boolean onlyVisible)
{
if(config.commandLogging){
Log.d(config.commandLoggingTag, "getButton(\""+text+"\", "+onlyVisible+")");
}
return getter.getView(Button.class, text, onlyVisible);
} | java | public Button getButton(String text, boolean onlyVisible)
{
if(config.commandLogging){
Log.d(config.commandLoggingTag, "getButton(\""+text+"\", "+onlyVisible+")");
}
return getter.getView(Button.class, text, onlyVisible);
} | [
"public",
"Button",
"getButton",
"(",
"String",
"text",
",",
"boolean",
"onlyVisible",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"getButton(\\\"\"",
"+",
"text",
"+",
"\... | Returns a Button displaying the specified text.
@param text the text that is displayed, specified as a regular expression
@param onlyVisible {@code true} if only visible buttons on the screen should be returned
@return the {@link Button} displaying the specified text | [
"Returns",
"a",
"Button",
"displaying",
"the",
"specified",
"text",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L2976-L2983 |
30,173 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.getEditText | public EditText getEditText(String text)
{
if(config.commandLogging){
Log.d(config.commandLoggingTag, "getEditText(\""+text+"\")");
}
return getter.getView(EditText.class, text, false);
} | java | public EditText getEditText(String text)
{
if(config.commandLogging){
Log.d(config.commandLoggingTag, "getEditText(\""+text+"\")");
}
return getter.getView(EditText.class, text, false);
} | [
"public",
"EditText",
"getEditText",
"(",
"String",
"text",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"getEditText(\\\"\"",
"+",
"text",
"+",
"\"\\\")\"",
")",
";",
"}",... | Returns an EditText displaying the specified text.
@param text the text that is displayed, specified as a regular expression
@return the {@link EditText} displaying the specified text | [
"Returns",
"an",
"EditText",
"displaying",
"the",
"specified",
"text",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L2992-L2999 |
30,174 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.getView | public View getView(int id){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "getView("+id+")");
}
return getView(id, 0);
} | java | public View getView(int id){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "getView("+id+")");
}
return getView(id, 0);
} | [
"public",
"View",
"getView",
"(",
"int",
"id",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"getView(\"",
"+",
"id",
"+",
"\")\"",
")",
";",
"}",
"return",
"getView",
... | Returns a View matching the specified resource id.
@param id the R.id of the {@link View} to return
@return a {@link View} matching the specified id | [
"Returns",
"a",
"View",
"matching",
"the",
"specified",
"resource",
"id",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L3025-L3031 |
30,175 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.getView | public View getView(Object tag){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "getView("+tag+")");
}
return getView(tag, 0);
} | java | public View getView(Object tag){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "getView("+tag+")");
}
return getView(tag, 0);
} | [
"public",
"View",
"getView",
"(",
"Object",
"tag",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"getView(\"",
"+",
"tag",
"+",
"\")\"",
")",
";",
"}",
"return",
"getVie... | Returns a View matching the specified tag.
@param tag the tag of the {@link View} to return
@return a {@link View} matching the specified id | [
"Returns",
"a",
"View",
"matching",
"the",
"specified",
"tag",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L3073-L3079 |
30,176 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.getView | public View getView(Object tag, int index){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "getView("+tag+", "+index+")");
}
View viewToReturn = getter.getView(tag, index);
if(viewToReturn == null) {
int match = index + 1;
if(match > 1){
Assert.fail(match + " Views with id: '" + tag + "' are not found!");
}
else {
Assert.fail("View with id: '" + tag + "' is not found!");
}
}
return viewToReturn;
} | java | public View getView(Object tag, int index){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "getView("+tag+", "+index+")");
}
View viewToReturn = getter.getView(tag, index);
if(viewToReturn == null) {
int match = index + 1;
if(match > 1){
Assert.fail(match + " Views with id: '" + tag + "' are not found!");
}
else {
Assert.fail("View with id: '" + tag + "' is not found!");
}
}
return viewToReturn;
} | [
"public",
"View",
"getView",
"(",
"Object",
"tag",
",",
"int",
"index",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"getView(\"",
"+",
"tag",
"+",
"\", \"",
"+",
"inde... | Returns a View matching the specified tag and index.
@param tag the tag of the {@link View} to return
@param index the index of the {@link View}. {@code 0} if only one is available
@return a {@link View} matching the specified id and index | [
"Returns",
"a",
"View",
"matching",
"the",
"specified",
"tag",
"and",
"index",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L3089-L3106 |
30,177 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.getView | public <T extends View> T getView(Class<T> viewClass, int index){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "getView("+viewClass+", "+index+")");
}
return waiter.waitForAndGetView(index, viewClass);
} | java | public <T extends View> T getView(Class<T> viewClass, int index){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "getView("+viewClass+", "+index+")");
}
return waiter.waitForAndGetView(index, viewClass);
} | [
"public",
"<",
"T",
"extends",
"View",
">",
"T",
"getView",
"(",
"Class",
"<",
"T",
">",
"viewClass",
",",
"int",
"index",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
... | Returns a View matching the specified class and index.
@param viewClass the class of the requested view
@param index the index of the {@link View}. {@code 0} if only one is available
@return a {@link View} matching the specified class and index | [
"Returns",
"a",
"View",
"matching",
"the",
"specified",
"class",
"and",
"index",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L3158-L3164 |
30,178 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.getWebElement | public WebElement getWebElement(By by, int index){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "getWebElement("+by+", "+index+")");
}
int match = index + 1;
WebElement webElement = waiter.waitForWebElement(by, match, Timeout.getSmallTimeout(), true);
if(webElement == null) {
if(match > 1){
Assert.fail(match + " WebElements with " + webUtils.splitNameByUpperCase(by.getClass().getSimpleName()) + ": '" + by.getValue() + "' are not found!");
}
else {
Assert.fail("WebElement with " + webUtils.splitNameByUpperCase(by.getClass().getSimpleName()) + ": '" + by.getValue() + "' is not found!");
}
}
return webElement;
} | java | public WebElement getWebElement(By by, int index){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "getWebElement("+by+", "+index+")");
}
int match = index + 1;
WebElement webElement = waiter.waitForWebElement(by, match, Timeout.getSmallTimeout(), true);
if(webElement == null) {
if(match > 1){
Assert.fail(match + " WebElements with " + webUtils.splitNameByUpperCase(by.getClass().getSimpleName()) + ": '" + by.getValue() + "' are not found!");
}
else {
Assert.fail("WebElement with " + webUtils.splitNameByUpperCase(by.getClass().getSimpleName()) + ": '" + by.getValue() + "' is not found!");
}
}
return webElement;
} | [
"public",
"WebElement",
"getWebElement",
"(",
"By",
"by",
",",
"int",
"index",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"getWebElement(\"",
"+",
"by",
"+",
"\", \"",
... | Returns a WebElement matching the specified By object and index.
@param by the By object. Examples are: {@code By.id("id")} and {@code By.name("name")}
@param index the index of the {@link WebElement}. {@code 0} if only one is available
@return a {@link WebElement} matching the specified index | [
"Returns",
"a",
"WebElement",
"matching",
"the",
"specified",
"By",
"object",
"and",
"index",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L3174-L3191 |
30,179 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.getWebUrl | public String getWebUrl() {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "getWebUrl()");
}
final WebView webView = waiter.waitForAndGetView(0, WebView.class);
if(webView == null)
Assert.fail("WebView is not found!");
instrumentation.runOnMainSync(new Runnable() {
public void run() {
webUrl = webView.getUrl();
}
});
return webUrl;
} | java | public String getWebUrl() {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "getWebUrl()");
}
final WebView webView = waiter.waitForAndGetView(0, WebView.class);
if(webView == null)
Assert.fail("WebView is not found!");
instrumentation.runOnMainSync(new Runnable() {
public void run() {
webUrl = webView.getUrl();
}
});
return webUrl;
} | [
"public",
"String",
"getWebUrl",
"(",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"getWebUrl()\"",
")",
";",
"}",
"final",
"WebView",
"webView",
"=",
"waiter",
".",
"wai... | Returns the current web page URL.
@return the current web page URL | [
"Returns",
"the",
"current",
"web",
"page",
"URL",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L3199-L3215 |
30,180 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.getCurrentViews | public ArrayList<View> getCurrentViews() {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "getCurrentViews()");
}
return viewFetcher.getViews(null, true);
} | java | public ArrayList<View> getCurrentViews() {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "getCurrentViews()");
}
return viewFetcher.getViews(null, true);
} | [
"public",
"ArrayList",
"<",
"View",
">",
"getCurrentViews",
"(",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"getCurrentViews()\"",
")",
";",
"}",
"return",
"viewFetcher",
... | Returns an ArrayList of the Views currently displayed in the focused Activity or Dialog.
@return an {@code ArrayList} of the {@link View} objects currently displayed in the
focused window | [
"Returns",
"an",
"ArrayList",
"of",
"the",
"Views",
"currently",
"displayed",
"in",
"the",
"focused",
"Activity",
"or",
"Dialog",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L3224-L3230 |
30,181 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.getCurrentViews | public <T extends View> ArrayList<T> getCurrentViews(Class<T> classToFilterBy, boolean includeSubclasses, View parent) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "getCurrentViews("+classToFilterBy+", "+includeSubclasses+", "+parent+")");
}
return viewFetcher.getCurrentViews(classToFilterBy, includeSubclasses, parent);
} | java | public <T extends View> ArrayList<T> getCurrentViews(Class<T> classToFilterBy, boolean includeSubclasses, View parent) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "getCurrentViews("+classToFilterBy+", "+includeSubclasses+", "+parent+")");
}
return viewFetcher.getCurrentViews(classToFilterBy, includeSubclasses, parent);
} | [
"public",
"<",
"T",
"extends",
"View",
">",
"ArrayList",
"<",
"T",
">",
"getCurrentViews",
"(",
"Class",
"<",
"T",
">",
"classToFilterBy",
",",
"boolean",
"includeSubclasses",
",",
"View",
"parent",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")"... | Returns an ArrayList of Views matching the specified class located under the specified parent.
@param classToFilterBy return all instances of this class. Examples are: {@code Button.class} or {@code ListView.class}
@param includeSubclasses include instances of subclasses in the {@code ArrayList} that will be returned
@param parent the parent {@code View} for where to start the traversal
@return an {@code ArrayList} of {@code View}s matching the specified {@code Class} located under the specified {@code parent} | [
"Returns",
"an",
"ArrayList",
"of",
"Views",
"matching",
"the",
"specified",
"class",
"located",
"under",
"the",
"specified",
"parent",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L3287-L3293 |
30,182 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.getWebElements | public ArrayList<WebElement> getWebElements(){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "getWebElements()");
}
return webUtils.getWebElements(false);
} | java | public ArrayList<WebElement> getWebElements(){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "getWebElements()");
}
return webUtils.getWebElements(false);
} | [
"public",
"ArrayList",
"<",
"WebElement",
">",
"getWebElements",
"(",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"getWebElements()\"",
")",
";",
"}",
"return",
"webUtils",
... | Returns an ArrayList of all the WebElements displayed in the active WebView.
@return an {@code ArrayList} of all the {@link WebElement} objects currently displayed in the active WebView | [
"Returns",
"an",
"ArrayList",
"of",
"all",
"the",
"WebElements",
"displayed",
"in",
"the",
"active",
"WebView",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L3301-L3307 |
30,183 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.getCurrentWebElements | public ArrayList<WebElement> getCurrentWebElements(){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "getCurrentWebElements()");
}
return webUtils.getWebElements(true);
} | java | public ArrayList<WebElement> getCurrentWebElements(){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "getCurrentWebElements()");
}
return webUtils.getWebElements(true);
} | [
"public",
"ArrayList",
"<",
"WebElement",
">",
"getCurrentWebElements",
"(",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"getCurrentWebElements()\"",
")",
";",
"}",
"return",
... | Returns an ArrayList of the currently displayed WebElements in the active WebView.
@return an {@code ArrayList} of the {@link WebElement} objects displayed in the active WebView | [
"Returns",
"an",
"ArrayList",
"of",
"the",
"currently",
"displayed",
"WebElements",
"in",
"the",
"active",
"WebView",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L3330-L3336 |
30,184 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.isRadioButtonChecked | public boolean isRadioButtonChecked(int index)
{
if(config.commandLogging){
Log.d(config.commandLoggingTag, "isRadioButtonChecked("+index+")");
}
return checker.isButtonChecked(RadioButton.class, index);
} | java | public boolean isRadioButtonChecked(int index)
{
if(config.commandLogging){
Log.d(config.commandLoggingTag, "isRadioButtonChecked("+index+")");
}
return checker.isButtonChecked(RadioButton.class, index);
} | [
"public",
"boolean",
"isRadioButtonChecked",
"(",
"int",
"index",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"isRadioButtonChecked(\"",
"+",
"index",
"+",
"\")\"",
")",
";"... | Checks if a RadioButton matching the specified index is checked.
@param index of the {@link RadioButton} to check. {@code 0} if only one is available
@return {@code true} if {@link RadioButton} is checked and {@code false} if it is not checked | [
"Checks",
"if",
"a",
"RadioButton",
"matching",
"the",
"specified",
"index",
"is",
"checked",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L3360-L3367 |
30,185 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.isRadioButtonChecked | public boolean isRadioButtonChecked(String text)
{
if(config.commandLogging){
Log.d(config.commandLoggingTag, "isRadioButtonChecked(\""+text+"\")");
}
return checker.isButtonChecked(RadioButton.class, text);
} | java | public boolean isRadioButtonChecked(String text)
{
if(config.commandLogging){
Log.d(config.commandLoggingTag, "isRadioButtonChecked(\""+text+"\")");
}
return checker.isButtonChecked(RadioButton.class, text);
} | [
"public",
"boolean",
"isRadioButtonChecked",
"(",
"String",
"text",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"isRadioButtonChecked(\\\"\"",
"+",
"text",
"+",
"\"\\\")\"",
"... | Checks if a RadioButton displaying the specified text is checked.
@param text the text that the {@link RadioButton} displays, specified as a regular expression
@return {@code true} if a {@link RadioButton} matching the specified text is checked and {@code false} if it is not checked | [
"Checks",
"if",
"a",
"RadioButton",
"displaying",
"the",
"specified",
"text",
"is",
"checked",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L3376-L3383 |
30,186 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.isCheckBoxChecked | public boolean isCheckBoxChecked(int index)
{
if(config.commandLogging){
Log.d(config.commandLoggingTag, "isCheckBoxChecked("+index+")");
}
return checker.isButtonChecked(CheckBox.class, index);
} | java | public boolean isCheckBoxChecked(int index)
{
if(config.commandLogging){
Log.d(config.commandLoggingTag, "isCheckBoxChecked("+index+")");
}
return checker.isButtonChecked(CheckBox.class, index);
} | [
"public",
"boolean",
"isCheckBoxChecked",
"(",
"int",
"index",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"isCheckBoxChecked(\"",
"+",
"index",
"+",
"\")\"",
")",
";",
"}... | Checks if a CheckBox matching the specified index is checked.
@param index of the {@link CheckBox} to check. {@code 0} if only one is available
@return {@code true} if {@link CheckBox} is checked and {@code false} if it is not checked | [
"Checks",
"if",
"a",
"CheckBox",
"matching",
"the",
"specified",
"index",
"is",
"checked",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L3392-L3399 |
30,187 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.isToggleButtonChecked | public boolean isToggleButtonChecked(String text)
{
if(config.commandLogging){
Log.d(config.commandLoggingTag, "isToggleButtonChecked(\""+text+"\")");
}
return checker.isButtonChecked(ToggleButton.class, text);
} | java | public boolean isToggleButtonChecked(String text)
{
if(config.commandLogging){
Log.d(config.commandLoggingTag, "isToggleButtonChecked(\""+text+"\")");
}
return checker.isButtonChecked(ToggleButton.class, text);
} | [
"public",
"boolean",
"isToggleButtonChecked",
"(",
"String",
"text",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"isToggleButtonChecked(\\\"\"",
"+",
"text",
"+",
"\"\\\")\"",
... | Checks if a ToggleButton displaying the specified text is checked.
@param text the text that the {@link ToggleButton} displays, specified as a regular expression
@return {@code true} if a {@link ToggleButton} matching the specified text is checked and {@code false} if it is not checked | [
"Checks",
"if",
"a",
"ToggleButton",
"displaying",
"the",
"specified",
"text",
"is",
"checked",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L3408-L3415 |
30,188 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.isToggleButtonChecked | public boolean isToggleButtonChecked(int index)
{
if(config.commandLogging){
Log.d(config.commandLoggingTag, "isToggleButtonChecked("+index+")");
}
return checker.isButtonChecked(ToggleButton.class, index);
} | java | public boolean isToggleButtonChecked(int index)
{
if(config.commandLogging){
Log.d(config.commandLoggingTag, "isToggleButtonChecked("+index+")");
}
return checker.isButtonChecked(ToggleButton.class, index);
} | [
"public",
"boolean",
"isToggleButtonChecked",
"(",
"int",
"index",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"isToggleButtonChecked(\"",
"+",
"index",
"+",
"\")\"",
")",
"... | Checks if a ToggleButton matching the specified index is checked.
@param index of the {@link ToggleButton} to check. {@code 0} if only one is available
@return {@code true} if {@link ToggleButton} is checked and {@code false} if it is not checked | [
"Checks",
"if",
"a",
"ToggleButton",
"matching",
"the",
"specified",
"index",
"is",
"checked",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L3424-L3431 |
30,189 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.isCheckBoxChecked | public boolean isCheckBoxChecked(String text)
{
if(config.commandLogging){
Log.d(config.commandLoggingTag, "isCheckBoxChecked(\""+text+"\")");
}
return checker.isButtonChecked(CheckBox.class, text);
} | java | public boolean isCheckBoxChecked(String text)
{
if(config.commandLogging){
Log.d(config.commandLoggingTag, "isCheckBoxChecked(\""+text+"\")");
}
return checker.isButtonChecked(CheckBox.class, text);
} | [
"public",
"boolean",
"isCheckBoxChecked",
"(",
"String",
"text",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"isCheckBoxChecked(\\\"\"",
"+",
"text",
"+",
"\"\\\")\"",
")",
... | Checks if a CheckBox displaying the specified text is checked.
@param text the text that the {@link CheckBox} displays, specified as a regular expression
@return {@code true} if a {@link CheckBox} displaying the specified text is checked and {@code false} if it is not checked | [
"Checks",
"if",
"a",
"CheckBox",
"displaying",
"the",
"specified",
"text",
"is",
"checked",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L3440-L3447 |
30,190 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.isTextChecked | @SuppressWarnings("unchecked")
public boolean isTextChecked(String text){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "isTextChecked(\""+text+"\")");
}
waiter.waitForViews(false, CheckedTextView.class, CompoundButton.class);
if(viewFetcher.getCurrentViews(CheckedTextView.class, true).size() > 0 && checker.isCheckedTextChecked(text))
return true;
if(viewFetcher.getCurrentViews(CompoundButton.class, true).size() > 0 && checker.isButtonChecked(CompoundButton.class, text))
return true;
return false;
} | java | @SuppressWarnings("unchecked")
public boolean isTextChecked(String text){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "isTextChecked(\""+text+"\")");
}
waiter.waitForViews(false, CheckedTextView.class, CompoundButton.class);
if(viewFetcher.getCurrentViews(CheckedTextView.class, true).size() > 0 && checker.isCheckedTextChecked(text))
return true;
if(viewFetcher.getCurrentViews(CompoundButton.class, true).size() > 0 && checker.isButtonChecked(CompoundButton.class, text))
return true;
return false;
} | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"public",
"boolean",
"isTextChecked",
"(",
"String",
"text",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"isTextChecked(\\\... | Checks if the specified text is checked.
@param text the text that the {@link CheckedTextView} or {@link CompoundButton} objects display, specified as a regular expression
@return {@code true} if the specified text is checked and {@code false} if it is not checked | [
"Checks",
"if",
"the",
"specified",
"text",
"is",
"checked",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L3456-L3471 |
30,191 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.isSpinnerTextSelected | public boolean isSpinnerTextSelected(String text)
{
if(config.commandLogging){
Log.d(config.commandLoggingTag, "isSpinnerTextSelected(\""+text+"\")");
}
return checker.isSpinnerTextSelected(text);
} | java | public boolean isSpinnerTextSelected(String text)
{
if(config.commandLogging){
Log.d(config.commandLoggingTag, "isSpinnerTextSelected(\""+text+"\")");
}
return checker.isSpinnerTextSelected(text);
} | [
"public",
"boolean",
"isSpinnerTextSelected",
"(",
"String",
"text",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"isSpinnerTextSelected(\\\"\"",
"+",
"text",
"+",
"\"\\\")\"",
... | Checks if the specified text is selected in any Spinner located in the current screen.
@param text the text that is expected to be selected, specified as a regular expression
@return {@code true} if the specified text is selected in any {@link Spinner} and false if it is not | [
"Checks",
"if",
"the",
"specified",
"text",
"is",
"selected",
"in",
"any",
"Spinner",
"located",
"in",
"the",
"current",
"screen",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L3480-L3487 |
30,192 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.hideSoftKeyboard | public void hideSoftKeyboard() {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "hideSoftKeyboard()");
}
dialogUtils.hideSoftKeyboard(null, true, false);
} | java | public void hideSoftKeyboard() {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "hideSoftKeyboard()");
}
dialogUtils.hideSoftKeyboard(null, true, false);
} | [
"public",
"void",
"hideSoftKeyboard",
"(",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"hideSoftKeyboard()\"",
")",
";",
"}",
"dialogUtils",
".",
"hideSoftKeyboard",
"(",
"n... | Hides the soft keyboard. | [
"Hides",
"the",
"soft",
"keyboard",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L3510-L3516 |
30,193 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.unlockScreen | public void unlockScreen(){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "unlockScreen()");
}
final Activity activity = activityUtils.getCurrentActivity(false);
instrumentation.runOnMainSync(new Runnable() {
@Override
public void run() {
if(activity != null){
activity.getWindow().addFlags(WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD);
}
}
});
} | java | public void unlockScreen(){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "unlockScreen()");
}
final Activity activity = activityUtils.getCurrentActivity(false);
instrumentation.runOnMainSync(new Runnable() {
@Override
public void run() {
if(activity != null){
activity.getWindow().addFlags(WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD);
}
}
});
} | [
"public",
"void",
"unlockScreen",
"(",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"unlockScreen()\"",
")",
";",
"}",
"final",
"Activity",
"activity",
"=",
"activityUtils",
... | Unlocks the lock screen. | [
"Unlocks",
"the",
"lock",
"screen",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L3522-L3536 |
30,194 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.goBackToActivity | public void goBackToActivity(String name) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "goBackToActivity(\""+name+"\")");
}
activityUtils.goBackToActivity(name);
} | java | public void goBackToActivity(String name) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "goBackToActivity(\""+name+"\")");
}
activityUtils.goBackToActivity(name);
} | [
"public",
"void",
"goBackToActivity",
"(",
"String",
"name",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"goBackToActivity(\\\"\"",
"+",
"name",
"+",
"\"\\\")\"",
")",
";",
... | Returns to an Activity matching the specified name.
@param name the name of the {@link Activity} to return to. Example is: {@code "MyActivity"} | [
"Returns",
"to",
"an",
"Activity",
"matching",
"the",
"specified",
"name",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L3560-L3566 |
30,195 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.waitForActivity | public boolean waitForActivity(String name){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "waitForActivity(\""+name+"\")");
}
return waiter.waitForActivity(name, Timeout.getLargeTimeout());
} | java | public boolean waitForActivity(String name){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "waitForActivity(\""+name+"\")");
}
return waiter.waitForActivity(name, Timeout.getLargeTimeout());
} | [
"public",
"boolean",
"waitForActivity",
"(",
"String",
"name",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"waitForActivity(\\\"\"",
"+",
"name",
"+",
"\"\\\")\"",
")",
";",... | Waits for an Activity matching the specified name. Default timeout is 20 seconds.
@param name the name of the {@code Activity} to wait for. Example is: {@code "MyActivity"}
@return {@code true} if {@code Activity} appears before the timeout and {@code false} if it does not | [
"Waits",
"for",
"an",
"Activity",
"matching",
"the",
"specified",
"name",
".",
"Default",
"timeout",
"is",
"20",
"seconds",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L3575-L3581 |
30,196 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.waitForActivity | public boolean waitForActivity(String name, int timeout)
{
if(config.commandLogging){
Log.d(config.commandLoggingTag, "waitForActivity(\""+name+"\", "+timeout+")");
}
return waiter.waitForActivity(name, timeout);
} | java | public boolean waitForActivity(String name, int timeout)
{
if(config.commandLogging){
Log.d(config.commandLoggingTag, "waitForActivity(\""+name+"\", "+timeout+")");
}
return waiter.waitForActivity(name, timeout);
} | [
"public",
"boolean",
"waitForActivity",
"(",
"String",
"name",
",",
"int",
"timeout",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"waitForActivity(\\\"\"",
"+",
"name",
"+",... | Waits for an Activity matching the specified name.
@param name the name of the {@link Activity} to wait for. Example is: {@code "MyActivity"}
@param timeout the amount of time in milliseconds to wait
@return {@code true} if {@link Activity} appears before the timeout and {@code false} if it does not | [
"Waits",
"for",
"an",
"Activity",
"matching",
"the",
"specified",
"name",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L3591-L3598 |
30,197 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.waitForActivity | public boolean waitForActivity(Class<? extends Activity> activityClass){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "waitForActivity("+activityClass+")");
}
return waiter.waitForActivity(activityClass, Timeout.getLargeTimeout());
} | java | public boolean waitForActivity(Class<? extends Activity> activityClass){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "waitForActivity("+activityClass+")");
}
return waiter.waitForActivity(activityClass, Timeout.getLargeTimeout());
} | [
"public",
"boolean",
"waitForActivity",
"(",
"Class",
"<",
"?",
"extends",
"Activity",
">",
"activityClass",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"waitForActivity(\"",
... | Waits for an Activity matching the specified class. Default timeout is 20 seconds.
@param activityClass the class of the {@code Activity} to wait for. Example is: {@code MyActivity.class}
@return {@code true} if {@code Activity} appears before the timeout and {@code false} if it does not | [
"Waits",
"for",
"an",
"Activity",
"matching",
"the",
"specified",
"class",
".",
"Default",
"timeout",
"is",
"20",
"seconds",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L3607-L3613 |
30,198 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.waitForActivity | public boolean waitForActivity(Class<? extends Activity> activityClass, int timeout)
{
if(config.commandLogging){
Log.d(config.commandLoggingTag, "waitForActivity("+activityClass+", "+timeout+")");
}
return waiter.waitForActivity(activityClass, timeout);
} | java | public boolean waitForActivity(Class<? extends Activity> activityClass, int timeout)
{
if(config.commandLogging){
Log.d(config.commandLoggingTag, "waitForActivity("+activityClass+", "+timeout+")");
}
return waiter.waitForActivity(activityClass, timeout);
} | [
"public",
"boolean",
"waitForActivity",
"(",
"Class",
"<",
"?",
"extends",
"Activity",
">",
"activityClass",
",",
"int",
"timeout",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",... | Waits for an Activity matching the specified class.
@param activityClass the class of the {@code Activity} to wait for. Example is: {@code MyActivity.class}
@param timeout the amount of time in milliseconds to wait
@return {@code true} if {@link Activity} appears before the timeout and {@code false} if it does not | [
"Waits",
"for",
"an",
"Activity",
"matching",
"the",
"specified",
"class",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L3623-L3630 |
30,199 | RobotiumTech/robotium | robotium-solo/src/main/java/com/robotium/solo/Solo.java | Solo.waitForEmptyActivityStack | public boolean waitForEmptyActivityStack(int timeout)
{
if(config.commandLogging){
Log.d(config.commandLoggingTag, "waitForEmptyActivityStack("+timeout+")");
}
return waiter.waitForCondition(
new Condition(){
@Override
public boolean isSatisfied() {
return activityUtils.isActivityStackEmpty();
}
}, timeout);
} | java | public boolean waitForEmptyActivityStack(int timeout)
{
if(config.commandLogging){
Log.d(config.commandLoggingTag, "waitForEmptyActivityStack("+timeout+")");
}
return waiter.waitForCondition(
new Condition(){
@Override
public boolean isSatisfied() {
return activityUtils.isActivityStackEmpty();
}
}, timeout);
} | [
"public",
"boolean",
"waitForEmptyActivityStack",
"(",
"int",
"timeout",
")",
"{",
"if",
"(",
"config",
".",
"commandLogging",
")",
"{",
"Log",
".",
"d",
"(",
"config",
".",
"commandLoggingTag",
",",
"\"waitForEmptyActivityStack(\"",
"+",
"timeout",
"+",
"\")\""... | Wait for the activity stack to be empty.
@param timeout the amount of time in milliseconds to wait
@return {@code true} if activity stack is empty before the timeout and {@code false} if it is not | [
"Wait",
"for",
"the",
"activity",
"stack",
"to",
"be",
"empty",
"."
] | 75e567c38f26a6a87dc8bef90b3886a20e28d291 | https://github.com/RobotiumTech/robotium/blob/75e567c38f26a6a87dc8bef90b3886a20e28d291/robotium-solo/src/main/java/com/robotium/solo/Solo.java#L3640-L3653 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.