/cts/apps/CtsVerifier/src/com/android/cts/verifier/os/ |
D | FileUtils.java | 54 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/ |
D | test_param_shading_mode.py | 64 reference_maps = [[] for mode in range(3)] 66 for mode in range(1, 3): 69 req["android.shading.mode"] = mode 70 reference_maps[mode] = cam.do_capture(req)["metadata"] \ 76 for mode in range(3): 79 req["android.shading.mode"] = mode 86 for mode in range(3)] 94 for mode in range(3): 97 pylab.plot(range(num_map_gains), shading_maps[mode][i], 'r') 98 pylab.plot(range(num_map_gains), reference_maps[mode], 'g') [all …]
|
D | test_param_noise_reduction.py | 69 for mode in range(5): 71 if not its.caps.noise_reduction_mode(props, mode): 72 nr_modes_reported.append(mode) 81 req["android.noiseReduction.mode"] = mode 89 "%s_high_gain_nr=%d.jpg" % (NAME, mode)) 99 print "NR mode", mode, "SNRs:"
|
/cts/tests/tests/voicesettings/src/android/voicesettings/cts/ |
D | AirplaneModeTest.java | 57 int mode; in testAll() local 59 mode = getMode(); in testAll() 60 Log.i(TAG, "Before testing, AIRPLANE_MODE is set to: " + mode); in testAll() 67 if (mode == AIRPLANE_MODE_IS_OFF) { in testAll() 94 int mode = getMode(); in runTest() local 95 Log.i(TAG, "After testing, AIRPLANE_MODE is set to: " + mode); in runTest() 96 assertEquals(expectedMode, mode); in runTest()
|
D | ZenModeTest.java | 62 int mode; in testAll() local 64 mode = getMode(); in testAll() 65 Log.i(TAG, "Before testing, zen-mode is set to: " + mode); in testAll() 72 if (mode == ZEN_MODE_IS_OFF) { in testAll() 99 int mode = getMode(); in runTest() local 100 Log.i(TAG, "After testing, zen-mode is set to: " + mode); in runTest() 101 assertEquals(expectedMode, mode); in runTest()
|
/cts/tests/tests/media/libaudiojni/ |
D | sl-utils.h | 69 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/view/src/android/view/cts/ |
D | ActionModeTest.java | 60 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()
|
D | ActionModeCallback2Test.java | 60 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/ |
D | RemoteAudioFakeTcpTest.cpp | 164 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/ |
D | ExpectationStore.java | 121 … 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/ |
D | AudioProtocol.cpp | 115 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()
|
D | AudioRemote.cpp | 21 bool AudioRemote::prepare(AudioHardware::SamplingRate samplingRate, int volume, int mode) in prepare() argument 29 mMode = mode; in prepare()
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | CaptureRequestTest.java | 317 for (int mode : modes) { in testAntiBandingModes() 318 antiBandingTestByMode(previewSz, mode); in testAntiBandingModes() 353 for (int mode : aeModes) { in testAeModeAndLock() 354 aeModeAndLockTestByMode(mode); in testAeModeAndLock() 835 for (int mode : availableModes) { in noiseReductionModeTestByCamera() 836 requestBuilder.set(CaptureRequest.NOISE_REDUCTION_MODE, mode); in noiseReductionModeTestByCamera() 841 verifyCaptureResultForKey(CaptureResult.NOISE_REDUCTION_MODE, mode, in noiseReductionModeTestByCamera() 845 if (mode == CaptureRequest.NOISE_REDUCTION_MODE_OFF || in noiseReductionModeTestByCamera() 846 mode == CaptureRequest.NOISE_REDUCTION_MODE_FAST) { in noiseReductionModeTestByCamera() 1092 for (int mode : edgeModes) { in edgeModesTestByCamera() [all …]
|
/cts/libs/deviceutil/src/android/cts/util/ |
D | FileUtils.java | 64 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/apps/CameraITS/pymodules/its/ |
D | caps.py | 368 def noise_reduction_mode(props, mode): argument 380 "android.noiseReduction.availableNoiseReductionModes") and mode \ 383 def edge_mode(props, mode): argument 394 "android.edge.availableEdgeModes") and mode \
|
/cts/tests/JobScheduler/src/android/jobscheduler/ |
D | TriggerContentJobService.java | 72 int mode = TestEnvironment.getTestEnvironment().getMode(); in onStartJob() local 77 if (mode == TestEnvironment.MODE_ONE_REPEAT) { in onStartJob() 129 public void setMode(int mode, JobInfo jobInfo) { in setMode() argument 131 mMode = mode; in setMode()
|
/cts/hostsidetests/services/windowmanager/dndsourceapp/src/android/wm/cts/dndsourceapp/ |
D | DragSource.java | 67 private void setUpDragSource(String mode, final Uri uri, final int flags) { in setUpDragSource() argument 68 if (!mode.equals(getIntent().getStringExtra("mode"))) { in setUpDragSource() 72 ((TextView) source).setText(mode); in setUpDragSource() 90 if (mode.equals("cancel_soon")) { in setUpDragSource()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | MockSRSProvider.java | 37 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/ |
D | FileUtils.java | 65 public int mode; field in FileUtils.FileStatus 81 return (mode & flag) == flag; in hasModeFlag() 88 return (mode & S_IFMT) == type; in isOfType()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | EncoderTest.java | 180 InputStream istream, int mode, long timeUs, Random random) { in queueInputBuffer() argument 185 if ((mode & MODE_RESOURCE) != 0 && istream != null) { in queueInputBuffer() 198 } else if ((mode & MODE_RANDOM) != 0) { in queueInputBuffer() 199 if ((mode & MODE_SILENTLEAD) != 0) { in queueInputBuffer() 218 if ((mode & MODE_QUIET) != 0) { in queueInputBuffer() 271 long startSeed, int resid, int mode) { in testEncoder() argument 273 Log.i(TAG, "testEncoder " + componentName + "/" + mode + "/" + format); in testEncoder() 285 "bps-" + mode + "-" + resid + "-" + startSeed + "-" + in testEncoder() 296 if ((mode & MODE_RESOURCE) != 0) { in testEncoder() 350 codec, codecInputBuffers, index, istream, mode, timeUs, random); in testEncoder()
|
/cts/apps/CtsVerifier/include/colorchecker/ |
D | whitebalancetest.h | 32 void addDataToList(const std::string &mode, in addDataToList() argument 34 mMode = mode; in addDataToList()
|
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/ |
D | DirectBootHostTest.java | 127 public void doDirectBootTest(String mode) throws Exception { in doDirectBootTest() argument 149 if (MODE_EMULATED.equals(mode)) { in doDirectBootTest() 157 if (MODE_NONE.equals(mode)) { in doDirectBootTest() 172 if (MODE_EMULATED.equals(mode)) { in doDirectBootTest()
|
/cts/tests/app/src/android/app/cts/ |
D | UiModeManagerTest.java | 138 private void assertNightModeChange(int mode) { in assertNightModeChange() argument 139 mUiModeManager.setNightMode(mode); in assertNightModeChange() 140 assertEquals(mode, mUiModeManager.getNightMode()); in assertNightModeChange()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | XfermodeTest.java | 54 final PorterDuff.Mode mode; field in XfermodeTest.Config 59 mode = (PorterDuff.Mode) modeAndExpectedColors[0]; in Config() 65 return mode.name() + ", hardwareAccelerated=" + hardwareAccelerated; in toString() 145 mPaint.setXfermode(new PorterDuffXfermode(mConfig.mode));
|
/cts/tests/tests/display/src/android/display/cts/ |
D | DisplayTest.java | 267 Display.Mode mode = display.getMode(); 268 assertEquals(display.getSupportedModes()[0], mode); 269 assertEquals(SECONDARY_DISPLAY_WIDTH, mode.getPhysicalWidth()); 270 assertEquals(SECONDARY_DISPLAY_HEIGHT, mode.getPhysicalHeight()); 271 assertEquals(display.getRefreshRate(), mode.getRefreshRate()); 282 Display.Mode mode = display.getMode(); 283 assertEquals(modes[0], mode);
|