Home
last modified time | relevance | path

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

123

/development/tools/winscope/src/cross_tool/
Dorigin_allow_list_test.ts21 const mode = 'DEV' as const; constant
24 expect(OriginAllowList.isAllowed('http://localhost:8081', mode)).toBeTrue();
25 expect(OriginAllowList.isAllowed('https://localhost:8081', mode)).toBeTrue();
30 const mode = 'PROD' as const; constant
33 expect(OriginAllowList.isAllowed('https://google.com', mode)).toBeTrue();
34 expect(OriginAllowList.isAllowed('https://subdomain.google.com', mode)).toBeTrue();
38 expect(OriginAllowList.isAllowed('https://evilgoogle.com', mode)).toBeFalse();
39 expect(OriginAllowList.isAllowed('https://evil.com/google.com', mode)).toBeFalse();
43 expect(OriginAllowList.isAllowed('https://googleplex.com', mode)).toBeTrue();
44 expect(OriginAllowList.isAllowed('https://subdomain.googleplex.com', mode)).toBeTrue();
[all …]
Dorigin_allow_list.ts30 static isAllowed(originUrl: string, mode = globalConfig.MODE): boolean {
31 const list = OriginAllowList.getList(mode);
42 private static getList(mode: typeof globalConfig.MODE): RegExp[] {
43 switch (mode) {
/development/samples/ApiDemos/src/com/example/android/apis/view/
DList15.java52 public boolean onCreateActionMode(ActionMode mode, Menu menu) { in onCreateActionMode() argument
55 mode.setTitle("Select Items"); in onCreateActionMode()
56 setSubtitle(mode); in onCreateActionMode()
60 public boolean onPrepareActionMode(ActionMode mode, Menu menu) { in onPrepareActionMode() argument
64 public boolean onActionItemClicked(ActionMode mode, MenuItem item) { in onActionItemClicked() argument
69 mode.finish(); in onActionItemClicked()
79 public void onDestroyActionMode(ActionMode mode) { in onDestroyActionMode() argument
82 public void onItemCheckedStateChanged(ActionMode mode, in onItemCheckedStateChanged() argument
84 setSubtitle(mode); in onItemCheckedStateChanged()
87 private void setSubtitle(ActionMode mode) { in setSubtitle() argument
[all …]
DList16.java54 public boolean onCreateActionMode(ActionMode mode, Menu menu) { in onCreateActionMode() argument
57 mode.setTitle("Select Items"); in onCreateActionMode()
61 public boolean onPrepareActionMode(ActionMode mode, Menu menu) { in onPrepareActionMode() argument
65 public boolean onActionItemClicked(ActionMode mode, MenuItem item) { in onActionItemClicked() argument
70 mode.finish(); in onActionItemClicked()
80 public void onDestroyActionMode(ActionMode mode) { in onDestroyActionMode() argument
83 public void onItemCheckedStateChanged(ActionMode mode, in onItemCheckedStateChanged() argument
88 mode.setSubtitle(null); in onItemCheckedStateChanged()
91 mode.setSubtitle("One item selected"); in onItemCheckedStateChanged()
94 mode.setSubtitle("" + checkedCount + " items selected"); in onItemCheckedStateChanged()
DGrid3.java133 public boolean onCreateActionMode(ActionMode mode, Menu menu) { in onCreateActionMode() argument
134 mode.setTitle("Select Items"); in onCreateActionMode()
135 mode.setSubtitle("One item selected"); in onCreateActionMode()
139 public boolean onPrepareActionMode(ActionMode mode, Menu menu) { in onPrepareActionMode() argument
143 public boolean onActionItemClicked(ActionMode mode, MenuItem item) { in onActionItemClicked() argument
147 public void onDestroyActionMode(ActionMode mode) { in onDestroyActionMode() argument
150 public void onItemCheckedStateChanged(ActionMode mode, int position, long id, in onItemCheckedStateChanged() argument
155 mode.setSubtitle("One item selected"); in onItemCheckedStateChanged()
158 mode.setSubtitle("" + selectCount + " items selected"); in onItemCheckedStateChanged()
DSystemUIModes.java78 @Override public boolean onCreateActionMode(ActionMode mode, Menu menu) { in onCreateActionMode() argument
79 mode.setTitle("My Action Mode!"); in onCreateActionMode()
80 mode.setSubtitle(null); in onCreateActionMode()
81 mode.setTitleOptionalHint(false); in onCreateActionMode()
87 @Override public boolean onPrepareActionMode(ActionMode mode, Menu menu) { in onPrepareActionMode() argument
91 @Override public boolean onActionItemClicked(ActionMode mode, MenuItem item) { in onActionItemClicked() argument
95 @Override public void onDestroyActionMode(ActionMode mode) { in onDestroyActionMode() argument
/development/samples/browseable/ImmersiveMode/
D_index.jd8 One of the features introduced in KitKat is "immersive mode". Immersive mode gives the
10 click the "Toggle immersive mode" button, then try swiping the bar in and out!
/development/samples/browseable/BasicImmersiveMode/
D_index.jd8 \"Immersive Mode\" is a new UI mode which improves \"hide full screen\" and
10 demonstrates how to enable and disable immersive mode programmatically.
/development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/
DMatrixGrabber.java55 private void getMatrix(GL10 gl, int mode, float[] mat) { in getMatrix() argument
57 gl2.glMatrixMode(mode); in getMatrix()
DMatrixTrackingGL.java172 public void glCullFace(int mode) { in glCullFace() argument
173 mgl.glCullFace(mode); in glCullFace()
208 public void glDrawArrays(int mode, int first, int count) { in glDrawArrays() argument
209 mgl.glDrawArrays(mode, first, count); in glDrawArrays()
212 public void glDrawElements(int mode, int count, int type, Buffer indices) { in glDrawElements() argument
213 mgl.glDrawElements(mode, count, type, indices); in glDrawElements()
256 public void glFrontFace(int mode) { in glFrontFace() argument
257 mgl.glFrontFace(mode); in glFrontFace()
300 public void glHint(int target, int mode) { in glHint() argument
301 mgl.glHint(target, mode); in glHint()
[all …]
/development/samples/browseable/ShareActionProvider/src/com.example.android.shareactionprovider/content/
DAssetProvider.java79 public AssetFileDescriptor openAssetFile(@NonNull Uri uri, @NonNull String mode) in openAssetFile() argument
93 return super.openAssetFile(uri, mode); in openAssetFile()
99 return super.openAssetFile(uri, mode); in openAssetFile()
/development/samples/ApiDemos/src/com/example/android/apis/app/
DActionBarDisplayOptions.java157 final int mode; in onItemSelected() local
160 mode = ActionBar.NAVIGATION_MODE_TABS; in onItemSelected()
163 mode = ActionBar.NAVIGATION_MODE_LIST; in onItemSelected()
166 mode = ActionBar.NAVIGATION_MODE_STANDARD; in onItemSelected()
168 bar.setNavigationMode(mode); in onItemSelected()
/development/samples/browseable/DrawableTinting/
D_index.jd14 with a reference to a color and a PorterDuff blend mode. The color and blend mode can be
/development/samples/ApiDemos/src/com/example/android/apis/os/
DMmsFileProvider.java77 int mode = (TextUtils.equals(fileMode, "r") ? ParcelFileDescriptor.MODE_READ_ONLY : in openFile() local
81 return ParcelFileDescriptor.open(file, mode); in openFile()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DTouchPaint.java389 PaintMode mode; in onTouchOrHoverEvent() local
392 mode = PaintMode.Splat; in onTouchOrHoverEvent()
395 mode = PaintMode.Draw; in onTouchOrHoverEvent()
408 paint(getPaintModeForTool(event.getToolType(j), mode), in onTouchOrHoverEvent() local
420 paint(getPaintModeForTool(event.getToolType(j), mode), in onTouchOrHoverEvent() local
447 private void paint(PaintMode mode, float x, float y) { in paint() argument
448 paint(mode, x, y, 1.0f, 0, 0, 0, 0, 0); in paint()
451 private void paint(PaintMode mode, float x, float y, float pressure, in paint() argument
460 switch (mode) { in paint()
/development/tools/mkstubs/src/com/android/mkstubs/
DMain.java199 char mode = s.charAt(0); in addString() local
202 if (mode == '@') { in addString()
205 } else if (mode == '-') { in addString()
213 } else if (mode == '+') { in addString()
/development/tools/ndk/
Dupdate_ndk_abi.sh11 $ANDROID_BUILD_TOP/build/soong/soong_ui.bash --make-mode update-ndk-abi
/development/tools/winscope/
Dwebpack.config.dev.js21 mode: 'development', property
Dwebpack.config.prod.js23 mode: 'production', property
/development/testrunner/
Dcreate_test.py118 tests_manifest = open(tests_manifest_path, mode="w")
147 mk_file = open(mk_path, mode="a")
168 tests_mk = open(tests_mk_path, mode="w")
/development/samples/browseable/Flashlight/
D_index.jd9 a party-mode option (swipe left), if you want to make things interesting.
/development/scripts/
Dcodegen6 $top/build/soong/soong_ui.bash --build-mode --all-modules --dir="$PWD" -j codegen_cli 1>&2
/development/treble/
Dbuild_with_artifact.sh56 BUILD_WITH_PARTIAL_ARTIFACT=true build/soong/soong_ui.bash --make-mode TARGET_PRODUCT=$TARGET_PRODU…
/development/tools/winscope/src/test/remote_tool_mock/
Dwebpack.config.js47 mode: 'development', property
/development/vndk/snapshot/
Dbuild.sh53 build/soong/soong_ui.bash --make-mode vndk dist TARGET_PRODUCT=aosp_$arch $additional_option

123