/frameworks/base/services/net/java/android/net/dhcp/ |
DhcpOfferPacket.java | 59 ByteBuffer result = ByteBuffer.allocate(MAX_LENGTH); local 63 fillInPacket(encap, destIp, srcIp, destUdp, srcUdp, result, 65 result.flip(); 66 return result;
|
/libcore/benchmarks/src/benchmarks/regression/ |
StringBenchmark.java | 33 StringBuilder result = new StringBuilder(length); local 35 result.append((char) i); 37 return result.toString();
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
FilterOpTest.java | 68 Collection<Integer> result = exerciseOps(data, s -> s.filter(pTrue)); local 69 assertEquals(result.size(), data.size()); 71 result = exerciseOps(data, s -> s.filter(pFalse)); 72 assertEquals(result.size(), 0); 77 result = exerciseOps(data, s -> s.filter(pOdd.and(pEven))); 78 assertEquals(result.size(), 0); 80 result = exerciseOps(data, s -> s.filter(pOdd.or(pEven))); 81 assertEquals(result.size(), data.size()); 86 Collection<Integer> result = exerciseOps(data, s -> s.filter(i -> true)); local 87 assertEquals(result.size(), data.size()) 98 Collection<Long> result = exerciseOps(data, s -> s.filter(i -> true)); local 110 Collection<Double> result = exerciseOps(data, s -> s.filter(i -> true)); local [all...] |
/libcore/support/src/test/java/libcore/tlswire/handshake/ |
HelloExtension.java | 73 HelloExtension result; local 76 result = new ServerNameHelloExtension(); 79 result = new HelloExtension(); 82 result.type = type; 83 result.name = TYPE_TO_NAME.get(result.type); 84 if (result.name == null) { 85 result.name = String.valueOf(result.type); 87 result.data = IoUtils.readTlsVariableLengthByteVector(in, 0xffff) [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/ |
Authenticator.java | 87 final Bundle result = new Bundle(); local 88 result.putBoolean(AccountManager.KEY_BOOLEAN_RESULT, false); 89 return result;
|
/frameworks/base/core/java/android/accounts/ |
AbstractAccountAuthenticator.java | 36 * abstract methods and write a service that returns the result of {@link #getIBinder()} 91 * The activity needs to return the final result when it is complete so the Intent should contain 95 * <li> If the authenticator cannot synchronously process the request and return a result then it 96 * may choose to return null and then use the AccountManagerResponse to send the result 102 * parameters and the expected result. 105 * and return the result via that response when the activity finishes (or whenever else the 167 final Bundle result = AbstractAccountAuthenticator.this.addAccount( local 171 if (result != null) { 172 result.keySet(); // force it to be unparcelled 174 Log.v(TAG, "addAccount: result " + AccountManager.sanitizeResult(result)) 192 final Bundle result = AbstractAccountAuthenticator.this.confirmCredentials( local 218 Bundle result = new Bundle(); local 244 final Bundle result = AbstractAccountAuthenticator.this.getAuthToken( local 271 final Bundle result = AbstractAccountAuthenticator.this.updateCredentials( local 296 final Bundle result = AbstractAccountAuthenticator.this.editProperties( local 311 final Bundle result = AbstractAccountAuthenticator.this.hasFeatures( local 326 final Bundle result = AbstractAccountAuthenticator.this.getAccountRemovalAllowed( local 341 final Bundle result = local 358 final Bundle result = local 382 final Bundle result = AbstractAccountAuthenticator.this.startAddAccountSession( local 414 final Bundle result = AbstractAccountAuthenticator.this local 449 final Bundle result = AbstractAccountAuthenticator.this.finishSession( local 473 final Bundle result = AbstractAccountAuthenticator.this local 696 final Bundle result = new Bundle(); local 907 Bundle result = new Bundle(); local 916 Bundle result = new Bundle(); local 926 Bundle result = new Bundle(); local 991 Bundle result = new Bundle(); local [all...] |
/cts/tests/tests/security/src/android/security/cts/ |
HwRngTest.java | 131 ByteArrayOutputStream result = new ByteArrayOutputStream(); local 135 result.write(buffer, 0, chunkSize); 137 return result.toByteArray(); 145 Map<String, String> result = new HashMap<String, String>(); local 167 if (result.containsKey(key)) { 170 result.put(key, value); 172 return result;
|
/cts/tools/tradefed-host/src/com/android/cts/tradefed/result/ |
TestResultRepo.java | 16 package com.android.cts.tradefed.result; 37 * ordered list of result directories. the index of each file is its session id. 69 TestSummaryXml result = new TestSummaryXml(id, resultDir.getName()); local 71 result.parse(new BufferedReader(new FileReader(new File(resultDir, 73 return result; 80 return result; 114 CLog.e("Could not find result file for session %d", sessionId); 116 CLog.e("Failed to parse result file for session %d", sessionId);
|
/dalvik/dexgen/src/com/android/dexgen/dex/code/ |
PositionList.java | 105 PositionList result = new PositionList(at); local 107 result.set(i, arr[i]); 110 result.setImmutable(); 111 return result;
|
/dalvik/dexgen/src/com/android/dexgen/dex/code/form/ |
Form35c.java | 139 int result = 0; local 143 result += one.getCategory(); 148 * the result. 155 return (result <= MAX_NUM_OPS) ? result : -1; 175 RegisterSpecList result = new RegisterSpecList(wordCount); local 180 result.set(wordAt, one); 182 result.set(wordAt + 1, 190 result.setImmutable(); 191 return result; [all...] |
/dalvik/dexgen/src/com/android/dexgen/rop/ |
ByteCatchList.java | 94 * Gets the list of items active at the given address. The result is 118 ByteCatchList result = new ByteCatchList(resultSz); local 120 result.set(i, resultArr[i]); 123 result.setImmutable(); 124 return result; 152 * Returns a target list corresponding to this instance. The result 155 * result is automatically made immutable. 174 * address; so, the result is just that address. 185 IntList result = new IntList(sz + (hasDefault ? 1 : 0)); local 188 result.add(get(i).getHandlerPc()) 210 StdTypeList result = new StdTypeList(sz); local [all...] |
/dalvik/dexgen/src/com/android/dexgen/rop/code/ |
RegisterSpecList.java | 38 RegisterSpecList result = new RegisterSpecList(1); local 39 result.set(0, spec); 40 return result; 52 RegisterSpecList result = new RegisterSpecList(2); local 53 result.set(0, spec0); 54 result.set(1, spec1); 55 return result; 68 RegisterSpecList result = new RegisterSpecList(3); local 69 result.set(0, spec0); 70 result.set(1, spec1) 87 RegisterSpecList result = new RegisterSpecList(4); local 112 int result = 0; local 200 int result = 0; local 225 RegisterSpecList result = new RegisterSpecList(sz + 1); local 253 RegisterSpecList result = new RegisterSpecList(newSize); local 280 RegisterSpecList result = new RegisterSpecList(newSize); local 309 RegisterSpecList result = new RegisterSpecList(sz); local 343 RegisterSpecList result = new RegisterSpecList(sz); local [all...] |
/dalvik/dx/src/com/android/dx/cf/code/ |
ByteCatchList.java | 94 * Gets the list of items active at the given address. The result is 118 ByteCatchList result = new ByteCatchList(resultSz); local 120 result.set(i, resultArr[i]); 123 result.setImmutable(); 124 return result; 152 * Returns a target list corresponding to this instance. The result 155 * result is automatically made immutable. 174 * address; so, the result is just that address. 185 IntList result = new IntList(sz + (hasDefault ? 1 : 0)); local 188 result.add(get(i).getHandlerPc()) 210 StdTypeList result = new StdTypeList(sz); local [all...] |
/dalvik/dx/src/com/android/dx/dex/code/ |
PositionList.java | 105 PositionList result = new PositionList(at); local 107 result.set(i, arr[i]); 110 result.setImmutable(); 111 return result;
|
/dalvik/dx/src/com/android/dx/dex/code/form/ |
Form35c.java | 110 * the result. 156 int result = 0; local 160 result += one.getCategory(); 165 * the result. 172 return (result <= MAX_NUM_OPS) ? result : -1; 192 RegisterSpecList result = new RegisterSpecList(wordCount); local 197 result.set(wordAt, one); 199 result.set(wordAt + 1, 207 result.setImmutable() [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/ |
ApiDemos.java | 122 Intent result = new Intent(); local 123 result.setClassName(pkg, componentName); 124 return result; 128 Intent result = new Intent(); local 129 result.setClass(this, ApiDemos.class); 130 result.putExtra("com.example.android.apis.Path", path); 131 return result;
|
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/authenticator/ |
Authenticator.java | 95 final Bundle result = new Bundle(); local 96 result.putString(AccountManager.KEY_ERROR_MESSAGE, "invalid authTokenType"); 97 return result; 107 final Bundle result = new Bundle(); local 108 result.putString(AccountManager.KEY_ACCOUNT_NAME, account.name); 109 result.putString(AccountManager.KEY_ACCOUNT_TYPE, Constants.ACCOUNT_TYPE); 110 result.putString(AccountManager.KEY_AUTHTOKEN, authToken); 111 return result; 141 final Bundle result = new Bundle(); local 142 result.putBoolean(AccountManager.KEY_BOOLEAN_RESULT, false) [all...] |
/development/samples/Support13Demos/src/com/example/android/supportv13/ |
Support13Demos.java | 122 Intent result = new Intent(); local 123 result.setClassName(pkg, componentName); 124 return result; 128 Intent result = new Intent(); local 129 result.setClass(this, Support13Demos.class); 130 result.putExtra("com.example.android.apis.Path", path); 131 return result;
|
/development/samples/Support4Demos/src/com/example/android/supportv4/ |
Support4Demos.java | 122 Intent result = new Intent(); local 123 result.setClassName(pkg, componentName); 124 return result; 128 Intent result = new Intent(); local 129 result.setClass(this, Support4Demos.class); 130 result.putExtra("com.example.android.apis.Path", path); 131 return result;
|
/development/samples/Support7Demos/src/com/example/android/supportv7/ |
Support7Demos.java | 124 Intent result = new Intent(); local 125 result.setClassName(pkg, componentName); 126 return result; 130 Intent result = new Intent(); local 131 result.setClass(this, Support7Demos.class); 132 result.putExtra("com.example.android.apis.Path", path); 133 return result;
|
/development/samples/SupportDesignDemos/src/com/example/android/support/design/ |
SupportDesignDemos.java | 124 Intent result = new Intent(); local 125 result.setClassName(pkg, componentName); 126 return result; 130 Intent result = new Intent(); local 131 result.setClass(this, SupportDesignDemos.class); 132 result.putExtra("com.example.android.apis.Path", path); 133 return result;
|
/development/samples/SupportPercentDemos/src/com/example/android/support/percent/ |
SupportPercentDemos.java | 124 Intent result = new Intent(); local 125 result.setClassName(pkg, componentName); 126 return result; 130 Intent result = new Intent(); local 131 result.setClass(this, SupportPercentDemos.class); 132 result.putExtra("com.example.android.apis.Path", path); 133 return result;
|
/external/dexmaker/src/dx/java/com/android/dx/dex/code/ |
PositionList.java | 105 PositionList result = new PositionList(at); local 107 result.set(i, arr[i]); 110 result.setImmutable(); 111 return result;
|
/external/dexmaker/src/dx/java/com/android/dx/dex/code/form/ |
Form35c.java | 111 * the result. 157 int result = 0; local 161 result += one.getCategory(); 166 * the result. 173 return (result <= MAX_NUM_OPS) ? result : -1; 193 RegisterSpecList result = new RegisterSpecList(wordCount); local 198 result.set(wordAt, one); 200 result.set(wordAt + 1, 208 result.setImmutable() [all...] |
/external/dexmaker/src/dx/java/com/android/dx/rop/code/ |
RegisterSpecList.java | 40 RegisterSpecList result = new RegisterSpecList(1); local 41 result.set(0, spec); 42 return result; 54 RegisterSpecList result = new RegisterSpecList(2); local 55 result.set(0, spec0); 56 result.set(1, spec1); 57 return result; 70 RegisterSpecList result = new RegisterSpecList(3); local 71 result.set(0, spec0); 72 result.set(1, spec1) 89 RegisterSpecList result = new RegisterSpecList(4); local 114 int result = 0; local 202 int result = 0; local 227 RegisterSpecList result = new RegisterSpecList(sz + 1); local 255 RegisterSpecList result = new RegisterSpecList(newSize); local 282 RegisterSpecList result = new RegisterSpecList(newSize); local 311 RegisterSpecList result = new RegisterSpecList(newSize); local 344 RegisterSpecList result = new RegisterSpecList(sz); local 383 RegisterSpecList result = new RegisterSpecList(sz); local [all...] |