Home
last modified time | relevance | path

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

123

/cts/apps/CtsVerifier/src/com/android/cts/verifier/os/
DFileUtils.java54 private int mode; field in FileUtils.FileStatus
76 return mode; in getMode()
80 return hasModeFlag(mode, S_IFDIR); in isDirectory()
84 return hasModeFlag(mode, S_IFLNK); in isSymbolicLink()
88 return hasModeFlag(mode, S_ISUID); in isSetUid()
92 return hasModeFlag(mode, S_ISGID); in isSetGid()
113 public static String getFormattedPermissions(int mode) { in getFormattedPermissions() argument
119 if (hasModeFlag(mode, typeMasks[i])) { in getFormattedPermissions()
128 if (!hasModeFlag(mode, masks[i])) { in getFormattedPermissions()
134 if (hasModeFlag(mode, S_ISUID)) { in getFormattedPermissions()
[all …]
/cts/apps/CameraITS/tests/scene1/
Dtest_param_shading_mode.py63 reference_maps = [[] for mode in range(3)]
65 for mode in range(1, 3):
68 req["android.shading.mode"] = mode
69 reference_maps[mode] = cam.do_capture(req)["metadata"] \
75 for mode in range(3):
78 req["android.shading.mode"] = mode
85 for mode in range(3)]
93 for mode in range(3):
96 pylab.plot(range(num_map_gains), shading_maps[mode][i], 'r')
97 pylab.plot(range(num_map_gains), reference_maps[mode], 'g')
[all …]
Dtest_param_noise_reduction.py70 for mode in range(5):
72 if not its.caps.noise_reduction_mode(props, mode):
73 nr_modes_reported.append(mode)
80 req["android.noiseReduction.mode"] = mode
86 "%s_high_gain_nr=%d.jpg" % (NAME, mode))
/cts/tests/tests/voicesettings/src/android/voicesettings/cts/
DAirplaneModeTest.java36 int mode; in testAll() local
38 mode = getMode(); in testAll()
39 Log.i(TAG, "Before testing, AIRPLANE_MODE is set to: " + mode); in testAll()
46 if (mode == AIRPLANE_MODE_IS_OFF) { in testAll()
73 int mode = getMode(); in runTest() local
74 Log.i(TAG, "After testing, AIRPLANE_MODE is set to: " + mode); in runTest()
75 assertEquals(expectedMode, mode); in runTest()
DZenModeTest.java42 int mode; in testAll() local
44 mode = getMode(); in testAll()
45 Log.i(TAG, "Before testing, zen-mode is set to: " + mode); in testAll()
52 if (mode == ZEN_MODE_IS_OFF) { in testAll()
79 int mode = getMode(); in runTest() local
80 Log.i(TAG, "After testing, zen-mode is set to: " + mode); in runTest()
81 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/tests/tests/graphics/src/android/graphics/cts/
DAvoidXfermode_ModeTest.java30 Mode[] mode = Mode.values(); in testValues() local
32 assertEquals(2, mode.length); in testValues()
33 assertEquals(Mode.AVOID, mode[0]); in testValues()
34 assertEquals(Mode.TARGET, mode[1]); in testValues()
/cts/tests/tests/view/src/android/view/cts/
DActionModeTest.java60 ActionMode mode = view.startActionMode(callback, ActionMode.TYPE_FLOATING); in testInvalidateContentRectOnFloatingCallsCallback()
61 assertNotNull(mode); in testInvalidateContentRectOnFloatingCallsCallback()
62 mode.invalidateContentRect(); in testInvalidateContentRectOnFloatingCallsCallback()
125 public boolean onCreateActionMode(ActionMode mode, Menu menu) { in onCreateActionMode() argument
130 public boolean onPrepareActionMode(ActionMode mode, Menu menu) { in onPrepareActionMode() argument
135 public boolean onActionItemClicked(ActionMode mode, MenuItem item) { in onActionItemClicked() argument
140 public void onDestroyActionMode(ActionMode mode) {} in onDestroyActionMode() argument
143 public void onGetContentRect(ActionMode mode, View view, Rect outRect) { in onGetContentRect() argument
145 super.onGetContentRect(mode, view, outRect); in onGetContentRect()
DActionModeCallback2Test.java60 public boolean onCreateActionMode(ActionMode mode, Menu menu) { in onCreateActionMode() argument
65 public boolean onPrepareActionMode(ActionMode mode, Menu menu) { in onPrepareActionMode() argument
70 public boolean onActionItemClicked(ActionMode mode, MenuItem item) { in onActionItemClicked() argument
75 public void onDestroyActionMode(ActionMode mode) {} in onDestroyActionMode() argument
/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/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/tests/hardware/src/android/hardware/camera2/cts/
DCaptureRequestTest.java286 for (int mode : modes) { in testAntiBandingModes()
287 antiBandingTestByMode(previewSz, mode); in testAntiBandingModes()
322 for (int mode : aeModes) { in testAeModeAndLock()
323 aeModeAndLockTestByMode(mode); in testAeModeAndLock()
640 for (int mode : availableModes) { in noiseReductionModeTestByCamera()
641 requestBuilder.set(CaptureRequest.NOISE_REDUCTION_MODE, mode); in noiseReductionModeTestByCamera()
646 verifyCaptureResultForKey(CaptureResult.NOISE_REDUCTION_MODE, mode, in noiseReductionModeTestByCamera()
650 if (mode == CaptureRequest.NOISE_REDUCTION_MODE_OFF || in noiseReductionModeTestByCamera()
651 mode == CaptureRequest.NOISE_REDUCTION_MODE_FAST) { in noiseReductionModeTestByCamera()
767 for (int mode : edgeModes) { in edgeModesTestByCamera()
[all …]
/cts/apps/CameraITS/pymodules/its/
Dcaps.py310 def noise_reduction_mode(props, mode): argument
322 "android.noiseReduction.availableNoiseReductionModes") and mode \
325 def edge_mode(props, mode): argument
336 "android.edge.availableEdgeModes") and mode \
/cts/libs/deviceutil/src/android/cts/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
/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/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/tests/tests/display/src/android/display/cts/
DDisplayTest.java236 Display.Mode mode = display.getMode(); in testMode() local
237 assertEquals(display.getSupportedModes()[0], mode); in testMode() local
238 assertEquals(SECONDARY_DISPLAY_WIDTH, mode.getPhysicalWidth()); in testMode()
239 assertEquals(SECONDARY_DISPLAY_HEIGHT, mode.getPhysicalHeight()); in testMode()
240 assertEquals(display.getRefreshRate(), mode.getRefreshRate()); in testMode()
251 Display.Mode mode = display.getMode(); in testModeSwitch() local
252 assertEquals(modes[0], mode); in testModeSwitch()
/cts/libs/vogar-expect/src/vogar/
DExpectationStore.java120 … public static ExpectationStore parse(Set<File> expectationFiles, ModeId mode) throws IOException { in parse() argument
124 result.parse(f, mode); in parse()
130 public void parse(File expectationsFile, ModeId mode) throws IOException { in parse() argument
140 readExpectation(reader, mode); in parse()
153 private void readExpectation(JsonReader reader, ModeId mode) throws IOException { in readExpectation() argument
204 if (modes != null && !modes.contains(mode)) { in readExpectation()
/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()
/cts/tests/tests/media/src/android/media/cts/
DAudioTrack_ListenerTest.java82 int periodsPerSecond, int markerPeriodsPerSecond, final int mode) throws Exception { in doTest() argument
86 if (mode == AudioTrack.MODE_STATIC && TEST_LOOP_FACTOR > 1) { in doTest()
100 TEST_FORMAT, bufferSizeInBytes, mode); in doTest()
108 TEST_FORMAT, bufferSizeInBytes, mode); in doTest()
146 if (mode == AudioTrack.MODE_STATIC && TEST_LOOP_FACTOR > 1) { in doTest()
/cts/tests/tests/security/src/android/security/cts/
DBannedFilesTest.java139 assertTrue("File \"" + file + "\" is setUID", (fs.mode & FileUtils.S_ISUID) == 0); in assertNotSetugid()
140 assertTrue("File \"" + file + "\" is setGID", (fs.mode & FileUtils.S_ISGID) == 0); in assertNotSetugid()
/cts/suite/cts/deviceTests/opengl/
Dcob_exporter.py38 if mesh.mode != 'OBJECT':
39 bpy.ops.object.mode_set(mode='OBJECT', toggle=False)
/cts/apps/CtsVerifier/src/com/android/cts/verifier/location/
DLocationModeTestActivity.java216 int mode = getLocationMode(); in testIsOn() local
217 boolean passed = mode != Secure.LOCATION_MODE_OFF; in testIsOn()
227 int mode = getLocationMode(); in testIsExpectedMode() local
228 boolean passed = mode == expectedMode; in testIsExpectedMode()

123