/packages/modules/ExtServices/tests/src/android/ext/services/storage/ |
D | CacheQuotaServiceImplTest.java | 85 List<CacheQuotaHint> output = getService().onComputeCacheQuotaHints(requests); in testOneApp() local 87 assertThat(output).hasSize(1); in testOneApp() 88 assertThat(output.get(0).getQuota()).isEqualTo(1500L); in testOneApp() 97 List<CacheQuotaHint> output = getService().onComputeCacheQuotaHints(requests); in testTwoAppsOneVolume() local 100 assertThat(output).hasSize(2); in testTwoAppsOneVolume() 101 assertThat(output.get(0).getQuota()).isEqualTo(883); in testTwoAppsOneVolume() 102 assertThat(output.get(1).getQuota()).isEqualTo(1500 - 883); in testTwoAppsOneVolume() 111 List<CacheQuotaHint> output = getService().onComputeCacheQuotaHints(requests); in testTwoAppsTwoVolumes() local 113 assertThat(output).hasSize(2); in testTwoAppsTwoVolumes() 114 assertThat(output.get(0).getQuota()).isEqualTo(1500); in testTwoAppsTwoVolumes() [all …]
|
/packages/modules/DnsResolver/ |
D | DnsQueryLogTest.cpp | 80 std::string output = captureDumpOutput(queryLog); in TEST_F() local 81 verifyDumpOutput(output, {30, 31, 32, 33}); in TEST_F() 105 std::string output = captureDumpOutput(queryLog); in TEST_F() local 106 verifyDumpOutput(output, std::vector(size, 30)); in TEST_F() 120 std::string output = captureDumpOutput(queryLog); in TEST_F() local 121 verifyDumpOutput(output, {}); in TEST_F() 138 std::string output = captureDumpOutput(queryLog); in TEST_F() local 139 verifyDumpOutput(output, expectedNetIds); in TEST_F() 148 std::string output = captureDumpOutput(queryLog); in TEST_F() local 149 verifyDumpOutput(output, {30}); in TEST_F() [all …]
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/jpegstream/ |
D | StreamUtils.java | 31 public static boolean byteToIntArray(int[] output, byte[] input, ByteOrder endianness) { in byteToIntArray() argument 33 if (output.length * 4 < length) { in byteToIntArray() 37 for (int i = 0, j = 0; i < output.length; i++, j += 4) { in byteToIntArray() 38 output[i] = ((input[j] & 0xFF) << 24) | ((input[j + 1] & 0xFF) << 16) in byteToIntArray() 42 for (int i = 0, j = 0; i < output.length; i++, j += 4) { in byteToIntArray() 43 output[i] = ((input[j + 3] & 0xFF) << 24) | ((input[j + 2] & 0xFF) << 16) in byteToIntArray() 51 int[] output = new int[input.length / 4]; in byteToIntArray() local 52 byteToIntArray(output, input, endianness); in byteToIntArray() 53 return output; in byteToIntArray()
|
/packages/apps/Dialer/java/com/android/dialer/common/concurrent/ |
D | DialerFutures.java | 55 AggregateFuture<T> output = new AnyOfFuture<>(futures); in firstMatchingImpl() local 56 final AtomicReference<AggregateFuture<T>> ref = Atomics.newReference(output); in firstMatchingImpl() 57 final AtomicInteger pending = new AtomicInteger(output.futures.size()); in firstMatchingImpl() 58 for (final ListenableFuture<? extends T> future : output.futures) { in firstMatchingImpl() 65 AggregateFuture<T> output = ref.get(); in firstMatchingImpl() 66 if (output != null) { in firstMatchingImpl() 72 output.setException(e); in firstMatchingImpl() 78 output.set(defaultValue); in firstMatchingImpl() 83 output.set(value); in firstMatchingImpl() 90 return output; in firstMatchingImpl()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/expected/ |
D | ExpectedKey.java | 65 static ExpectedKey newInstance(final ExpectedKeyVisual visual, final ExpectedKeyOutput output, in newInstance() argument 68 return new ExpectedKey(visual, output); in newInstance() 90 return new ExpectedKeyWithMoreKeys(visual, output, moreKeys); in newInstance() 97 visual, output, moreKeysArray, firstAdditionalMoreKeyIndex, in newInstance() 142 protected ExpectedKey(final ExpectedKeyVisual visual, final ExpectedKeyOutput output) { in ExpectedKey() argument 144 mOutput = output; in ExpectedKey() 217 ExpectedAdditionalMoreKey(final ExpectedKeyVisual visual, final ExpectedKeyOutput output) { in ExpectedAdditionalMoreKey() argument 218 super(visual, output); in ExpectedAdditionalMoreKey() 235 ExpectedKeyWithMoreKeys(final ExpectedKeyVisual visual, final ExpectedKeyOutput output, in ExpectedKeyWithMoreKeys() argument 237 super(visual, output); in ExpectedKeyWithMoreKeys() [all …]
|
D | ExpectedKeyOutput.java | 49 abstract boolean hasSameKeyOutput(final ExpectedKeyOutput output); in hasSameKeyOutput() argument 93 boolean hasSameKeyOutput(final ExpectedKeyOutput output) { in hasSameKeyOutput() argument 94 return (output instanceof Code) && mCode == ((Code)output).mCode; in hasSameKeyOutput() 150 boolean hasSameKeyOutput(final ExpectedKeyOutput output) { in hasSameKeyOutput() argument 151 return (output instanceof Text) && mText == ((Text)output).mText; in hasSameKeyOutput()
|
D | ActualKeyboardBuilder.java | 115 final String output; in toString() local 117 output = outputText; in toString() 119 output = Constants.printableCode(code); in toString() 121 output = StringUtils.newSingleCodePointString(code); in toString() 123 if (visual.equals(output)) { in toString() 126 return visual + "|" + output; in toString()
|
/packages/services/Car/service/src/com/android/car/ |
D | CarBugreportManagerService.java | 113 public void requestBugreport(ParcelFileDescriptor output, ParcelFileDescriptor extraOutput, in requestBugreport() argument 144 requestBugReportLocked(output, extraOutput, callback); in requestBugreport() 149 private void requestBugReportLocked(ParcelFileDescriptor output, in requestBugReportLocked() argument 157 mHandler.post(() -> startBugreportd(output, extraOutput, callback)); in requestBugReportLocked() 160 private void startBugreportd(ParcelFileDescriptor output, ParcelFileDescriptor extraOutput, in startBugreportd() argument 170 processBugreportSockets(output, extraOutput, callback); in startBugreportd() 203 private void handleFinished(ParcelFileDescriptor output, ParcelFileDescriptor extraOutput, in handleFinished() argument 207 if (!copySocketToPfd(output, BUGREPORT_OUTPUT_SOCKET, callback)) { in handleFinished() 228 ParcelFileDescriptor output, ParcelFileDescriptor extraOutput, in processBugreportSockets() argument 248 handleFinished(output, extraOutput, callback); in processBugreportSockets()
|
/packages/apps/Calendar/tests/src/com/android/calendar/ |
D | FormatDateRangeTest.java | 40 int flags, String output) { in DateTest() argument 62 expectedOutput = output; in DateTest() 67 int flags, String output) { in DateTest() argument 70 flags, output); in DateTest() 188 String output = DateUtils.formatDateRange(mContext, startMillis, endMillis, flags); in testAll() local 189 if (!dateTest.expectedOutput.equals(output)) { in testAll() 192 + " actual: " + output); in testAll() 194 assertEquals(dateTest.expectedOutput, output); in testAll()
|
/packages/apps/Nfc/src/com/android/nfc/snep/ |
D | SnepMessage.java | 202 DataOutputStream output = new DataOutputStream(buffer); in toByteArray() local 203 output.writeByte(mVersion); in toByteArray() 204 output.writeByte(mField); in toByteArray() 206 output.writeInt(bytes.length + 4); in toByteArray() 207 output.writeInt(mAcceptableLength); in toByteArray() 209 output.writeInt(bytes.length); in toByteArray() 211 output.write(bytes); in toByteArray()
|
/packages/apps/Camera2/tests/src/com/android/camera/stress/ |
D | ShotToShotLatency.java | 124 BufferedWriter output = null; in testShotToShotLatency() local 126 output = new BufferedWriter(new FileWriter(outFile, true)); in testShotToShotLatency() 127 output.write("Shot to shot latency - mean: " + mean + "\n"); in testShotToShotLatency() 128 output.write("Shot to shot latency - standard deviation: " + standardDeviation + "\n"); in testShotToShotLatency() 134 if (output != null) { in testShotToShotLatency() 135 output.close(); in testShotToShotLatency()
|
/packages/apps/Nfc/src/com/android/nfc/ndefpush/ |
D | NdefPushProtocol.java | 150 DataOutputStream output = new DataOutputStream(buffer); in toByteArray() local 153 output.writeByte(VERSION); in toByteArray() 154 output.writeInt(mNumMessages); in toByteArray() 156 output.writeByte(mActions[i]); in toByteArray() 158 output.writeInt(bytes.length); in toByteArray() 159 output.write(bytes); in toByteArray()
|
/packages/apps/Car/Settings/src/com/android/car/settings/security/ |
D | PasswordHelper.java | 115 int output = 0; in translateSettingsToSuwError() local 118 output |= ValidateLockFlags.INVALID_BAD_SYMBOLS; in translateSettingsToSuwError() 122 output |= ValidateLockFlags.INVALID_BAD_SYMBOLS; in translateSettingsToSuwError() 126 output |= ValidateLockFlags.INVALID_LENGTH; in translateSettingsToSuwError() 130 output |= ValidateLockFlags.INVALID_LACKS_COMPLEXITY; in translateSettingsToSuwError() 132 return output; in translateSettingsToSuwError()
|
/packages/modules/IPsec/src/java/com/android/internal/net/utils/ |
D | BigIntegerUtils.java | 54 byte[] output = new byte[size]; in bigIntegerToUnsignedByteArray() 63 System.arraycopy(byteArrayWithSignBit, 1, output, size - len, len); in bigIntegerToUnsignedByteArray() 65 System.arraycopy(byteArrayWithSignBit, 0, output, size - len, len); in bigIntegerToUnsignedByteArray() 68 return output; in bigIntegerToUnsignedByteArray()
|
/packages/modules/IPsec/src/java/com/android/internal/net/eap/crypto/ |
D | ParityBitUtil.java | 47 byte[] output = new byte[OUTPUT_LENGTH]; in addParityBits() 53 for (int i = output.length - 1; i >= 0; i--) { in addParityBits() 54 output[i] = getByteWithParityBit((byte) allBits); in addParityBits() 58 return output; in addParityBits()
|
/packages/apps/LegacyCamera/jni/feature_mos/doc/ |
D | feature_mos_API_doxyfile | 44 # 4096 sub-directories (in 2 levels) under the output directory of each output 54 # information to generate all constant output in the proper language. 195 # sources only. Doxygen will then generate output that is more tailored for C. 202 # sources only. Doxygen will then generate output that is more tailored for 209 # sources only. Doxygen will then generate output that is more tailored for 215 # sources. Doxygen will then generate output that is tailored for 513 # provided by doxygen. Whatever the program writes to standard output 519 # doxygen. The layout file controls the global structure of the generated output files 520 # in an output format independent way. The create the layout file that represents 573 # and error messages should be written. If left blank the output is written [all …]
|
/packages/apps/LegacyCamera/jni/feature_stab/doc/ |
D | dbreg_API_doxyfile | 44 # 4096 sub-directories (in 2 levels) under the output directory of each output 54 # information to generate all constant output in the proper language. 195 # sources only. Doxygen will then generate output that is more tailored for C. 202 # sources only. Doxygen will then generate output that is more tailored for 209 # sources only. Doxygen will then generate output that is more tailored for 215 # sources. Doxygen will then generate output that is tailored for 513 # provided by doxygen. Whatever the program writes to standard output 519 # doxygen. The layout file controls the global structure of the generated output files 520 # in an output format independent way. The create the layout file that represents 573 # and error messages should be written. If left blank the output is written [all …]
|
/packages/apps/TimeZoneData/testing/xts/src/com/android/timezone/xts/ |
D | TimeZoneUpdateHostTest.java | 399 String output = getDevice().executeShellCommand( in getDeviceTimeZoneState() local 401 assertNotNull(output); in getDeviceTimeZoneState() 403 String value = output.split(":")[1]; in getDeviceTimeZoneState() 408 String output = getDevice().executeShellCommand("dumpsys timezone"); in dumpEntireTimeZoneStatusToString() local 409 assertNotNull(output); in dumpEntireTimeZoneStatusToString() 410 return output; in dumpEntireTimeZoneStatusToString()
|
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/ |
D | BinaryDictOffdeviceUtils.java | 136 try (final OutputStream output = new BufferedOutputStream(new FileOutputStream(dst))) { in process() argument 137 copy(input, output); in process() 138 output.flush(); in process() 139 output.close(); in process() 209 public static void copy(final InputStream input, final OutputStream output) throws IOException { in copy() argument 212 output.write(buffer, 0, readBytes); in copy()
|
/packages/apps/Settings/src/com/android/settings/core/instrumentation/ |
D | SettingsIntelligenceLogWriter.java | 138 final DataOutputStream output = new DataOutputStream(bout); in serialize() local 141 output.writeInt(size); in serialize() 144 output.writeInt(data.length); in serialize() 145 output.write(data); in serialize() 153 output.close(); in serialize()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/core/instrumentation/ |
D | SettingsIntelligenceLogWriter.java | 138 final DataOutputStream output = new DataOutputStream(bout); in serialize() local 141 output.writeInt(size); in serialize() 144 output.writeInt(data.length); in serialize() 145 output.write(data); in serialize() 153 output.close(); in serialize()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
D | BluetoothMapUtils.java | 510 byte[] output = new byte[text.length()]; // We allocate for the worst case memory need in quotedPrintableToUtf8() 562 output[out++] = (byte) (b1 << 4 | b2); // valid hex char, append in quotedPrintableToUtf8() 564 Log.v(TAG, "Resulting value: " + String.format("0x%2x", output[out - 1])); in quotedPrintableToUtf8() 572 output[out++] = b0; in quotedPrintableToUtf8() 576 output[out++] = b0; in quotedPrintableToUtf8() 584 output[out++] = input[in++]; in quotedPrintableToUtf8() 604 result = new String(output, 0, out, charset); in quotedPrintableToUtf8() 608 result = new String(output, 0, out, "UTF-8"); in quotedPrintableToUtf8()
|
/packages/apps/Camera2/src/com/android/camera/async/ |
D | ObservableCombiner.java | 46 Supplier<T> output) { in ObservableCombiner() argument 48 mOutput = output; in ObservableCombiner() 77 final Supplier<O> output) { 78 return new ObservableCombiner<>(inputs, output);
|
/packages/modules/IPsec/src/java/com/android/internal/net/eap/message/simaka/ |
D | EapSimAkaTypeData.java | 68 ByteBuffer output = ByteBuffer.allocate(lengthInBytes); in encode() local 69 output.put((byte) eapSubtype); in encode() 72 output.put(new byte[RESERVED_BYTES]); in encode() 75 attribute.encode(output); in encode() 78 return output.array(); in encode()
|
/packages/apps/Car/tests/TestMediaApp/src/com/android/car/media/testmediaapp/loader/ |
D | TmaLoaderUtils.java | 141 private static void copy(InputStream input, OutputStream output) throws IOException { in copy() argument 145 output.write(buffer, 0, n); in copy() 150 ByteArrayOutputStream output = new ByteArrayOutputStream(); in toByteArray() local 151 copy(input, output); in toByteArray() 152 return output.toByteArray(); in toByteArray()
|