/development/tools/winscope/src/cross_tool/ |
D | origin_allow_list_test.ts | 21 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 …]
|
D | origin_allow_list.ts | 30 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/ |
D | List15.java | 52 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 …]
|
D | List16.java | 54 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()
|
D | Grid3.java | 133 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()
|
D | SystemUIModes.java | 78 @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.jd | 8 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.jd | 8 \"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/ |
D | MatrixGrabber.java | 55 private void getMatrix(GL10 gl, int mode, float[] mat) { in getMatrix() argument 57 gl2.glMatrixMode(mode); in getMatrix()
|
D | MatrixTrackingGL.java | 172 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/ |
D | AssetProvider.java | 79 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/ |
D | ActionBarDisplayOptions.java | 157 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.jd | 14 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/ |
D | MmsFileProvider.java | 77 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/ |
D | TouchPaint.java | 389 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/ |
D | Main.java | 199 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/ |
D | update_ndk_abi.sh | 11 $ANDROID_BUILD_TOP/build/soong/soong_ui.bash --make-mode update-ndk-abi
|
/development/tools/winscope/ |
D | webpack.config.dev.js | 21 mode: 'development', property
|
D | webpack.config.prod.js | 23 mode: 'production', property
|
/development/testrunner/ |
D | create_test.py | 118 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.jd | 9 a party-mode option (swipe left), if you want to make things interesting.
|
/development/scripts/ |
D | codegen | 6 $top/build/soong/soong_ui.bash --build-mode --all-modules --dir="$PWD" -j codegen_cli 1>&2
|
/development/treble/ |
D | build_with_artifact.sh | 56 BUILD_WITH_PARTIAL_ARTIFACT=true build/soong/soong_ui.bash --make-mode TARGET_PRODUCT=$TARGET_PRODU…
|
/development/tools/winscope/src/test/remote_tool_mock/ |
D | webpack.config.js | 47 mode: 'development', property
|
/development/vndk/snapshot/ |
D | build.sh | 53 build/soong/soong_ui.bash --make-mode vndk dist TARGET_PRODUCT=aosp_$arch $additional_option
|