Home
last modified time | relevance | path

Searched refs:input (Results 1 – 25 of 56) sorted by relevance

123

/development/samples/browseable/ElizaChat/src/com.example.android.wearable.elizachat/
DElizaResponder.java113 public String elzTalk(String input) { in elzTalk() argument
114 if (null == input) { in elzTalk()
115 input = ""; in elzTalk()
119 input = " " + input.toUpperCase().replace("\'", "") + " "; in elzTalk()
121 if (previousInput != null && input.equals(previousInput)) { in elzTalk()
124 previousInput = input; in elzTalk()
128 int index = input.indexOf(CONVERSATION_KEYWORDS[keywordIndex]); in elzTalk()
138 int index = input.indexOf(CONVERSATION_KEYWORDS[keywordIndex]); in elzTalk()
139 afterKeyword = input.substring(index + CONVERSATION_KEYWORDS[keywordIndex].length()); in elzTalk()
/development/samples/SpellChecker/SampleSpellCheckerService/src/com/example/android/samplespellcheckerservice/
DSampleSpellCheckerService.java64 final String input = textInfo.getText(); in onGetSuggestions() local
65 final int length = input.length(); in onGetSuggestions()
72 new String[] {"aaa", "bbb", "Candidate for " + input, mLocale}, in onGetSuggestions()
101 final String input = ti.getText(); in onGetSentenceSuggestionsMultiple() local
102 final int length = input.length(); in onGetSentenceSuggestionsMultiple()
106 if (input.equalsIgnoreCase("I wold like to here form you")) { in onGetSentenceSuggestionsMultiple()
129 new String[] {"aaa", "bbb", "Candidate for " + input, mLocale}, in onGetSentenceSuggestionsMultiple()
/development/samples/training/notify-user/src/com/example/android/pingme/
DMainActivity.java56 String input = editText.getText().toString(); in onPingClick() local
58 if(input == null || input.trim().equals("")){ in onPingClick()
62 seconds = Integer.parseInt(input); in onPingClick()
/development/samples/browseable/PermissionRequest/src/com.example.android.permissionrequest/
DSimpleWebServer.java186 InputStream input = null; in loadContent() local
189 input = mAssets.open(fileName); in loadContent()
192 while (-1 != (size = input.read(buffer))) { in loadContent()
200 if (null != input) { in loadContent()
201 input.close(); in loadContent()
/development/tools/logblame/
Dpower_toggle_test20 adb shell input keyevent KEYCODE_POWER
22 adb shell input keyevent KEYCODE_POWER
Dapp_switch_test50 adb shell input keyevent 26
51 adb shell input keyevent 26
Danalyze_logs.py147 if args.input:
150 infile = file(args.input, "r")
152 sys.stderr.write("Error opening file for read: %s\n" % args.input[0])
/development/samples/TtsEngine/src/com/example/android/ttsengine/
DRobotSpeakTtsService.java200 private static char normalize(char input) { in normalize() argument
201 if (input == ' ') { in normalize()
202 return input; in normalize()
205 if (input < 'a') { in normalize()
208 if (input > 'z') { in normalize()
212 return input; in normalize()
DCheckVoiceData.java116 private boolean isLanguageSupported(String input) { in isLanguageSupported() argument
118 if (lang.equals(input)) { in isLanguageSupported()
/development/apps/GestureBuilder/src/com/android/gesture/builder/
DCreateGestureActivity.java80 final TextView input = (TextView) findViewById(R.id.gesture_name); in addGesture() local
81 final CharSequence name = input.getText(); in addGesture()
83 input.setError(getString(R.string.error_missing_name)); in addGesture()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DCompressedTextureActivity.java92 InputStream input = getResources().openRawResource(R.raw.androids); in load() local
95 GLES10.GL_RGB, GLES10.GL_UNSIGNED_SHORT_5_6_5, input); in load()
100 input.close(); in load()
/development/samples/browseable/BasicRenderScript/src/com.example.android.common.media/
DMediaCodecWrapper.java186 public boolean writeSample(final ByteBuffer input, in writeSample() argument
191 int size = input.remaining(); in writeSample()
203 input.remaining(), in writeSample()
208 buffer.put(input); in writeSample()
/development/samples/browseable/MediaRecorder/src/com.example.android.common.media/
DMediaCodecWrapper.java186 public boolean writeSample(final ByteBuffer input, in writeSample() argument
191 int size = input.remaining(); in writeSample()
203 input.remaining(), in writeSample()
208 buffer.put(input); in writeSample()
/development/samples/browseable/BasicMediaDecoder/src/com.example.android.common.media/
DMediaCodecWrapper.java186 public boolean writeSample(final ByteBuffer input, in writeSample() argument
191 int size = input.remaining(); in writeSample()
203 input.remaining(), in writeSample()
208 buffer.put(input); in writeSample()
/development/samples/training/NsdChat/src/com/example/android/nsdchat/
DChatConnection.java231 BufferedReader input; in run() local
233 input = new BufferedReader(new InputStreamReader( in run()
238 messageStr = input.readLine(); in run()
247 input.close(); in run()
/development/samples/browseable/MidiScope/
D_index.jd9 attached input device.
/development/samples/browseable/MidiSynth/
D_index.jd9 attached input device.
/development/scripts/
Dbattery_simulator.py49 val = input("Type NUMBER, 'on', 'off' or 'q' > ").lower()
/development/cmds/monkey/
DREADME.NETWORK.txt5 into the input system. The idea is that a process will run on a host
49 This command injects KeyEvent's into the input system. The keycode
63 This command injects a MotionEvent into the input system that
73 This command injects a MotionEvent into the input system that
84 This command will wake the device up from sleep and allow user input.
/development/cmds/monkey/src/com/android/commands/monkey/
DMonkeyGetFrameRateEvent.java100 private String getNumberOfFrames(String input){ in getNumberOfFrames() argument
102 Matcher m = NO_OF_FRAMES_PATTERN.matcher(input); in getNumberOfFrames()
DMonkeySourceNetwork.java551 private BufferedReader input; field in MonkeySourceNetwork
583 input = new BufferedReader(new InputStreamReader(clientSocket.getInputStream())); in startServer()
594 input.close(); in stopServer()
606 private static String replaceQuotedChars(String input) { in replaceQuotedChars() argument
607 return input.replace("\\\"", "\""); in replaceQuotedChars()
718 String command = input.readLine(); in getNextEvent()
/development/samples/browseable/HdrViewfinder/src/com.example.android.hdrviewfinder/
DViewfinderProcessor.java117 public ProcessingTask(Allocation input, int cutPointX, boolean checkMerge) { in ProcessingTask() argument
118 mInputAllocation = input; in ProcessingTask()
/development/apps/SdkSetup/src/com/android/sdksetup/
DDefaultActivity.java23 import android.hardware.input.InputManager;
24 import android.hardware.input.KeyboardLayout;
/development/samples/Wiktionary/src/com/example/android/wiktionary/
DExtendedWikiHelper.java147 public String apply(String input) { in apply() argument
148 Matcher m = mPattern.matcher(input); in apply()
/development/tools/idegen/src/com/android/idegen/
DDirectorySearch.java162 public boolean apply(File input) { in findSourceDirs()
163 return !input.getAbsolutePath().endsWith("java/java"); in findSourceDirs()

123