Home
last modified time | relevance | path

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

1234567891011

/packages/apps/TV/src/com/android/tv/dvr/
DDvrScheduleManager.java128 TvInputInfo input = in DvrScheduleManager()
131 input != null, TAG, "Input was removed for : %s", schedule)) { in DvrScheduleManager()
137 String inputId = input.getId(); in DvrScheduleManager()
156 TvInputInfo input = in DvrScheduleManager()
158 if (input == null) { in DvrScheduleManager()
164 String inputId = input.getId(); in DvrScheduleManager()
192 TvInputInfo input = in DvrScheduleManager()
195 input != null, TAG, "Input was removed for : %s", schedule)) { in DvrScheduleManager()
201 String inputId = input.getId(); in DvrScheduleManager()
524 TvInputInfo input = Utils.getTvInputInfoForProgram(mContext, program); in getConflictingSchedules()
[all …]
/packages/services/Telephony/src/com/android/phone/
DSpecialCharSequenceMgr.java77 static boolean handleChars(Context context, String input) { in handleChars() argument
78 return handleChars(context, input, null); in handleChars()
104 String input, in handleChars() argument
108 String dialString = PhoneNumberUtils.stripSeparators(input); in handleChars()
130 String input, in handleCharsForLockedDevice() argument
133 String dialString = PhoneNumberUtils.stripSeparators(input); in handleCharsForLockedDevice()
156 static private boolean handleSecretCode(String input) { in handleSecretCode() argument
158 int len = input.length(); in handleSecretCode()
159 if (len > 8 && input.startsWith("*#*#") && input.endsWith("#*#*")) { in handleSecretCode()
161 phone.sendDialerSpecialCode(input.substring(4, len - 4)); in handleSecretCode()
[all …]
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/jpegstream/
DStreamUtils.java31 public static boolean byteToIntArray(int[] output, byte[] input, ByteOrder endianness) { in byteToIntArray() argument
32 int length = input.length - (input.length % 4); in byteToIntArray()
38 output[i] = ((input[j] & 0xFF) << 24) | ((input[j + 1] & 0xFF) << 16) in byteToIntArray()
39 | ((input[j + 2] & 0xFF) << 8) | ((input[j + 3] & 0xFF)); in byteToIntArray()
43 output[i] = ((input[j + 3] & 0xFF) << 24) | ((input[j + 2] & 0xFF) << 16) in byteToIntArray()
44 | ((input[j + 1] & 0xFF) << 8) | ((input[j] & 0xFF)); in byteToIntArray()
47 return input.length % 4 != 0; in byteToIntArray()
50 public static int[] byteToIntArray(byte[] input, ByteOrder endianness) { in byteToIntArray() argument
51 int[] output = new int[input.length / 4]; in byteToIntArray()
52 byteToIntArray(output, input, endianness); in byteToIntArray()
[all …]
/packages/apps/Camera2/src/com/android/camera/ui/motion/
DUnitBezier.java77 float input = target; in solve() local
81 float value = fn.value(input) - target; in solve()
83 return input; in solve()
85 float derivative = fn.derivative(input); in solve()
89 input = input - value / derivative; in solve()
95 input = target; in solve()
97 if (input < min) { in solve()
100 if (input > max) { in solve()
105 float value = fn.value(input); in solve()
107 return input; in solve()
[all …]
/packages/apps/Dialer/java/com/android/dialer/dialpadview/
DSpecialCharSequenceMgr.java108 public static boolean handleChars(Context context, String input, EditText textField) { in handleChars() argument
110 String dialString = PhoneNumberUtils.stripSeparators(input); in handleChars()
120 if (MotorolaUtils.handleSpecialCharSequence(context, input)) { in handleChars()
149 static boolean handleSecretCode(Context context, String input) { in handleSecretCode() argument
151 if (TranssionUtils.isTranssionSecretCode(input)) { in handleSecretCode()
152 TranssionUtils.handleTranssionSecretCode(context, input); in handleSecretCode()
157 if (input.length() > 8 && input.startsWith("*#*#") && input.endsWith("#*#*")) { in handleSecretCode()
158 String secretCode = input.substring(4, input.length() - 4); in handleSecretCode()
172 static boolean handleAdnEntry(Context context, String input, EditText textField) { in handleAdnEntry() argument
191 int len = input.length(); in handleAdnEntry()
[all …]
/packages/apps/Contacts/src/com/android/contacts/util/
DMoreMath.java27 public static int clamp(int input, int lowerBound, int upperBound) { in clamp() argument
28 if (input < lowerBound) return lowerBound; in clamp()
29 if (input > upperBound) return upperBound; in clamp()
30 return input; in clamp()
37 public static float clamp(float input, float lowerBound, float upperBound) { in clamp() argument
38 if (input < lowerBound) return lowerBound; in clamp()
39 if (input > upperBound) return upperBound; in clamp()
40 return input; in clamp()
47 public static double clamp(double input, double lowerBound, double upperBound) { in clamp() argument
48 if (input < lowerBound) return lowerBound; in clamp()
[all …]
/packages/apps/TV/src/com/android/tv/ui/
DSelectInputView.java251 for (TvInputInfo input : mTvInputManagerHelper.getTvInputInfos(false, false)) { in buildInputListAndNotify()
252 if (input.isPassthroughInput()) { in buildInputListAndNotify()
253 if (!input.isHidden(getContext())) { in buildInputListAndNotify()
254 mInputList.add(input); in buildInputListAndNotify()
255 inputMap.put(input.getId(), input); in buildInputListAndNotify() local
259 mInputList.add(input); in buildInputListAndNotify()
263 for (TvInputInfo input : inputMap.values()) { in buildInputListAndNotify()
264 if (input.getParentId() != null && !input.isConnectedToHdmiSwitch()) { in buildInputListAndNotify()
265 mInputList.remove(inputMap.get(input.getParentId())); in buildInputListAndNotify()
272 for (TvInputInfo input : mInputList) { in buildInputListAndNotify()
[all …]
/packages/apps/TV/src/com/android/tv/util/
DSetupUtils.java161 for (TvInputInfo input : tvInputManagerHelper.getTvInputInfos(true, true)) { in markNewChannelsBrowsable()
162 String inputId = input.getId(); in markNewChannelsBrowsable()
221 for (TvInputInfo input : inputManager.getTvInputInfos(true, true)) { in hasNewInput()
222 if (isNewInput(input.getId())) { in hasNewInput()
239 for (TvInputInfo input : inputManager.getTvInputInfos(true, true)) { in markAllInputsRecognized()
240 mRecognizedInputs.add(input.getId()); in markAllInputsRecognized()
250 for (TvInputInfo input : inputManager.getTvInputInfos(true, true)) { in hasUnrecognizedInput()
251 if (!isRecognizedInput(input.getId())) { in hasUnrecognizedInput()
267 for (String input : in grantEpgPermissionToSetUpPackages()
269 if (!TextUtils.isEmpty(input)) { in grantEpgPermissionToSetUpPackages()
[all …]
DTvInputManagerHelper.java392 TvInputInfo input = getTvInputInfo(pair.getKey()); in getTvInputInfos() local
393 if (input == null || isInputBlocked(input)) { in getTvInputInfos()
396 if (tunerOnly && input.getType() != TvInputInfo.TYPE_TUNER) { in getTvInputInfos()
399 list.add(input); in getTvInputInfos()
544 for (TvInputInfoCompat input : mInputMap.values()) { in getTunerTvInputSize()
545 if (input.getType() == TvInputInfo.TYPE_TUNER) { in getTunerTvInputSize()
594 private int getInputSortKey(TvInputInfo input) { in getInputSortKey() argument
595 return input.getServiceInfo().metaData.getInt(META_LABEL_SORT_KEY, Integer.MAX_VALUE); in getInputSortKey()
598 private boolean isInputPhysicalTuner(TvInputInfo input) { in isInputPhysicalTuner() argument
599 String packageName = input.getServiceInfo().packageName; in isInputPhysicalTuner()
[all …]
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
DBinaryDictOffdeviceUtils.java109 InputStream input = new BufferedInputStream(new FileInputStream(src)); in getStream() local
113 input = Compress.getUncompressedStream(input); in getStream()
116 input = Crypt.getDecryptedStream(input); in getStream()
120 return input; in getStream()
126 public T process(@Nonnull final InputStream input) in process() argument
132 public File process(@Nonnull final InputStream input) throws IOException, in process() argument
137 copy(input, output); in process()
154 public DictionaryHeader process(final InputStream input) throws IOException, in process() argument
158 if (tmpBuffer.length != input.read(tmpBuffer)) { in process()
187 readStreamExhaustively(input, headerBuffer); in process()
[all …]
/packages/apps/Dialer/java/com/android/dialer/common/concurrent/
DDefaultDialerExecutorFactory.java180 public void executeSerial(@Nullable InputT input) { in executeSerial() argument
181 dialerUiTaskFragment.executeSerial(input); in executeSerial()
185 public void executeSerialWithWait(@Nullable InputT input, long waitMillis) { in executeSerialWithWait() argument
186 dialerUiTaskFragment.executeSerialWithWait(input, waitMillis); in executeSerialWithWait()
190 public void executeParallel(@Nullable InputT input) { in executeParallel() argument
191 dialerUiTaskFragment.executeParallel(input); in executeParallel()
196 @NonNull ExecutorService executorService, @Nullable InputT input) { in executeOnCustomExecutorService() argument
197 dialerUiTaskFragment.executeOnCustomExecutor(Assert.isNotNull(executorService), input); in executeOnCustomExecutorService() local
226 public void executeSerial(@Nullable InputT input) { in executeSerial() argument
227 serialExecutorService.execute(() -> run(input)); in executeSerial()
[all …]
DDialerUiTaskFragment.java121 void executeSerial(InputT input) { in executeSerial() argument
122 serialExecutor.execute(() -> runTask(input)); in executeSerial()
125 void executeSerialWithWait(InputT input, long waitMillis) { in executeSerialWithWait() argument
131 serialExecutor.schedule(() -> runTask(input), waitMillis, TimeUnit.MILLISECONDS); in executeSerialWithWait()
134 void executeParallel(InputT input) { in executeParallel() argument
135 parallelExecutor.execute(() -> runTask(input)); in executeParallel()
138 void executeOnCustomExecutor(ExecutorService executor, InputT input) { in executeOnCustomExecutor() argument
139 executor.execute(() -> runTask(input)); in executeOnCustomExecutor()
143 private void runTask(@Nullable InputT input) { in runTask() argument
145 OutputT output = worker.doInBackground(input); in runTask()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/message/simaka/attributes/
DAtIdReqTest.java59 ByteBuffer input = ByteBuffer.wrap(AT_PERMANENT_ID_REQ); in testDecodeAtPermanentIdReq() local
60 EapSimAkaAttribute result = mAttributeFactory.getAttribute(input); in testDecodeAtPermanentIdReq()
62 assertFalse(input.hasRemaining()); in testDecodeAtPermanentIdReq()
71 ByteBuffer input = ByteBuffer.wrap(PERMANENT_ID_INVALID_LENGTH); in testDecodeAtPermanentIdReqInvalidLength() local
73 mAttributeFactory.getAttribute(input); in testDecodeAtPermanentIdReqInvalidLength()
90 ByteBuffer input = ByteBuffer.wrap(AT_ANY_ID_REQ); in testDecodeAtAnyIdReq() local
91 EapSimAkaAttribute result = mAttributeFactory.getAttribute(input); in testDecodeAtAnyIdReq()
93 assertFalse(input.hasRemaining()); in testDecodeAtAnyIdReq()
102 ByteBuffer input = ByteBuffer.wrap(ANY_ID_INVALID_LENGTH); in testDecodeAtAnyIdReqInvalidLength() local
104 mAttributeFactory.getAttribute(input); in testDecodeAtAnyIdReqInvalidLength()
[all …]
DAtCounterTest.java56 ByteBuffer input = ByteBuffer.wrap(AT_COUNTER); in testDecodeAtCounter() local
57 EapSimAkaAttribute result = mAttributeFactory.getAttribute(input); in testDecodeAtCounter()
59 assertFalse(input.hasRemaining()); in testDecodeAtCounter()
69 ByteBuffer input = ByteBuffer.wrap(AT_COUNTER_INVALID_LENGTH); in testDecodeAtCounterInvalidLength() local
71 mAttributeFactory.getAttribute(input); in testDecodeAtCounterInvalidLength()
95 ByteBuffer input = ByteBuffer.wrap(AT_COUNTER_TOO_SMALL); in testDecodeAtCounterTooSmall() local
96 EapSimAkaAttribute result = mAttributeFactory.getAttribute(input); in testDecodeAtCounterTooSmall()
98 assertFalse(input.hasRemaining()); in testDecodeAtCounterTooSmall()
107 ByteBuffer input = ByteBuffer.wrap(AT_COUNTER_TOO_SMALL_INVALID_LENGTH); in testDecodeAtCounterTooSmallInvalidLength() local
109 mAttributeFactory.getAttribute(input); in testDecodeAtCounterTooSmallInvalidLength()
DAtResTest.java52 ByteBuffer input = ByteBuffer.wrap(AT_RES); in testDecode() local
53 EapSimAkaAttribute result = mEapAkaAttributeFactory.getAttribute(input); in testDecode()
55 assertFalse(input.hasRemaining()); in testDecode()
64 ByteBuffer input = ByteBuffer.wrap(AT_RES_INVALID_RES_LENGTH); in testDecodeInvalidResLength() local
66 mEapAkaAttributeFactory.getAttribute(input); in testDecodeInvalidResLength()
74 ByteBuffer input = ByteBuffer.wrap(AT_RES_SHORT_RES); in testDecodeShortResLength() local
76 mEapAkaAttributeFactory.getAttribute(input); in testDecodeShortResLength()
84 ByteBuffer input = ByteBuffer.wrap(AT_RES_LONG_RES); in testDecodeLongResLength() local
86 mEapAkaAttributeFactory.getAttribute(input); in testDecodeLongResLength()
/packages/apps/Dialer/java/com/android/dialer/oem/
DMotorolaHiddenMenuKeySequence.java53 static boolean handleCharSequence(Context context, String input) { in handleCharSequence() argument
57 return handleKeySequence(context, input) || handleKeyPattern(context, input); in handleCharSequence()
123 private static boolean handleKeyPattern(Context context, String input) { in handleKeyPattern() argument
126 int len = input.length(); in handleKeyPattern()
134 if (Pattern.matches(instance.hiddenKeyPatterns.get(i), input)) { in handleKeyPattern()
135 return sendIntent(context, input, instance.hiddenKeyPatternIntents.get(i)); in handleKeyPattern()
141 private static boolean handleKeySequence(Context context, String input) { in handleKeySequence() argument
144 int len = input.length(); in handleKeySequence()
152 if (instance.hiddenKeySequences.get(i).equals(input)) { in handleKeySequence()
153 return sendIntent(context, input, instance.hiddenKeySequenceIntents.get(i)); in handleKeySequence()
[all …]
DTranssionUtils.java47 public static boolean isTranssionSecretCode(String input) { in isTranssionSecretCode() argument
49 && TRANSSION_SECRET_CODES.contains(input); in isTranssionSecretCode()
61 public static void handleTranssionSecretCode(Context context, String input) { in handleTranssionSecretCode() argument
62 Assert.checkState(isTranssionSecretCode(input)); in handleTranssionSecretCode()
64 TelephonyManagerCompat.handleSecretCode(context, getDigitsFromSecretCode(input)); in handleTranssionSecretCode()
67 private static String getDigitsFromSecretCode(String input) { in getDigitsFromSecretCode() argument
69 Assert.checkArgument(input.length() > 3 && input.startsWith("*#") && input.endsWith("#")); in getDigitsFromSecretCode()
71 return input.substring(2, input.length() - 1); in getDigitsFromSecretCode()
/packages/services/Telephony/testapps/TelephonyManagerTestApp/src/com/android/phone/testapps/telephonymanagertestapp/
DParameterParser.java61 Object executeParser(Class type, String input) { in executeParser() argument
62 if ("null".equals(input)) return null; in executeParser()
63 return mParsers.getOrDefault(type, s -> null).apply(input); in executeParser()
66 private static PhoneNumberRange parsePhoneNumberRange(String input) { in parsePhoneNumberRange() argument
67 String[] parts = input.split(" "); in parsePhoneNumberRange()
74 private Executor parseExecutor(String input) { in parseExecutor() argument
78 private Consumer parseConsumer(String input) { in parseConsumer() argument
87 private RadioAccessSpecifier parseRadioAccessSpecifier(String input) { in parseRadioAccessSpecifier() argument
88 String[] parts = input.split("/"); in parseRadioAccessSpecifier()
105 private List parseList(String input) { in parseList() argument
[all …]
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DMetadataEntryParserTest.java121 String input = "{\"unique_contact_id\": {\n" + in testErrorForMissingContactId() local
127 MetadataEntryParser.parseDataToMetaDataEntry(input); in testErrorForMissingContactId()
134 String input = "{\"unique_contact_id\": {\n" + in testErrorForNullContactId() local
141 MetadataEntryParser.parseDataToMetaDataEntry(input); in testErrorForNullContactId()
148 String input = "{\"unique_contact_id\": {\n" + in testErrorForNullAccountType() local
155 MetadataEntryParser.parseDataToMetaDataEntry(input); in testErrorForNullAccountType()
162 String input = "{\"unique_contact_id\": {\n" + in testErrorForNullAccountName() local
169 MetadataEntryParser.parseDataToMetaDataEntry(input); in testErrorForNullAccountName()
176 String input = "{\"unique_contact_id\": {\n" + in testErrorForNullFieldDataId() local
191 MetadataEntryParser.parseDataToMetaDataEntry(input); in testErrorForNullFieldDataId()
[all …]
DBaseVoicemailProviderTest.java142 private static void recursiveDeleteAll(File input) {
143 if (input.isDirectory()) {
144 for (File file : input.listFiles()) {
148 assertTrue("error deleting " + input.getAbsolutePath(), input.delete());
151 private List<File> findAllFiles(File input) {
152 if (input == null) {
155 if (!input.isDirectory()) {
156 return Collections.singletonList(input);
159 for (File file : input.listFiles()) {
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/indexing/
DIndexData.java112 public static String normalizeKeywords(String input) { in normalizeKeywords() argument
113 return (input != null) ? input.replaceAll(LIST_DELIMITERS, SPACE) : EMPTY; in normalizeKeywords()
119 public static String normalizeHyphen(String input) { in normalizeHyphen() argument
120 return (input != null) ? input.replaceAll(NON_BREAKING_HYPHEN, HYPHEN) : EMPTY; in normalizeHyphen()
126 public static String normalizeString(String input) { in normalizeString() argument
127 final String normalizedHypen = normalizeHyphen(input); in normalizeString()
128 final String nohyphen = (input != null) ? normalizedHypen.replaceAll(HYPHEN, EMPTY) : EMPTY; in normalizeString()
134 public static String normalizeJapaneseString(String input) { in normalizeJapaneseString() argument
135 final String nohyphen = (input != null) ? input.replaceAll(HYPHEN, EMPTY) : EMPTY; in normalizeJapaneseString()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkePayloadFactory.java138 int payloadType, boolean isResp, ByteBuffer input) throws IkeProtocolException { in getIkePayload() argument
139 int nextPayloadType = (int) input.get(); in getIkePayload()
141 boolean isCritical = isCriticalPayload(input.get()); in getIkePayload()
143 int payloadLength = Short.toUnsignedInt(input.getShort()); in getIkePayload()
149 if (bodyLength > input.remaining()) { in getIkePayload()
155 input.get(payloadBody); in getIkePayload()
183 ByteBuffer input = in getIkeSkPayload() local
189 int nextPayloadType = (int) input.get(); in getIkeSkPayload()
191 boolean isCritical = isCriticalPayload(input.get()); in getIkeSkPayload()
193 int payloadLength = Short.toUnsignedInt(input.getShort()); in getIkeSkPayload()
/packages/apps/Dialer/java/com/android/dialer/simulator/impl/
DSimulatorUtils.java149 public Void doInBackground(PopulateDatabaseWorkerInput input) { in doInBackground() argument
150 VoicemailPopulator.populateVoicemail(input.context, input.fastMode); in doInBackground()
158 public Void doInBackground(PopulateDatabaseWorkerInput input) { in doInBackground() argument
159 ContactsPopulator.populateContacts(input.context, input.fastMode); in doInBackground()
160 CallLogPopulator.populateCallLog(input.context, false, input.fastMode); in doInBackground()
161 VoicemailPopulator.populateVoicemail(input.context, input.fastMode); in doInBackground()
/packages/apps/Contacts/src/com/android/contacts/model/
DAccountTypeManager.java88 public boolean apply(@Nullable AccountInfo input) { in apply() argument
89 return input != null; in apply()
94 public boolean apply(@Nullable AccountInfo input) { in apply() argument
95 return input != null && input.getType().areContactsWritable(); in apply()
100 public boolean apply(@Nullable AccountInfo input) { in apply() argument
101 return input != null && input.getType().isGroupMembershipEditable(); in apply()
223 public boolean apply(@Nullable AccountInfo input) { in getWritableGoogleAccounts()
224 return input.getType().areContactsWritable() && in getWritableGoogleAccounts()
225 GoogleAccountType.ACCOUNT_TYPE.equals(input.getType().accountType); in getWritableGoogleAccounts()
547 public List<AccountInfo> apply(@Nullable List<List<AccountWithDataSet>> input) {
[all …]
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/activecall/
DInCallViewModel.java136 input -> input.isEmpty() ? null : input.get(0)); in InCallViewModel()
138 input -> input != null ? new CallDetailLiveData(input) : null); in InCallViewModel()
140 input -> input != null ? new CallStateLiveData(input) : null); in InCallViewModel()
154 input -> input != null ? new CallDetailLiveData(input) : null); in InCallViewModel()

1234567891011