Home
last modified time | relevance | path

Searched refs:StringInputStream (Results 1 – 25 of 96) sorted by relevance

1234

/aosp_15_r20/frameworks/base/tools/aapt2/io/
H A DStringStream.cpp24 StringInputStream::StringInputStream(StringPiece str) : str_(str), offset_(0u) { in StringInputStream() function in aapt::io::StringInputStream
27 bool StringInputStream::Next(const void** data, size_t* size) { in Next()
38 void StringInputStream::BackUp(size_t count) { in BackUp()
46 size_t StringInputStream::ByteCount() const { in ByteCount()
50 size_t StringInputStream::TotalSize() const { in TotalSize()
54 bool StringInputStream::ReadFullyAtOffset(void* data, size_t byte_count, off64_t offset) { in ReadFullyAtOffset()
H A DStringStream.h29 class StringInputStream : public android::KnownSizeInputStream {
31 explicit StringInputStream(android::StringPiece str);
52 DISALLOW_COPY_AND_ASSIGN(StringInputStream);
H A DStringStream_test.cpp37 StringInputStream in(input); in TEST()
54 StringInputStream in(input); in TEST()
77 StringInputStream in(input); in TEST()
/aosp_15_r20/external/aws-sdk-java-v2/services/ssooidc/src/test/java/software/amazon/awssdk/services/ssooidc/internal/
H A DSsoOidcProfileTokenProviderFactoryTest.java28 import software.amazon.awssdk.utils.StringInputStream;
88 .content(new StringInputStream(profileContent)) in create_SsooidcTokenProvider_from_SsooidcSpecificProfile()
105 .content(new StringInputStream(profileContent)) in create_SsoOidcTokenProvider_from_SsooidcSpecificProfileSupplier()
120 .content(new StringInputStream(profileContent)) in create_SsoOidcTokenProvider_with_ssoAccountIdInProfile()
136 .content(new StringInputStream(profileContent)) in create_SsoOidcTokenProvider_with_ssoRoleNameInProfile()
152 .content(new StringInputStream(profileContent)) in create_SsoOidcTokenProvider_with_ssoRoleNameInProfileSupplier()
165 .content(new StringInputStream(ssoProfileContent)) in incorrectSsoProperties_throwsException()
/aosp_15_r20/external/aws-sdk-java-v2/test/codegen-generated-classes-test/src/test/java/software/amazon/awssdk/services/
H A DBlockingAsyncRequestResponseBodyTest.java64 import software.amazon.awssdk.utils.StringInputStream;
87 StringInputStream stringInputStream = new StringInputStream(content); in blockingWithExecutor_inputStreamWithMark_shouldRetry()
126 … AsyncRequestBody.fromInputStream(new StringInputStream("Hello"), in blockingWithExecutor_sendsRightValues()
146 … AsyncRequestBody.fromInputStream(new StringInputStream("Hello"), in blockingWithExecutor_canUnderUpload()
166 … AsyncRequestBody.fromInputStream(new TrickleInputStream(new StringInputStream("Hello")), in blockingWithExecutor_canUnderUploadOneByteAtATime()
204 … AsyncRequestBody.fromInputStream(new StringInputStream("Hello"), in blockingWithExecutor_propagates400Failures()
220 … AsyncRequestBody.fromInputStream(new StringInputStream("Hello"), in blockingWithExecutor_propagates500Failures()
236 body.writeInputStream(new StringInputStream("Hello")); in blockingInputStreamWithoutExecutor_sendsRightValues()
253 body.writeInputStream(new StringInputStream("Hello")); in blockingInputStreamWithoutExecutor_canUnderUpload()
270 body.writeInputStream(new TrickleInputStream(new StringInputStream("Hello"))); in blockingInputStreamWithoutExecutor_canUnderUploadOneByteAtATime()
[all …]
H A DHostPrefixTest.java35 import software.amazon.awssdk.utils.StringInputStream;
91 … .responseBody(AbortableInputStream.create(new StringInputStream(""))) in syncValidHostPrefix_shouldPrefixEndpoint()
103 … .responseBody(AbortableInputStream.create(new StringInputStream(""))) in asyncValidHostPrefix_shouldPrefixEndpoint()
/aosp_15_r20/external/aws-sdk-java-v2/services/sso/src/test/java/software/amazon/awssdk/services/sso/auth/
H A DSsoProfileTest.java24 import software.amazon.awssdk.utils.StringInputStream;
38 .content(new StringInputStream(profileContent)) in createSsoCredentialsProvider_SsoAccountIdMissing_throwException()
54 .content(new StringInputStream(profileContent)) in createSsoCredentialsProvider_SsoRegionMissing_throwException()
70 .content(new StringInputStream(profileContent)) in createSsoCredentialsProvider_SsoRoleNameMissing_throwException()
86 .content(new StringInputStream(profileContent)) in createSsoCredentialsProvider_SsoStartUrlMissing_throwException()
/aosp_15_r20/external/aws-sdk-java-v2/core/protocols/aws-query-protocol/src/test/java/software/amazon/awssdk/protocols/query/
H A DXmlDomParserTest.java27 import software.amazon.awssdk.utils.StringInputStream;
38 XmlElement element = XmlDomParser.parse(new StringInputStream(xml)); in simpleXmlDocument_ParsedCorrectly()
57 XmlElement element = XmlDomParser.parse(new StringInputStream(xml)); in xmlWithAttributes_ParsedCorrectly()
74 XmlElement element = XmlDomParser.parse(new StringInputStream(xml)); in multipleElementsWithSameName_ParsedCorrectly()
90 assertThatThrownBy(() -> XmlDomParser.parse(new StringInputStream(xml))) in invalidXml_ThrowsException()
/aosp_15_r20/external/aws-sdk-java-v2/core/http-auth-spi/src/test/java/software/amazon/awssdk/http/auth/spi/signer/
H A DSignedRequestTest.java25 import software.amazon.awssdk.utils.StringInputStream;
52 .payload(() -> new StringInputStream("test")) in createSignedRequest_maximalBuild_works()
65 .payload(() -> new StringInputStream("test")) in createSignedRequest_toBuilder_works()
80 .payload(() -> new StringInputStream("test")) in createSignedRequest_copyNoChange_works()
96 .payload(() -> new StringInputStream("test")) in createSignedRequest_copyWithChange_works()
/aosp_15_r20/external/aws-sdk-java-v2/services/s3/src/test/java/software/amazon/awssdk/services/s3/internal/s3express/
H A DS3ExpressHttpSignerSigV4DelegateTest.java33 import software.amazon.awssdk.utils.StringInputStream;
46 …ContentStreamProvider payload = () -> new StringInputStream("this-is\nthe-sync-full-request-body"); in signSync_shouldSucceed()
66 …c -> assertThat(c.newStream()).hasSameContentAs(new StringInputStream("this-is\nthe-sync-full-requ… in signSync_shouldSucceed()
74 …c -> assertThat(c.newStream()).hasSameContentAs(new StringInputStream("this-is\nthe-sync-full-requ… in signSync_shouldSucceed()
79 …ContentStreamProvider payload = () -> new StringInputStream("this-is\nthe-sync-full-request-body"); in signAsync_missingProperty_shouldThrowException()
H A DS3ExpressHttpSignerTest.java47 import software.amazon.awssdk.utils.StringInputStream;
68 …ContentStreamProvider payload = () -> new StringInputStream("this-is\nthe-sync-full-request-body"); in signSyncRequest_doesSignRequest()
90 …c -> assertThat(c.newStream()).hasSameContentAs(new StringInputStream("this-is\nthe-sync-full-requ… in signSyncRequest_doesSignRequest()
98 …c -> assertThat(c.newStream()).hasSameContentAs(new StringInputStream("this-is\nthe-sync-full-requ… in signSyncRequest_doesSignRequest()
112 … .contentStreamProvider(() -> new StringInputStream( in signAsyncRequest_doesSignRequest()
136 …c -> assertThat(c.newStream()).hasSameContentAs(new StringInputStream("this-is\nthe-async-full-req… in signAsyncRequest_doesSignRequest()
/aosp_15_r20/external/jcommander/src/test/java/com/beust/jcommander/internal/
H A DDefaultConsoleTest.java14 final StringInputStream in = new StringInputStream(); in readPasswordCanBeCalledMultipleTimes()
32 private static class StringInputStream extends InputStream { class in DefaultConsoleTest
37 StringInputStream() { in StringInputStream() method in DefaultConsoleTest.StringInputStream
/aosp_15_r20/external/aws-sdk-java-v2/core/auth/src/test/java/software/amazon/awssdk/auth/credentials/
H A DProfileCredentialsProviderTest.java35 import software.amazon.awssdk.utils.StringInputStream;
75 .content(new StringInputStream("")) in missingProfileFileThrowsExceptionInResolveCredentials()
136 .content(new StringInputStream("")) in resolveCredentials_missingProfileFileCausesExceptionInMethod_throwsException()
259 .content(new StringInputStream("")) in toString_anyProfileCredentialsProviderAfterResolvingCredentialsFileDoesNotExist_throwsException()
272 .content(new StringInputStream("")) in toString_anyProfileCredentialsProviderBeforeResolvingCredentials_doesNotReturnProfileFile()
296 …return ProfileFile.builder().content(new StringInputStream(string)).type(ProfileFile.Type.CONFIGUR… in profileFile()
/aosp_15_r20/external/aws-sdk-java-v2/services/dynamodb/src/test/java/software/amazon/awssdk/services/dynamodb/
H A DDynamoDbRetryPolicyTest.java18 import software.amazon.awssdk.utils.StringInputStream;
76 .content(new StringInputStream("[profile default]\n" in resolve_retryModeSetWithEnvAndSupplier_resolvesFromEnv()
94 .content(new StringInputStream("[profile default]\n" in resolve_retryModeSetWithSupplier_resolvesFromSupplier()
112 .content(new StringInputStream("[profile default]\n")) in resolve_retryModeSetWithSdkClientOption_resolvesFromSdkClientOption()
130 .content(new StringInputStream("[profile default]\n")) in resolve_retryModeNotSetWithEnvNorSupplier_resolvesFromSdkDefault()
/aosp_15_r20/external/aws-sdk-java-v2/core/auth/src/test/java/software/amazon/awssdk/auth/token/credentials/
H A DProfileTokenProviderTest.java25 import software.amazon.awssdk.utils.StringInputStream;
34 .content(new StringInputStream("")) in missingProfileFile_throwsException()
47 .content(new StringInputStream("")) in emptyProfileFile_throwsException()
101 .content(new StringInputStream(string)) in profileFile()
/aosp_15_r20/external/aws-sdk-java-v2/core/sdk-core/src/test/java/software/amazon/awssdk/core/http/
H A DCrc32ValidationTest.java33 import software.amazon.awssdk.utils.StringInputStream;
40 InputStream content = new StringInputStream("content"); in adapt_InputStreamWithNoGzipOrCrc32_NotWrappedWhenAdapted()
54 InputStream content = new StringInputStream("content"); in adapt_InputStreamWithCrc32Header_WrappedWithValidatingStream()
99 InputStream content = new StringInputStream("this isn't GZIP"); in adapt_InvalidGzipContent_ThrowsException()
/aosp_15_r20/external/aws-sdk-java-v2/services/s3/src/test/java/software/amazon/awssdk/services/s3/
H A DS3MockUtils.java22 import software.amazon.awssdk.utils.StringInputStream;
37 AbortableInputStream.create(new StringInputStream( in mockListObjectsResponse()
61 AbortableInputStream.create(new StringInputStream( in mockListBucketsResponse()
/aosp_15_r20/external/aws-sdk-java-v2/services/sts/src/test/java/software/amazon/awssdk/services/sts/internal/
H A DAssumeRoleProfileTest.java22 import software.amazon.awssdk.utils.StringInputStream;
44 .content(new StringInputStream(profileContent)) in createAssumeRoleCredentialsProviderViaProfileSucceeds()
68 .content(new StringInputStream(profileContent)) in assumeRoleOutOfOrderDefinitionSucceeds()
/aosp_15_r20/external/aws-sdk-java-v2/core/sdk-core/src/test/java/software/amazon/awssdk/core/async/
H A DBlockingInputStreamAsyncRequestBodyTest.java30 import software.amazon.awssdk.utils.StringInputStream;
42 requestBody.writeInputStream(new StringInputStream("")); in doBlockingWrite_waitsForSubscription()
53 assertThatThrownBy(() -> requestBody.writeInputStream(new StringInputStream(""))) in doBlockingWrite_failsIfSubscriptionNeverComes()
/aosp_15_r20/external/aws-sdk-java-v2/services/s3/src/test/java/software/amazon/awssdk/services/s3/internal/handlers/
H A DSyncChecksumValidationInterceptorTest.java60 import software.amazon.awssdk.utils.StringInputStream;
146 CloseAwareStream stream = new CloseAwareStream(new StringInputStream("helloWorld")); in checksumCalculatingStreamProvider_shouldReturnNewStreamResetChecksum()
202 … .contentStreamProvider(() -> new StringInputStream("Test")) in afterUnmarshalling_putObjectRequest_shouldValidateChecksum_throwExceptionIfInvalid()
244 private StringInputStream inputStream;
247 private CloseAwareStream(StringInputStream inputStream) { in CloseAwareStream()
/aosp_15_r20/external/aws-sdk-java-v2/services/sts/src/it/java/software/amazon/awssdk/services/sts/
H A DAssumeRoleIntegrationTest.java49 import software.amazon.awssdk.utils.StringInputStream;
166 .content(new StringInputStream(ASSUME_ROLE_PROFILE)) in profileCredentialsProviderCanAssumeRoles()
198 .content(new StringInputStream(ASSUME_ROLE_PROFILE)) in profileCredentialProviderCanAssumeRolesWithEnvironmentCredentialSource()
235 … .content(new StringInputStream(ASSUME_ROLE_PROFILE)) in profileCredentialProviderWithEnvironmentCredentialSourceAndSystemProperties()
/aosp_15_r20/external/aws-sdk-java-v2/core/protocols/aws-json-protocol/src/test/java/software/amazon/awssdk/protocols/json/
H A DAwsJsonErrorMessageParserTest.java29 import software.amazon.awssdk.utils.StringInputStream;
57 …return jsonParser.parse(new StringInputStream(String.format("{\"%s\": \"%s\"}", fieldName, value))… in parseJson()
61 return jsonParser.parse(new StringInputStream(json)); in parseJson()
/aosp_15_r20/external/aws-sdk-java-v2/services/sqs/src/test/java/software/amazon/awssdk/services/sqs/
H A DMessageMD5ChecksumValidationDisableTest.java37 import software.amazon.awssdk.utils.StringInputStream;
142 AbortableInputStream.create(new StringInputStream( in responseWithMd5()
152 … .create(new StringInputStream("{\"MessageId\":\"" + MESSAGE_ID + "\"} "))) in responseWithoutMd5()
/aosp_15_r20/external/aws-sdk-java-v2/core/sdk-core/src/test/java/software/amazon/awssdk/core/sync/
H A DRequestBodyTest.java38 import software.amazon.awssdk.utils.StringInputStream;
77 StringInputStream inputStream = new StringInputStream("hello world"); in streamConstructorHasCorrectContentType()
/aosp_15_r20/external/grpc-grpc-java/census/src/test/java/io/grpc/census/
H A DCensusTracingAnnotationEventTest.java73 private static class StringInputStream extends InputStream { class in CensusTracingAnnotationEventTest
76 StringInputStream(String string) { in StringInputStream() method in CensusTracingAnnotationEventTest.StringInputStream
92 return new StringInputStream(value);
97 return ((StringInputStream) stream).string;

1234