Home
last modified time | relevance | path

Searched refs:in (Results 1 – 25 of 49) sorted by relevance

12

/tools/apksig/src/main/java/com/android/apksig/internal/asn1/ber/
DInputStreamBerDataValueReader.java31 public InputStreamBerDataValueReader(InputStream in) { in InputStreamBerDataValueReader() argument
32 if (in == null) { in InputStreamBerDataValueReader()
35 mIn = in; in InputStreamBerDataValueReader()
41 RecordingInputStream in = new RecordingInputStream(mIn); in readDataValue() local
44 int firstIdentifierByte = in.read(); in readDataValue()
49 int tagNumber = readTagNumber(in, firstIdentifierByte); in readDataValue()
51 int firstLengthByte = in.read(); in readDataValue()
61 contentsOffsetInDataValue = in.getReadByteCount(); in readDataValue()
62 skipDefiniteLengthContents(in, contentsLength); in readDataValue()
65 contentsLength = readLongFormLength(in, firstLengthByte); in readDataValue()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/command/remote/
DRemoteManagerTest.java76 BufferedReader in = new BufferedReader(new InputStreamReader(data)); in testProcessClientOperations_invalidAction() local
79 mRemoteManager.processClientOperations(in, pw); in testProcessClientOperations_invalidAction()
95 BufferedReader in = new BufferedReader(new InputStreamReader(data)); in testProcessClientOperations_initHandover() local
98 mRemoteManager.processClientOperations(in, pw); in testProcessClientOperations_initHandover()
114 BufferedReader in = new BufferedReader(new InputStreamReader(data)); in testProcessClientOperations_addCommand() local
117 mRemoteManager.processClientOperations(in, pw); in testProcessClientOperations_addCommand()
130 BufferedReader in = new BufferedReader(new InputStreamReader(data)); in testProcessClientOperations_addCommand_fail() local
133 mRemoteManager.processClientOperations(in, pw); in testProcessClientOperations_addCommand_fail()
148 BufferedReader in = new BufferedReader(new InputStreamReader(data)); in testProcessClientOperations_addCommand_config() local
151 mRemoteManager.processClientOperations(in, pw); in testProcessClientOperations_addCommand_config()
[all …]
/tools/apksig/src/apksigner/java/com/android/apksigner/
DPasswordRetriever.java129 byte[] encodedPwd = readEncodedPassword(System.in); in getPasswords()
142 InputStream in = mFileInputStreams.get(file); in getPasswords() local
143 if (in == null) { in getPasswords()
144 in = new FileInputStream(file); in getPasswords()
145 mFileInputStreams.put(file, in); in getPasswords()
147 byte[] encodedPwd = readEncodedPassword(in); in getPasswords()
315 private static byte[] readEncodedPassword(InputStream in) throws IOException { in readEncodedPassword() argument
318 while ((b = in.read()) != -1) { in readEncodedPassword()
322 int next = in.read(); in readEncodedPassword()
327 if (!(in instanceof PushbackInputStream)) { in readEncodedPassword()
[all …]
Dhelp_sign.txt12 --in Input APK file to sign. This is an alternative to
18 APK is signed in-place, overwriting the input file.
23 signing scheme) used in Android since day one. By default,
28 (aka v2 signing scheme) introduced in Android Nougat,
57 KeyStore (see --ks), or (2) private key file in PKCS #8 format and certificate
58 file in X.509 format (see --key and --cert).
66 stored in the KeyStore. This must be specified if the
72 env:<name> password provided in the named
74 file:<file> password provided in the named
83 the file one line at a time. Passwords are read in the
[all …]
/tools/apksig/src/test/java/com/android/apksig/internal/util/
DResources.java42 try (InputStream in = cls.getResourceAsStream(resourceName)) { in toByteArray() argument
43 if (in == null) { in toByteArray()
46 return ByteStreams.toByteArray(in); in toByteArray()
52 try (InputStream in = cls.getResourceAsStream(resourceName)) { in toCertificate() argument
53 if (in == null) { in toCertificate()
57 CertificateFactory.getInstance("X.509").generateCertificate(in); in toCertificate()
64 try (InputStream in = cls.getResourceAsStream(resourceName)) { in toCertificateChain() argument
65 if (in == null) { in toCertificateChain()
68 certs = CertificateFactory.getInstance("X.509").generateCertificates(in); in toCertificateChain()
DByteStreams.java32 public static byte[] toByteArray(InputStream in) throws IOException { in toByteArray() argument
36 while ((chunkSize = in.read(buf)) != -1) { in toByteArray()
/tools/loganalysis/tests/src/com/android/loganalysis/item/
DMonkeyLogItemTest.java48 assertTrue(in("category1", categories)); in testToJson()
49 assertTrue(in("category2", categories)); in testToJson()
54 assertTrue(in("package1", packages)); in testToJson()
55 assertTrue(in("package2", packages)); in testToJson()
56 assertTrue(in("package3", packages)); in testToJson()
59 private boolean in(String value, JSONArray array) throws JSONException { in in() method in MonkeyLogItemTest
/tools/test/connectivity/acts/tests/google/tel/config/
DREADME.md2 …erences from other ACTS configs that require additional keys to be defined in order to run nearly …
6 …a SIM card config file, which is needed in the event that the MSISDN/MDN is not programmed onto SI…
7 …ns run by "stress" tests. (Tests that require this always have the word "stress" in the test name).
8 …nty, this key specifies a maximum number of re-runs that will be performed in the event of a test …
12 …e/2g/wfc)** - The maximum amount of power in mW that can be used in steady state during calling po…
13 …lte/2g/wfc)** - The maximum amount of power in mW that can be used in steady state during idle pow…
15 - **phone_call_iteration** - The number of calls to be placed in TelLiveStressCallTest
16 …- **call_server_number** - the POTS telephone number of a call server used in TelLiveStressCallTest
/tools/test/connectivity/acts/tests/google/bt/pts/instructions/
DSM_PTS_INSTRUCTIONS4 # use this file except in compliance with the License. You may obtain a copy of
9 # Unless required by applicable law or agreed to in writing, software
119 Note: Start advertiment and enter in random address to PTS
125 Note: Start advertiment and enter in random address to PTS
131 Note: Start advertiment and enter in random address to PTS
137 Note: Start advertiment and enter in random address to PTS
142 Note: Start advertiment and enter in random address to PTS before starting test
148 Note: Start advertiment and enter in random address to PTS before starting test
154 Note: Start advertiment and enter in random address to PTS before starting test
159 Note: Start advertiment and enter in random address to PTS before starting test
[all …]
/tools/tradefederation/core/src/com/android/tradefed/util/
DSerializationUtil.java65 ObjectInputStream in = null; in deserialize() local
68 in = new ObjectInputStream(fileIn); in deserialize()
69 return in.readObject(); in deserialize()
73 StreamUtil.close(in); in deserialize()
DTarUtil.java115 GZIPInputStream in = null; in unGzip() local
118 in = new GZIPInputStream(new FileInputStream(inputFile)); in unGzip()
120 IOUtils.copy(in, out); in unGzip()
122 StreamUtil.close(in); in unGzip()
/tools/tradefederation/core/src/com/android/tradefed/util/net/
DHttpMultipartPost.java81 FileInputStream in = new FileInputStream(file); in addTextFile() local
84 addTextFile(name, fileName, in); in addTextFile()
86 in.close(); in addTextFile()
98 public void addTextFile(String name, String fileName, InputStream in) in addTextFile() argument
108 mBuilder.append(StreamUtil.getStringFromStream(in)); in addTextFile()
/tools/apksig/
DLICENSE5 you may not use this file except in compliance with the License.
7 Unless required by applicable law or agreed to in writing, software
48 "Work" shall mean the work of authorship, whether in Source or
50 copyright notice that is included in or attached to the work
51 (an example is provided in the Appendix below).
53 "Derivative Works" shall mean any work, whether in Source or Object
64 submitted to Licensor for inclusion in the Work by the copyright owner
73 designated in writing by the copyright owner as "Not a Contribution."
84 Work and such Derivative Works in Source or Object form.
89 (except as stated in this section) patent license to make, have made,
[all …]
DREADME.md10 The key feature of apksig is that it knows about differences in APK signature verification logic
32 file. This is useful in optimized APK building pipelines, such as in Android Plugin for Gradle,
36 _NOTE: Some public classes of the library are in packages having the word "internal" in their name.
/tools/apksig/src/test/java/com/android/apksig/
DApkSignerTest.java155 DataSource in = in signGolden() local
159 .setInputApk(in) in signGolden()
269 String in = "original.apk"; in testRsaSignedVerifies() local
272 DataSource out = sign(in, new ApkSigner.Builder(signers).setMinSdkVersion(1)); in testRsaSignedVerifies()
276 out = sign(in, new ApkSigner.Builder(signers).setMinSdkVersion(18)); in testRsaSignedVerifies()
287 String in = "original.apk"; in testDsaSignedVerifies() local
290 DataSource out = sign(in, new ApkSigner.Builder(signers).setMinSdkVersion(1)); in testDsaSignedVerifies()
294 out = sign(in, new ApkSigner.Builder(signers).setMinSdkVersion(21)); in testDsaSignedVerifies()
305 String in = "original.apk"; in testEcSignedVerifies() local
309 DataSource out = sign(in, new ApkSigner.Builder(signers).setMinSdkVersion(18)); in testEcSignedVerifies()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/util/sl4a/
DFakeSocketServerHelper.java53 BufferedReader in = null; in run() local
57 in = new BufferedReader( in run()
65 String response = in.readLine(); in run()
/tools/tradefederation/core/
Dtradefed_win.bat6 :: you may not use this file except in compliance with the License.
11 :: Unless required by applicable law or agreed to in writing, software
27 for /f "delims=" %%j in ('java -version 2^>^&1 ^| findstr /i """1.8"') do (
44 :: first try to find TF jars in same dir as this script
87 for /f "delims=" %%i in ('where %~1') do (
99 for /f "delims=" %%i in ('%~1') do (
/tools/tradefederation/core/prod-tests/tests/src/com/android/continuous/
DSmokeTestTest.java40 TestIdentifier in = new TestIdentifier("com.android.smoketest.SmokeTestRunner$3", in testRewrite() local
47 trim.testStarted(in); in testRewrite()
/tools/repohooks/
DREADME.md40 These are the manifest-wide defaults and can be located in two places:
42 Simply check this in to the manifest git repo and you're done.
52 This file are checked in the top of a specific git repository. Stacking them
53 in subdirectories (to try and override parent settings) is not supported.
76 Hooks are executed in the top directory of the git repository. All paths should
88 branch. This is typically latest commit in the remote-tracking branch.
135 some_dog = tool --no-cat-in-commit-message ${PREUPLOAD_COMMIT_MESSAGE}
158 files match in a specific commit, then the hook will be skipped for that commit.
171 here will be passed directly to the linter in question. This will completely
219 and exec-ed in its own context. The only entry-point that matters is `main`.
[all …]
/tools/repohooks/tools/
Dpylintrc4 # you may not use this file except in compliance with the License.
9 # Unless required by applicable law or agreed to in writing, software
53 # operator. Joining a lot of strings can lead to a maximum recursion error in
72 # option multiple times (only on the command line, not in the configuration
106 # Put messages in a separate file for each module / package specified on the
108 # written in a file name "pylint_global.[txt|html]".
143 # Tells whether missing members accessed in mixin class should be ignored. A
176 # Tells whether to store unknown words to indicated private dictionary in
183 # Logging modules to check that the string format arguments are in logging
190 # Tells whether we should check for unused import in __init__ files.
[all …]
/tools/test/connectivity/acts/framework/acts/test_utils/bt/
Dbluetooth.proto67 // Type of technology used in the connection.
80 // is not a real disconnect, but a discontinuation in metrics logging.
105 // Numeric reason for disconnecting as defined in metrics.h
119 // Media timer in milliseconds.
122 // Media timer in milliseconds.
125 // Media timer in milliseconds.
140 // Total audio time in this A2DP session
/tools/test/connectivity/acts/
DREADME.md10 Included in the tests/google directory are a bundle of tests, many of which can
64 After installation, `act.py` will be in usr/bin and can be called as command
65 line utilities. Components in ACTS are importable under the package "acts."
66 in Python, for example:
93 By default, all logs are saved in `/tmp/logs`
99 in the test
127 standard a ':'-delimited format. Explicit keys in a configuration file will
152 for ad in self.android_devices:
156 By default all test cases listed in a Test Class\'s self.tests will be run.
/tools/tradefederation/core/tests/test-apps/NativeTestSampleApp/tests/
DAndroid.mk.bak4 # you may not use this file except in compliance with the License.
9 # Unless required by applicable law or agreed to in writing, software
38 # All gtests in all files should be compiled into one binary
/tools/external/fat32lib/
DNOTICE17 …cense or the ordinary General Public License is the better strategy to use in any particular case,…
19 …t it if you want it; that you can change the software and use pieces of it in new free programs; a…
29 …a version of the library must be consistent with the full freedom of use specified in this license.
31 …ordinary General Public License. We use this license for certain libraries in order to permit link…
35 …icense for many libraries. However, the Lesser license provides advantages in certain special circ…
39 …ary in non-free programs enables a greater number of people to use a large body of free software. …
43 …ode derived from the library, whereas the latter must be combined with the library in order to run.
51 …another language. (Hereinafter, translation is included without limitation in the term "modificati…
55 …stitute a work based on the Library (independent of the use of the Library in a tool for writing i…
57 …e verbatim copies of the Library's complete source code as you receive it, in any medium, provided…
[all …]
/tools/tradefederation/core/src/com/android/tradefed/command/remote/
DRemoteManager.java216 BufferedReader in = null; in processClientConnections() local
220 in = new BufferedReader(new InputStreamReader(clientSocket.getInputStream())); in processClientConnections()
222 processClientOperations(in, out); in processClientConnections()
229 closeReader(in); in processClientConnections()
244 void processClientOperations(BufferedReader in, PrintWriter out) throws IOException { in processClientOperations() argument
246 while ((line = in.readLine()) != null && !mCancel) { in processClientOperations()
509 private void closeReader(BufferedReader in) { in closeReader() argument
510 StreamUtil.close(in); in closeReader()

12