Home
last modified time | relevance | path

Searched refs:mode (Results 1 – 25 of 119) sorted by relevance

12345

/cts/apps/CameraITS/tests/scene1/
Dtest_param_shading_mode.py60 reference_maps = [[] for mode in range(3)]
62 for mode in range(1, 3):
65 req["android.shading.mode"] = mode
71 if mode == 1:
74 reference_maps[mode] = lsc_map["map"]
79 for mode in range(3):
82 req["android.shading.mode"] = mode
89 for mode in range(3)]
98 for mode in range(3):
101 pylab.plot(range(num_map_gains), shading_maps[mode][i], 'r')
[all …]
Dtest_yuv_plus_raw.py42 mode = req["android.shading.mode"]
43 print "shading mode:", mode
53 its.image.write_image(img, "%s_shading=%d_yuv.jpg" % (NAME, mode), True)
60 its.image.write_image(img, "%s_shading=%d_raw.jpg" % (NAME, mode), True)
Dtest_yuv_plus_raw10.py42 mode = req["android.shading.mode"]
43 print "shading mode:", mode
54 its.image.write_image(img, "%s_shading=%d_yuv.jpg" % (NAME, mode), True)
61 its.image.write_image(img, "%s_shading=%d_raw.jpg" % (NAME, mode), True)
Dtest_param_noise_reduction.py72 for mode in NR_MODES:
74 if not its.caps.noise_reduction_mode(props, mode):
75 nr_modes_reported.append(mode)
84 req["android.noiseReduction.mode"] = mode
92 "%s_high_gain_nr=%d.jpg" % (NAME, mode))
102 print "NR mode", mode, "SNRs:"
/cts/tests/app/src/android/app/cts/
DActivityActionModeTest.java59 final ActionMode mode = mActivityRule.getActivity().startActionMode( in testStartPrimaryActionMode() local
62 assertNotNull(mode); in testStartPrimaryActionMode()
63 assertEquals(ActionMode.TYPE_PRIMARY, mode.getType()); in testStartPrimaryActionMode()
73 final ActionMode mode = mActivityRule.getActivity().startActionMode( in testStartFloatingActionMode() local
76 assertNotNull(mode); in testStartFloatingActionMode()
77 assertEquals(ActionMode.TYPE_FLOATING, mode.getType()); in testStartFloatingActionMode()
87 final ActionMode mode = mActivityRule.getActivity().startActionMode(mCallback); in testStartTypelessActionMode() local
89 assertNotNull(mode); in testStartTypelessActionMode()
90 assertEquals(ActionMode.TYPE_PRIMARY, mode.getType()); in testStartTypelessActionMode()
/cts/tests/tests/voicesettings/src/android/voicesettings/cts/
DAirplaneModeTest.java58 int mode; in testAll() local
60 mode = getMode(); in testAll()
61 Log.i(TAG, "Before testing, AIRPLANE_MODE is set to: " + mode); in testAll()
68 if (mode == AIRPLANE_MODE_IS_OFF) { in testAll()
95 int mode = getMode(); in runTest() local
96 Log.i(TAG, "After testing, AIRPLANE_MODE is set to: " + mode); in runTest()
97 assertEquals(expectedMode, mode); in runTest()
DZenModeTest.java63 int mode; in testAll() local
65 mode = getMode(); in testAll()
66 Log.i(TAG, "Before testing, zen-mode is set to: " + mode); in testAll()
73 if (mode == ZEN_MODE_IS_OFF) { in testAll()
100 int mode = getMode(); in runTest() local
101 Log.i(TAG, "After testing, zen-mode is set to: " + mode); in runTest()
102 assertEquals(expectedMode, mode); in runTest()
/cts/tests/tests/media/libaudiojni/
Dsl-utils.h69 void envReleaseArrayElements(JNIEnv *env, jbyteArray array, jbyte *elems, jint mode) { in envReleaseArrayElements() argument
70 env->ReleaseByteArrayElements(array, elems, mode); in envReleaseArrayElements()
79 void envReleaseArrayElements(JNIEnv *env, jshortArray array, jshort *elems, jint mode) { in envReleaseArrayElements() argument
80 env->ReleaseShortArrayElements(array, elems, mode); in envReleaseArrayElements()
89 void envReleaseArrayElements(JNIEnv *env, jfloatArray array, jfloat *elems, jint mode) { in envReleaseArrayElements() argument
90 env->ReleaseFloatArrayElements(array, elems, mode); in envReleaseArrayElements()
/cts/suite/audio_quality/test/
DRemoteAudioFakeTcpTest.cpp164 int mode = AudioHardware::EModeVoice | (stereo ? 0x80000000 : 0); in TEST_F() local
173 U32_ENDIAN_SWAP(mode), in TEST_F()
187 ASSERT_TRUE(mRemoteAudio->startPlayback(stereo, samplingF, mode, volume, id, repeat)); in TEST_F()
197 int mode = AudioHardware::EModeVoice | (stereo ? 0x80000000 : 0); in TEST_F() local
206 U32_ENDIAN_SWAP(mode), in TEST_F()
231 ASSERT_TRUE(mRemoteAudio->startPlayback(stereo, samplingF, mode, volume, id, repeat)); in TEST_F()
241 ASSERT_TRUE(mRemoteAudio->startPlayback(stereo, samplingF, mode, volume, id, repeat)); in TEST_F()
251 ASSERT_TRUE(mRemoteAudio->startPlayback(stereo, samplingF, mode, volume, id, repeat)); in TEST_F()
259 int mode = AudioHardware::EModeVoice | (stereo ? 0x80000000 : 0); in TEST_F() local
269 U32_ENDIAN_SWAP(mode), in TEST_F()
[all …]
/cts/libs/vogar-expect/src/vogar/
DExpectationStore.java121 … public static ExpectationStore parse(Set<File> expectationFiles, ModeId mode) throws IOException { in parse() argument
125 result.parse(f, mode); in parse()
141 Class<?> owningClass, Set<String> expectationResources, ModeId mode) in parseResources() argument
150 result.parse(url, mode); in parseResources()
156 private void parse(URL url, ModeId mode) throws IOException { in parse() argument
161 parse(reader, url.toString(), mode); in parse()
165 public void parse(File expectationsFile, ModeId mode) throws IOException { in parse() argument
170 parse(fileReader, source, mode); in parse()
174 private void parse(Reader reader, String source, ModeId mode) throws IOException { in parse() argument
180 readExpectation(jsonReader, mode); in parse()
[all …]
/cts/suite/audio_quality/lib/src/audio/
DAudioProtocol.cpp115 uint32_t mode = param.mStereo ? 0x80000000 : 0; in sendCommand() local
116 mode |= param.mMode; in sendCommand()
117 mBuffer[4] = htonl(mode); in sendCommand()
136 uint32_t mode = param.mStereo ? 0x80000000 : 0; in sendCommand() local
137 mode |= param.mMode; in sendCommand()
138 mBuffer[3] = htonl(mode); in sendCommand()
DAudioRemote.cpp21 bool AudioRemote::prepare(AudioHardware::SamplingRate samplingRate, int volume, int mode) in prepare() argument
29 mMode = mode; in prepare()
/cts/tests/JobSchedulerSharedUid/src/android/jobscheduler/
DTriggerContentJobService.java77 int mode = TestEnvironment.getTestEnvironment().getMode(); in onStartJob() local
82 if (mode == TestEnvironment.MODE_ONE_REPEAT_RESCHEDULE) { in onStartJob()
86 } else if (mode == TestEnvironment.MODE_ONE_REPEAT_FINISH_TRUE) { in onStartJob()
139 public void setMode(int mode, JobInfo jobInfo) { in setMode() argument
141 mMode = mode; in setMode()
/cts/tests/JobScheduler/src/android/jobscheduler/
DTriggerContentJobService.java77 int mode = TestEnvironment.getTestEnvironment().getMode(); in onStartJob() local
82 if (mode == TestEnvironment.MODE_ONE_REPEAT_RESCHEDULE) { in onStartJob()
86 } else if (mode == TestEnvironment.MODE_ONE_REPEAT_FINISH_TRUE) { in onStartJob()
139 public void setMode(int mode, JobInfo jobInfo) { in setMode() argument
141 mMode = mode; in setMode()
/cts/tests/tests/view/src/android/view/cts/
DActionModeCallback2Test.java80 public boolean onCreateActionMode(ActionMode mode, Menu menu) { in onCreateActionMode() argument
85 public boolean onPrepareActionMode(ActionMode mode, Menu menu) { in onPrepareActionMode() argument
90 public boolean onActionItemClicked(ActionMode mode, MenuItem item) { in onActionItemClicked() argument
95 public void onDestroyActionMode(ActionMode mode) {} in onDestroyActionMode() argument
/cts/tests/tests/content/src/android/content/cts/
DMockSRSProvider.java37 public void setupSuggestions(String authority, int mode) { in setupSuggestions() argument
39 super.setupSuggestions(authority, mode); in setupSuggestions()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DFileUtils.java64 public int mode; field in FileUtils.FileStatus
80 return (mode & flag) == flag; in hasModeFlag()
87 return (mode & S_IFMT) == type; in isOfType()
103 public native static int setPermissions(String file, int mode); in setPermissions() argument
DAppOpsUtils.java53 public static String setOpMode(String packageName, String opStr, int mode) in setOpMode() argument
56 switch (mode) { in setOpMode()
/cts/tests/tests/permission/src/android/permission/cts/
DFileUtils.java65 public int mode; field in FileUtils.FileStatus
81 return (mode & flag) == flag; in hasModeFlag()
88 return (mode & S_IFMT) == type; in isOfType()
/cts/apps/CtsVerifier/include/colorchecker/
Dwhitebalancetest.h32 void addDataToList(const std::string &mode, in addDataToList() argument
34 mMode = mode; in addDataToList()
/cts/apps/CameraITS/pymodules/its/
Dcaps.py369 def noise_reduction_mode(props, mode): argument
381 "android.noiseReduction.availableNoiseReductionModes") and mode \
384 def edge_mode(props, mode): argument
395 "android.edge.availableEdgeModes") and mode \
/cts/tests/camera/src/android/hardware/camera2/cts/
DCaptureRequestTest.java406 for (int mode : modes) { in testAntiBandingModes()
407 antiBandingTestByMode(previewSz, mode); in testAntiBandingModes()
442 for (int mode : aeModes) { in testAeModeAndLock()
443 aeModeAndLockTestByMode(mode); in testAeModeAndLock()
973 for (int mode : availableModes) { in noiseReductionModeTestByCamera()
974 requestBuilder.set(CaptureRequest.NOISE_REDUCTION_MODE, mode); in noiseReductionModeTestByCamera()
977 if (mode == CaptureRequest.NOISE_REDUCTION_MODE_OFF || in noiseReductionModeTestByCamera()
978 mode == CaptureRequest.NOISE_REDUCTION_MODE_FAST) { in noiseReductionModeTestByCamera()
987 verifyCaptureResultForKey(CaptureResult.NOISE_REDUCTION_MODE, mode, in noiseReductionModeTestByCamera()
1230 for (int mode : edgeModes) { in edgeModesTestByCamera()
[all …]
/cts/tests/tests/media/src/android/media/cts/
DEncoderTest.java181 InputStream istream, int mode, long timeUs, Random random) { in queueInputBuffer() argument
186 if ((mode & MODE_RESOURCE) != 0 && istream != null) { in queueInputBuffer()
199 } else if ((mode & MODE_RANDOM) != 0) { in queueInputBuffer()
200 if ((mode & MODE_SILENTLEAD) != 0) { in queueInputBuffer()
219 if ((mode & MODE_QUIET) != 0) { in queueInputBuffer()
272 long startSeed, int resid, int mode) { in testEncoder() argument
274 Log.i(TAG, "testEncoder " + componentName + "/" + mode + "/" + format); in testEncoder()
286 "bps-" + mode + "-" + resid + "-" + startSeed + "-" + in testEncoder()
297 if ((mode & MODE_RESOURCE) != 0) { in testEncoder()
351 codec, codecInputBuffers, index, istream, mode, timeUs, random); in testEncoder()
/cts/tests/framework/base/windowmanager/dndsourceapp/src/android/server/wm/dndsourceapp/
DDragSource.java86 private void setUpDragSource(String mode, final Uri uri, final int flags) { in setUpDragSource() argument
87 if (!mode.equals(getIntent().getStringExtra("mode"))) { in setUpDragSource()
91 mTextView.setText(mode); in setUpDragSource()
115 if (mode.equals("cancel_soon")) { in setUpDragSource()
/cts/tests/tests/telephony/src/android/telephony/cts/
DMmsPduProvider.java72 int mode = (TextUtils.equals(fileMode, "r") ? ParcelFileDescriptor.MODE_READ_ONLY : in openFile() local
76 return ParcelFileDescriptor.open(file, mode); in openFile()

12345