Home
last modified time | relevance | path

Searched refs:data (Results 1 – 25 of 146) sorted by relevance

123456

/cts/tools/theme-test-tools/
Dthemetestscripts.sh34 adb install -r $ANDROID_PRODUCT_OUT/data/app/CtsTestStubs.apk && \
35 adb install -r $ANDROID_PRODUCT_OUT/data/app/CtsThemeTestCases.apk && \
51 adb install -r $ANDROID_PRODUCT_OUT/data/app/CtsTestStubs.apk && \
52 adb install -r $ANDROID_PRODUCT_OUT/data/app/CtsThemeTestCases.apk && \
53 adb shell rm -r data/data/com.android.cts.stub/files/
67 adb install -r $ANDROID_PRODUCT_OUT/data/app/CtsTestStubs.apk && \
68 adb install -r $ANDROID_PRODUCT_OUT/data/app/CtsThemeTestCases.apk && \
69 adb shell rm -r data/data/com.android.cts.stub/files/ && \
74 adb pull data/data/com.android.cts.stub/files/ $ANDROID_HOST_OUT/cts/theme-assets-xhdpi/
89 adb install -r $ANDROID_PRODUCT_OUT/data/app/CtsTestStubs.apk && \
[all …]
/cts/tests/tests/content/src/android/content/res/cts/
DAssetManager_AssetInputStreamTest.java152 byte[] data = new byte[dataLength]; in testReadMethods()
153 int ret = mAssetInputStream.read(data); in testReadMethods()
156 assertEquals(bytes[i], data[i]); in testReadMethods()
158 data = new byte[len - dataLength]; in testReadMethods()
159 assertEquals(len - dataLength, mAssetInputStream.read(data)); in testReadMethods()
161 assertEquals(bytes[i + dataLength], data[i]); in testReadMethods()
163 assertEquals(end, mAssetInputStream.read(data)); in testReadMethods()
168 ret = mAssetInputStream.read(data, offset, dataLength); in testReadMethods()
171 assertEquals(bytes[i], data[offset + i]); in testReadMethods()
175 ret = mAssetInputStream.read(data, offset, dataLength); in testReadMethods()
[all …]
/cts/tests/tests/os/src/android/os/cts/
DMemoryFileTest.java67 byte[] data = new byte[512]; in testWriteBytes()
71 mMemoryFile.writeBytes(data, 0, 0, 512); in testWriteBytes()
84 byte[] data = new byte[512]; in checkWriteBytesInIllegalParameter()
85 mMemoryFile.writeBytes(data, srcOffset, destOffset, count); in checkWriteBytesInIllegalParameter()
142 byte[] data = new byte[512]; in testAllowPurging()
144 mMemoryFile.writeBytes(data, 0, 0, 512); in testAllowPurging()
151 mMemoryFile.writeBytes(data, 0, 0, 512); in testAllowPurging()
185 byte[] data = new byte[] { 1, 2, 3, 4 }; in testReadBytes()
186 mMemoryFile.writeBytes(data, 0, 0, data.length); in testReadBytes()
209 byte[] data = new byte[512]; in checkReadBytesInIllegalParameter()
[all …]
DParcelFileDescriptorTest.java124 byte[] data = new byte[] { 0 }; in testFromData()
125 assertFileDescriptorContent(data, ParcelFileDescriptor.fromData(data, null)); in testFromData()
126 data = new byte[] { 0, 1, 2, 3 }; in testFromData()
127 assertFileDescriptorContent(data, ParcelFileDescriptor.fromData(data, null)); in testFromData()
128 data = new byte[0]; in testFromData()
129 assertFileDescriptorContent(data, ParcelFileDescriptor.fromData(data, null)); in testFromData()
132 data = new byte[] { 0, 1, 2, 3 }; in testFromData()
133 ParcelFileDescriptor pfd = ParcelFileDescriptor.fromData(data, null); in testFromData()
134 data[1] = 42; in testFromData()
163 byte[] data = new byte[] { 40, 41, 42, 43, 44, 45, 46 }; in testFromDataSkip()
[all …]
DBinderTest.java64 protected boolean onTransact(int code, Parcel data, Parcel reply, int flags) in setUp()
68 data.enforceInterface(LocalService.SERVICE_LOCAL); in setUp()
69 int count = data.readInt(); in setUp()
94 data.enforceInterface(LocalService.SERVICE_LOCAL); in setUp()
103 data.enforceInterface(LocalService.SERVICE_LOCAL); in setUp()
117 data.enforceInterface(LocalService.SERVICE_LOCAL); in setUp()
126 return super.onTransact(code, data, reply, flags); in setUp()
158 Parcel data = Parcel.obtain(); in onServiceConnected() local
159 data.writeInterfaceToken(LocalService.SERVICE_LOCAL); in onServiceConnected()
160 data.writeStrongBinder(mStartReceiver); in onServiceConnected()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DTestResult.java57 Intent data = new Intent(activity, activity.getClass()); in createResult() local
58 data.putExtra(TEST_NAME, testName); in createResult()
59 data.putExtra(TEST_RESULT, testResult); in createResult()
60 data.putExtra(TEST_DETAILS, testDetails); in createResult()
61 return data; in createResult()
68 static TestResult fromActivityResult(int resultCode, Intent data) { in fromActivityResult() argument
69 String name = data.getStringExtra(TEST_NAME); in fromActivityResult()
70 int result = data.getIntExtra(TEST_RESULT, TEST_RESULT_NOT_EXECUTED); in fromActivityResult()
71 String details = data.getStringExtra(TEST_DETAILS); in fromActivityResult()
DAbstractTestListActivity.java44 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
45 super.onActivityResult(requestCode, resultCode, data); in onActivityResult()
48 handleLaunchTestResult(resultCode, data); in onActivityResult()
56 private void handleLaunchTestResult(int resultCode, Intent data) { in handleLaunchTestResult() argument
58 TestResult testResult = TestResult.fromActivityResult(resultCode, data); in handleLaunchTestResult()
DTestResultsBackupHelper.java51 public void performBackup(ParcelFileDescriptor oldState, BackupDataOutput data, in performBackup() argument
80 data.writeEntityHeader(DB_BACKUP_KEY, rawBytes.length); in performBackup()
81 data.writeEntityData(rawBytes, rawBytes.length); in performBackup()
93 public void restoreEntity(BackupDataInputStream data) { in restoreEntity() argument
95 if (DB_BACKUP_KEY.equals(data.getKey())) { in restoreEntity()
96 byte[] rawBytes = new byte[data.size()]; in restoreEntity()
97 data.read(rawBytes, 0, data.size()); in restoreEntity()
120 Log.e(TAG, "Skipping key: " + data.getKey()); in restoreEntity()
/cts/tests/tests/database/src/android/database/cts/
DCharArrayBufferTest.java44 assertEquals(0, charArrayBuffer.data.length); in testCharArrayBuffer()
45 charArrayBuffer.data = new char[100]; in testCharArrayBuffer()
46 assertEquals(100, charArrayBuffer.data.length); in testCharArrayBuffer()
48 assertEquals(100, (new CharArrayBuffer(100)).data.length); in testCharArrayBuffer()
50 assertNull((new CharArrayBuffer(null)).data); in testCharArrayBuffer()
53 assertSame(expectedData, (new CharArrayBuffer(expectedData)).data); in testCharArrayBuffer()
/cts/tests/src/android/app/cts/
DLocalService.java47 protected boolean onTransact(int code, Parcel data, Parcel reply,
50 data.enforceInterface(SERVICE_LOCAL);
51 mReportObject = data.readStrongBinder();
54 return super.onTransact(code, data, reply, flags);
104 Parcel data = Parcel.obtain(); in bindAction() local
105 data.writeInterfaceToken(SERVICE_LOCAL); in bindAction()
107 data.writeInt(mStartCount); in bindAction()
111 bindCode, data, null, 0); in bindAction()
112 data.recycle(); in bindAction()
DActivityTestsBase.java87 public void activityFinished(int resultCode, Intent data, RuntimeException where) { in activityFinished() argument
88 finishWithResult(resultCode, data, where); in activityFinished()
113 public void finishWithResult(int resultCode, Intent data) { in finishWithResult() argument
116 finishWithResult(resultCode, data, where); in finishWithResult()
119 public void finishWithResult(int resultCode, Intent data, RuntimeException where) { in finishWithResult() argument
122 mData = data; in finishWithResult()
DLaunchpadActivity.java78 public void activityFinished(int resultCode, Intent data, RuntimeException where); in activityFinished() argument
414 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument
418 finishWithResult(resultCode, data); in onActivityResult()
422 if (RETURNED_RESULT.equals(data.getAction())) { in onActivityResult()
423 finishWithResult(resultCode, data); in onActivityResult()
426 + data)); in onActivityResult()
500 private void setExpectedData(String[] data) { in setExpectedData() argument
501 mExpectedData = data; in setExpectedData()
502 mReceivedData = new boolean[data.length]; in setExpectedData()
520 private void finishWithResult(int resultCode, Intent data) { in finishWithResult() argument
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audioquality/
DUtils.java134 public static short[] byteToShortArray(byte[] data, int start, int len) { in byteToShortArray() argument
136 ByteBuffer bb = ByteBuffer.wrap(data, start, len); in byteToShortArray()
151 public static short[] byteToShortArray(byte[] data) { in byteToShortArray() argument
152 int len = data.length / 2; in byteToShortArray()
154 ByteBuffer bb = ByteBuffer.wrap(data); in byteToShortArray()
171 byte[] data = new byte[len * 2]; in shortToByteArray()
172 ByteBuffer bb = ByteBuffer.wrap(data); in shortToByteArray()
177 return data; in shortToByteArray()
213 byte[] data = new byte[len]; in readFile()
220 count = fis.read(data, pos, len - pos); in readFile()
[all …]
DBackgroundAudio.java42 public BackgroundAudio(byte[] data) { in BackgroundAudio() argument
44 mData = data; in BackgroundAudio()
58 Log.i(TAG, "Looping " + data.length + " bytes of audio, buffer size " + mBufferSize); in BackgroundAudio()
DExperiment.java98 public void setRecording(byte[] data) { in setRecording() argument
99 setRecording(data, -1); in setRecording()
102 public void setRecording(byte[] data, int num) { in setRecording() argument
108 Utils.saveFile(filename, data); in setRecording()
/cts/tests/tests/media/src/android/media/cts/
DAudioTrackTest.java398 byte data[] = new byte[minBuffSize]; in testPlaybackHeadPositionIncrease()
401 track.write(data, OFFSET_DEFAULT, data.length); in testPlaybackHeadPositionIncrease()
402 track.write(data, OFFSET_DEFAULT, data.length); in testPlaybackHeadPositionIncrease()
457 byte data[] = new byte[minBuffSize]; in testPlaybackHeadPositionAfterFlush()
460 track.write(data, OFFSET_DEFAULT, data.length); in testPlaybackHeadPositionAfterFlush()
461 track.write(data, OFFSET_DEFAULT, data.length); in testPlaybackHeadPositionAfterFlush()
523 byte data[] = new byte[minBuffSize]; in testPlaybackHeadPositionAfterStop()
526 track.write(data, OFFSET_DEFAULT, data.length); in testPlaybackHeadPositionAfterStop()
527 track.write(data, OFFSET_DEFAULT, data.length); in testPlaybackHeadPositionAfterStop()
590 byte data[] = new byte[minBuffSize]; in testPlaybackHeadPositionAfterPause()
[all …]
DVisualizerTest.java199 byte[] data = new byte[mVisualizer.getCaptureSize()]; in test2_0PollingCapture()
200 mVisualizer.getWaveForm(data); in test2_0PollingCapture()
201 int energy = computeEnergy(data, true); in test2_0PollingCapture()
204 mVisualizer.getFft(data); in test2_0PollingCapture()
205 energy = computeEnergy(data, false); in test2_0PollingCapture()
306 private int computeEnergy(byte[] data, boolean pcm) { in computeEnergy() argument
308 if (data.length != 0) { in computeEnergy()
310 for (int i = 0; i < data.length; i++) { in computeEnergy()
311 int tmp = ((int)data[i] & 0xFF) - 128; in computeEnergy()
315 energy = (int)data[0] * (int)data[0]; in computeEnergy()
[all …]
/cts/apps/CtsVerifier/jni/audioquality/
DWindow.cpp50 void Window::window(short* data, float* output, float preemp) { in window() argument
53 output[i] = data[i] * mWindowWeights[i]; in window()
56 output[i] = (data[i+1] - (preemp * data[i])) * mWindowWeights[i]; in window()
DOverflowCheck.cpp51 static void findEndpoints(short* data, int n, int step, int* start, int* end) { in findEndpoints() argument
58 float val = data[i + frame]; in findEndpoints()
79 static void checkExcursions(short* data, int start, int end, int* numJumps, in checkExcursions() argument
87 *maxPeak = *minPeak = data[start]; in checkExcursions()
89 int v1 = data[i]; in checkExcursions()
90 int v2 = data[i+1]; in checkExcursions()
DGlitchTest.cpp146 int GlitchTest::realMagSqSpectrum(float* data, int numInput, in realMagSqSpectrum() argument
153 mRe[i] = data[i]; in realMagSqSpectrum()
168 void GlitchTest::findPeak(float* data, int startSearch, int endSearch, in findPeak() argument
170 float amax = data[startSearch]; in findPeak()
173 if (data[i] > amax) { in findPeak()
174 amax = data[i]; in findPeak()
DGlitchTest.h67 int realMagSqSpectrum(float* data, int n_input,
75 void findPeak(float* data, int start_search, int end_search,
/cts/tests/tests/provider/src/android/provider/cts/
DContactsContract_DataTest.java70 TestData data = rawContact.newDataRow(StructuredName.CONTENT_ITEM_TYPE) in testGetLookupUriBySourceId() local
74 Uri lookupUri = Data.getContactLookupUri(mResolver, data.getUri()); in testGetLookupUriBySourceId()
79 lookupContact.getId(), data.load().getRawContact().load().getContactId()); in testGetLookupUriBySourceId()
94 TestData data = rawContact.newDataRow(StructuredName.CONTENT_ITEM_TYPE) in testGetLookupUriByDisplayName() local
98 Uri lookupUri = Data.getContactLookupUri(mResolver, data.getUri()); in testGetLookupUriByDisplayName()
103 lookupContact.getId(), data.load().getRawContact().load().getContactId()); in testGetLookupUriByDisplayName()
/cts/tests/src/android/speech/tts/cts/
DStubTextToSpeechService.java54 byte[] data = { 0x01, 0x2 }; in onSynthesizeText()
55 if (callback.audioAvailable(data, 0, data.length) != TextToSpeech.SUCCESS) { in onSynthesizeText()
/cts/tests/tests/app/src/android/app/backup/cts/
DBackupAgentTest.java38 public void onBackup(ParcelFileDescriptor oldState, BackupDataOutput data, in onBackup() argument
43 public void onRestore(BackupDataInput data, int appVersionCode, in onRestore() argument
/cts/tools/host/src/com/android/cts/
DMultiplexingLogListener.java50 public void newData(byte[] data, int offset, int length) { in newData() argument
52 listener.newData(data, offset, length); in newData()

123456