/development/samples/browseable/BatchStepSensor/src/com.example.android.batchstepsensor/cardstream/ |
D | DefaultCardStreamAnimator.java | 37 PropertyValuesHolder.ofFloat("alpha", 1.f, 0.f), in getDisappearingAnimator() 38 PropertyValuesHolder.ofFloat("scaleX", 1.f, 0.f), in getDisappearingAnimator() 39 PropertyValuesHolder.ofFloat("scaleY", 1.f, 0.f), in getDisappearingAnimator() 40 PropertyValuesHolder.ofFloat("rotation", 0.f, 270.f)); in getDisappearingAnimator() 55 PropertyValuesHolder.ofFloat("alpha", 0.f, 1.f), in getAppearingAnimator() 56 PropertyValuesHolder.ofFloat("translationY", outPoint.y / 2.f, 0.f), in getAppearingAnimator() 57 PropertyValuesHolder.ofFloat("rotation", -45.f, 0.f)); in getAppearingAnimator() 68 PropertyValuesHolder.ofFloat("alpha", 0.5f, 1.f), in getInitalAnimator() 69 PropertyValuesHolder.ofFloat("rotation", 60.f, 0.f)); in getInitalAnimator() 81 float fractionCovered = 1.f - (deltaXAbs / view.getWidth()); in getSwipeInAnimator() [all …]
|
D | CardStreamLinearLayout.java | 81 mDownX = 0.f; 82 mDownY = 0.f; 89 mDownX = mDownX == 0.f ? x : mDownX; 90 mDownY = mDownY == 0.f ? x : mDownY; 120 mDownX = 0.f; 121 mDownY = 0.f; 176 view.setAlpha(0.f); 305 child.setAlpha(1.f - fractionCovered); in swipeView() 308 child.setRotationY(-15.f * fractionCovered); in swipeView() 310 child.setRotationY(15.f * fractionCovered); in swipeView() [all …]
|
D | CardActionButton.java | 56 ViewCompat.setElevation(this, 8.f); in onTouchEvent() 64 animate().scaleX(1.f).scaleY(1.f).setDuration(50) in onTouchEvent() 67 ViewCompat.setElevation(this, 0.f); in onTouchEvent()
|
D | CardLayout.java | 32 private float mDownX = 0.f; 33 private float mDownY = 0.f; 34 private float mTouchSlop = 0.f; 57 mTouchSlop = ViewConfiguration.get(getContext()).getScaledTouchSlop() * 2.f; in init()
|
/development/gki/kmi_abi_chk/ |
D | kmi_compatibility_test.sh | 27 for f in "$@"; do 28 if [[ ! -e "$f" ]]; then 29 echo "Kernel symbol file $f does not exist!" >&2 31 elif ! grep -iE "^0x[0-9a-f]{8}+.[_0-9a-z]+.vmlinux.EXPORT_SYMBOL" $f > /dev/null; then 33 echo "$f doesn't look like kernel symbol file!" >&2 65 for f in "$@"; do 66 echo " $f" 72 if grep -vf $tmp $f; then 74 echo "$f contains symbol(s) not found in, or incompatible with, $curr." >&2
|
/development/samples/Vault/src/com/example/android/vault/ |
D | EncryptedDocument.java | 136 final RandomAccessFile f = new RandomAccessFile(mFile, "r"); in readMetadata() local 138 assertMagic(f); in readMetadata() 142 readSection(f, metaOut); in readMetadata() 161 f.close(); in readMetadata() 180 final RandomAccessFile f = new RandomAccessFile(mFile, "r"); in readContent() local 182 assertMagic(f); in readContent() 184 if (f.length() <= CONTENT_OFFSET) { in readContent() 189 f.seek(CONTENT_OFFSET); in readContent() 190 readSection(f, new FileOutputStream(contentOut.getFileDescriptor())); in readContent() 193 f.close(); in readContent() [all …]
|
/development/testrunner/test_defs/ |
D | native_test.py | 70 for f in host_list: 71 if run_command.RunHostCommand(f) != 0: 72 logger.Log("%s... failed" % f) 75 if run_command.RunHostCommand(f, valgrind=True) == 0: 76 logger.Log("%s... ok\t\t[valgrind: ok]" % f) 78 logger.Log("%s... ok\t\t[valgrind: failed]" % f) 80 logger.Log("%s... ok\t\t[valgrind: missing]" % f) 84 for f in target_list: 85 full_path = os.path.join(os.sep, "data", "nativetest", f) 92 logger.Log("%s... %s" % (f, success and "ok" or "failed")) [all …]
|
/development/tools/repo_diff/service/repodiff/tools/ |
D | env_variable_load.py | 14 with open("%s/.bashrc" % os.environ["HOME"], "rb") as f: 15 existing_contents = f.read() 17 with open("%s/.bashrc" % os.environ["HOME"], "a") as f: 18 f.write("\n") 23 f.write("export %s=\"%s\"\n" % (key, value))
|
/development/scripts/ |
D | acov-llvm.py | 102 status = adb_shell(['cat', f'/proc/{pid}/status'], 106 logging.warning(f'Process {pid} is no longer active') 114 logging.warning(f'Cannot find \'SigCgt:\' in /proc/{pid}/status') 126 f'couldn\'t find any process with handler for signal 37') 146 f'sleeping for {FLUSH_SLEEP} seconds for coverage to be written') 158 logging.info(f'flushing coverage for pids: {pids}') 166 f'sleeping for {FLUSH_SLEEP} seconds for coverage to be written') 175 logging.info(f'generating coverage report in {temp_dir}') 182 profdata = f'{temp_dir}/merged.profdata' 184 … f'{LLVM_PROFDATA_PATH} merge --failure-mode=all --output={profdata} {temp_dir}/trace/*.profraw', [all …]
|
D | stack | 60 f = sys.stdin 63 f = open(args.file, "r", errors='ignore') 65 lines = f.readlines() 66 f.close()
|
/development/tools/findunused/ |
D | find_unused_resources.rb | 56 def initialize(f, ln) argument 57 @file = f 182 unusedResources.unusedLayoutIds.sort { |id, file| id[1] <=> file[1] }.each {|f| 183 puts " #{f[0]} #{f[1]}" 188 unusedResources.unusedStringIds.sort { |id, file| id[1] <=> file[1] }.each {|f| 189 puts " #{f[0]} #{f[1]}" 199 unusedResourceIds.sort { |id, file| id[1] <=> file[1] }.each {|f| 200 puts "<tr><td><b>#{f[0]}</b></td> <td>#{f[1]}</td></tr>"
|
/development/gsi/build_with_kernel/ |
D | kernel_info_to_dist.sh | 49 for f in "${KERNEL_INFO_FILES[@]}"; do 52 [[ "$list_json" =~ "\"name\":\"${f}\"" ]] || continue 54 local output="${output_folder}/$(basename "$f")" 57 curl -sfL "${url_base}/raw/${f}" -o "$output"
|
D | download_kernels_prebults.sh | 40 for f in "${file_list[@]}"; do 41 wget "${download_url}/${f}" -O "${dist_base}/${f}"
|
D | repack_kernels_common.sh | 119 for x in $(find "${initramfs_root}" -type f -name "*.ko"); do 142 for f in ${list}; do 144 cp -f ${out_root}/$f ${prebuilts_dir} 145 cp -f ${out_root}/$f ${prebuilts_dir} 162 for x in $(find "${initramfs_root}" -type f -name "*.ko"); do
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
D | ColorMatrixSample.java | 56 float scale = contrast + 1.f; in setContrast() 57 float translate = (-.5f * scale + .5f) * 255.f; in setContrast() 66 float scale = contrast + 1.f; in setContrastTranslateOnly() 67 float translate = (-.5f * scale + .5f) * 255.f; in setContrastTranslateOnly() 76 float scale = contrast + 1.f; in setContrastScaleOnly() 77 float translate = (-.5f * scale + .5f) * 255.f; in setContrastScaleOnly() 103 float contrast = mAngle / 180.f; in onDraw()
|
/development/tools/axl/ |
D | chewperf.py | 12 f = open(sys.argv[1]).read() 13 rawLines = f.split('\n') 28 f = open(sys.argv[1]).read() 29 rawLines = f.split('\r\n') 46 f = open(sys.argv[1]).read() 47 rawLines = f.split('\n')
|
/development/tools/bugreport/src/com/android/bugreport/inspector/ |
D | Inspector.java | 205 final JavaStackFrameSnapshot f = (JavaStackFrameSnapshot)frame; in combineLocks() local 206 for (LockSnapshot lock: f.locks) { in combineLocks() 250 JavaStackFrameSnapshot f = (JavaStackFrameSnapshot)frame; in markOutgoingBinderThread() local 251 if (!("android.os".equals(f.packageName) in markOutgoingBinderThread() 252 && "BinderProxy".equals(f.className) in markOutgoingBinderThread() 253 && "transactNative".equals(f.methodName))) { in markOutgoingBinderThread() 266 f = (JavaStackFrameSnapshot)frame; in markOutgoingBinderThread() 267 if (!("android.os".equals(f.packageName) in markOutgoingBinderThread() 268 && "BinderProxy".equals(f.className) in markOutgoingBinderThread() 269 && "transact".equals(f.methodName))) { in markOutgoingBinderThread() [all …]
|
/development/cmds/monkey/src/com/android/commands/monkey/ |
D | MonkeyFlipEvent.java | 67 FileOutputStream f = new FileOutputStream("/dev/input/event0"); in injectEvent() local 68 f.write(mKeyboardOpen ? FLIP_0 : FLIP_1); in injectEvent() 69 f.close(); in injectEvent()
|
/development/samples/browseable/RenderScriptIntrinsic/src/com.example.android.renderscriptintrinsic/ |
D | MainActivity.java | 250 float f = 0.f; in getFilterParameter() local 254 final float min = 1.f; in getFilterParameter() 255 f = (float) ((max - min) * (i / 100.0) + min); in getFilterParameter() 259 final float max = 2.f; in getFilterParameter() 260 final float min = 0.f; in getFilterParameter() 261 f = (float) ((max - min) * (i / 100.0) + min); in getFilterParameter() 267 f = (float) ((max - min) * (i / 100.0) + min); in getFilterParameter() 271 return f; in getFilterParameter() 320 float f = getFilterParameter(progress); in updateImage() local 326 mLatestTask.execute(f); in updateImage() [all …]
|
/development/tools/winscope/src/adb/ |
D | winscope_proxy.py | 94 f"shell su root find {self.path} -name {self.matcher}", device_id) 106 … self.internal_matchers = list(map(lambda ext: FileMatcher(path, f'{matcher}{ext}', filetype), 153 File(f'/data/local/tmp/screen.mp4', "screen_recording"), 154 …f'screenrecord --bit-rate 8M /data/local/tmp/screen.mp4 >/dev/null 2>&1 &\necho "ScreenRecorder st… 165 FileMatcher(WINSCOPE_DIR, f'transaction_merges_*', "transaction_merges"), 223 return f'su root service call SurfaceFlinger 1033 i32 {self.flags}' 242 … return f'su root service call SurfaceFlinger 1029 i32 {self.selectedConfigs["sfbuffersize"]}' 263 return f'su root cmd window tracing size {self.selectedConfigs["wmbuffersize"]}' 266 return f'su root cmd window tracing level {self.selectedConfigs["tracinglevel"]}' 269 return f'su root cmd window tracing {self.selectedConfigs["tracingtype"]}' [all …]
|
/development/samples/training/multiscreen/newsreader/src/com/example/android/newsreader/ |
D | ArticleActivity.java | 57 ArticleFragment f = new ArticleFragment(); in onCreate() local 58 getSupportFragmentManager().beginTransaction().add(android.R.id.content, f).commit(); in onCreate() 62 f.displayArticle(article); in onCreate()
|
/development/tools/mkstubs/src/com/android/mkstubs/ |
D | SourceGenerator.java | 68 File f = new File(baseDir, name); in createWriter() local 69 f.getParentFile().mkdirs(); in createWriter() 71 mLog.debug("Writing " + f.getPath()); in createWriter() 73 return new FileWriter(f); in createWriter()
|
/development/tools/mkstubs/src/com/android/mkstubs/sourcer/ |
D | AccessSourcer.java | 100 for (Flag f : Flag.values()) { in write() 101 if ((f.getFilter() & filter) != 0 && (access & f.getValue()) != 0) { in write() 105 mOutput.write(f.toString()); in write()
|
/development/vndk/tools/image-diff-tool/ |
D | diff.py | 27 def sha1sum(f): argument 28 with open(f, "rb") as fin: 33 for f in sorted(apk.namelist()): 34 if f.startswith("META-INF/"): 36 l.append(hashlib.sha1(apk.read(f)).hexdigest()) 37 l.append(f) 81 with open(allowlist, "rb") as f: 82 for line in f: 109 with open(pathname, "rb") as f: 110 for line in f:
|
/development/tools/ndk/ndkabidump/ |
D | __init__.py | 41 logger().info(f"Building ABI dumps to {self.build_dir}") 54 logger().info(f"Copying ABI dump {dump} to {install_path}") 128 f"Source directory {args.src_dir} does not appear to be an " 129 f"Android source tree: {test_path} does not exist."
|