/frameworks/ex/common/tests/src/com/android/common/ |
D | OperationSchedulerTest.java | 47 OperationScheduler.Options options = new OperationScheduler.Options(); in testScheduler() local 48 assertEquals(Long.MAX_VALUE, scheduler.getNextTimeMillis(options)); in testScheduler() 54 assertEquals(beforeTrigger + 1000000, scheduler.getNextTimeMillis(options)); in testScheduler() 58 assertEquals(beforeTrigger + 1000000, scheduler.getNextTimeMillis(options)); in testScheduler() 60 assertEquals(beforeTrigger + 1500000, scheduler.getNextTimeMillis(options)); in testScheduler() 64 assertEquals(Long.MAX_VALUE, scheduler.getNextTimeMillis(options)); in testScheduler() 66 assertEquals(beforeTrigger + 1500000, scheduler.getNextTimeMillis(options)); in testScheduler() 73 assertEquals(beforeTrigger + 1500000, scheduler.getNextTimeMillis(options)); in testScheduler() 74 options.backoffFixedMillis = 1000000; in testScheduler() 75 options.backoffIncrementalMillis = 500000; in testScheduler() [all …]
|
/frameworks/native/vulkan/vkjson/ |
D | vkjson_info.cc | 43 bool ParseOptions(int argc, char* argv[], Options* options) { in ParseOptions() argument 47 options->instance = true; in ParseOptions() 49 options->device_index = 0; in ParseOptions() 58 int result = sscanf(arg2.c_str(), "%u", &options->device_index); in ParseOptions() 60 options->device_index = static_cast<uint32_t>(-1); in ParseOptions() 65 options->device_name = arg2; in ParseOptions() 67 options->output_file = arg2; in ParseOptions() 74 if (options->instance && (options->device_index != unsignedNegOne || in ParseOptions() 75 !options->device_name.empty())) { in ParseOptions() 80 if (options->device_index != unsignedNegOne && !options->device_name.empty()) { in ParseOptions() [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | TaskLaunchParamsModifierTests.java | 160 ActivityOptions options = ActivityOptions.makeBasic(); in testUsesOptionsDisplayIdIfSet() local 161 options.setLaunchDisplayId(fullscreenDisplay.mDisplayId); in testUsesOptionsDisplayIdIfSet() 164 mActivity, source, options, mCurrent, mResult)); in testUsesOptionsDisplayIdIfSet() 180 ActivityOptions options = ActivityOptions.makeBasic(); in testUsesOptionsDisplayAreaTokenIfSet() local 181 options.setLaunchTaskDisplayArea(fullscreenDisplay.getDefaultTaskDisplayArea() in testUsesOptionsDisplayAreaTokenIfSet() 185 mActivity, source, options, mCurrent, mResult)); in testUsesOptionsDisplayAreaTokenIfSet() 270 final ActivityOptions options = ActivityOptions.makeBasic(); in testBoundsInOptionsInfersFreeformOnFreeformDisplay() local 271 options.setLaunchBounds(new Rect(0, 0, 100, 100)); in testBoundsInOptionsInfersFreeformOnFreeformDisplay() 276 mActivity, /* source */ null, options, mCurrent, mResult)); in testBoundsInOptionsInfersFreeformOnFreeformDisplay() 284 final ActivityOptions options = ActivityOptions.makeBasic(); in testBoundsInOptionsInfersFreeformWithResizeableActivity() local [all …]
|
/frameworks/base/tools/aapt2/link/ |
D | TableMerger_test.cpp | 93 TableMergerOptions options; in TEST_F() local 94 options.auto_add_overlay = false; in TEST_F() 95 TableMerger merger(context_.get(), &final_table, options); in TEST_F() 113 TableMergerOptions options; in TEST_F() local 114 options.auto_add_overlay = false; in TEST_F() 115 TableMerger merger(context_.get(), &final_table, options); in TEST_F() 171 TableMergerOptions options; in TEST_F() local 172 options.auto_add_overlay = false; in TEST_F() 173 TableMerger merger(context_.get(), &final_table, options); in TEST_F() 211 TableMergerOptions options; in TEST_F() local [all …]
|
/frameworks/compile/mclinker/lib/Target/ |
D | ELFDynamic.cpp | 95 if (m_Config.options().Bsymbolic()) in reserveEntries() 157 if (m_Config.options().hasOrigin()) in reserveEntries() 159 if (m_Config.options().Bsymbolic()) in reserveEntries() 161 if (m_Config.options().hasNow()) in reserveEntries() 169 if ((m_Config.options().hasNewDTags() && dt_flags != 0x0) || in reserveEntries() 176 if (m_Config.options().hasNow() || m_Config.options().hasLoadFltr() || in reserveEntries() 177 m_Config.options().hasOrigin() || m_Config.options().hasInterPose() || in reserveEntries() 178 m_Config.options().hasNoDefaultLib() || m_Config.options().hasNoDump() || in reserveEntries() 179 m_Config.options().Bgroup() || in reserveEntries() 181 (m_Config.options().hasNoDelete() || m_Config.options().hasInitFirst() || in reserveEntries() [all …]
|
/frameworks/base/core/tests/coretests/src/android/content/ |
D | ContentCaptureOptionsTest.java | 58 ContentCaptureOptions options = new ContentCaptureOptions(null); in testIsWhitelisted_nullWhitelistedComponents() local 59 assertThat(options.isWhitelisted(mContext)).isTrue(); in testIsWhitelisted_nullWhitelistedComponents() 64 ContentCaptureOptions options = new ContentCaptureOptions(toSet((ComponentName) null)); in testIsWhitelisted_emptyWhitelistedComponents() local 65 assertThat(options.isWhitelisted(mContext)).isFalse(); in testIsWhitelisted_emptyWhitelistedComponents() 70 ContentCaptureOptions options = new ContentCaptureOptions(toSet(mComp1, mComp2)); in testIsWhitelisted_notWhitelisted() local 71 assertThat(options.isWhitelisted(mContext)).isFalse(); in testIsWhitelisted_notWhitelisted() 76 ContentCaptureOptions options = new ContentCaptureOptions(toSet(mComp1, mContextComponent)); in testIsWhitelisted_whitelisted() local 77 assertThat(options.isWhitelisted(mContext)).isTrue(); in testIsWhitelisted_whitelisted() 82 ContentCaptureOptions options = new ContentCaptureOptions(toSet(mContextComponent)); in testIsWhitelisted_invalidContext() local 84 assertThat(options.isWhitelisted(invalidContext)).isFalse(); in testIsWhitelisted_invalidContext() [all …]
|
/frameworks/base/services/accessibility/ |
D | TEST_MAPPING | 5 "options": [ 16 "options": [ 27 "options": [ 38 "options": [ 49 "options": [ 60 "options": [ 85 "options": [ 93 "options": [ 101 "options": [
|
/frameworks/ex/common/java/com/android/common/ |
D | OperationScheduler.java | 106 public static Options parseOptions(String spec, Options options) in parseOptions() argument 116 options.backoffFixedMillis = parseSeconds(pieces[0]); in parseOptions() 119 options.backoffIncrementalMillis = parseSeconds(pieces[1]); in parseOptions() 122 options.backoffExponentialMillis = (int)parseSeconds(pieces[2]); in parseOptions() 125 options.maxMoratoriumMillis = parseSeconds(param.substring(4)); in parseOptions() 127 options.minTriggerMillis = parseSeconds(param.substring(4)); in parseOptions() 129 options.periodicIntervalMillis = parseSeconds(param.substring(7)); in parseOptions() 131 options.periodicIntervalMillis = parseSeconds(param); in parseOptions() 134 return options; in parseOptions() 150 public long getNextTimeMillis(Options options) { in getNextTimeMillis() argument [all …]
|
/frameworks/base/tools/dump-coverage/ |
D | dump_coverage.cc | 149 static tuple<std::string, std::string> SplitOnColon(const std::string& options) { in SplitOnColon() argument 150 size_t loc_delim = options.find(':'); in SplitOnColon() 154 command = options; in SplitOnColon() 156 command = options.substr(0, loc_delim); in SplitOnColon() 157 args = options.substr(loc_delim + 1, options.length()); in SplitOnColon() 164 static jint ParseOptionsAndExecuteCommand(const std::string& options) { in ParseOptionsAndExecuteCommand() argument 165 auto split = SplitOnColon(options); in ParseOptionsAndExecuteCommand() 183 static jint AgentStart(JavaVM* vm, char* options) { in AgentStart() argument 187 return ParseOptionsAndExecuteCommand(options); in AgentStart() 192 Agent_OnAttach(JavaVM* vm, char* options, void* reserved ATTRIBUTE_UNUSED) { in Agent_OnAttach() argument [all …]
|
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/ui/ |
D | Utils.java | 97 BitmapFactory.Options options, int reqWidth, int reqHeight) { in calculateInSampleSize() argument 99 final int height = options.outHeight; in calculateInSampleSize() 100 final int width = options.outWidth; in calculateInSampleSize() 123 final BitmapFactory.Options options = new BitmapFactory.Options(); in decodeSampledBitmapFromResource() local 124 options.inJustDecodeBounds = true; in decodeSampledBitmapFromResource() 125 BitmapFactory.decodeResource(res, resId, options); in decodeSampledBitmapFromResource() 128 options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight); in decodeSampledBitmapFromResource() 131 options.inJustDecodeBounds = false; in decodeSampledBitmapFromResource() 132 return BitmapFactory.decodeResource(res, resId, options); in decodeSampledBitmapFromResource()
|
/frameworks/base/tests/JankBench/scripts/ |
D | runall.py | 17 options, categories = parser.parse_args(argv[1:]) 18 return (options, categories) 56 options, categories = parse_options(sys.argv) 57 if options.clear: 58 print options.device 59 clear_data(options.device) 61 start_benchmark(options.device, options.trace)
|
/frameworks/base/core/java/android/window/ |
D | TaskEmbedder.java | 356 final ActivityOptions options = prepareActivityOptions(null); in startActivity() local 357 mContext.startActivity(intent, options.toBundle()); in startActivity() 369 final ActivityOptions options = prepareActivityOptions(null); in startActivity() local 370 mContext.startActivityAsUser(intent, options.toBundle(), user); in startActivity() 381 final ActivityOptions options = prepareActivityOptions(null); in startActivity() local 385 options.toBundle()); in startActivity() 401 @NonNull ActivityOptions options) { in startActivity() argument 402 prepareActivityOptions(options); in startActivity() 406 options.toBundle()); in startActivity() 425 @NonNull ActivityOptions options, @Nullable Rect sourceBounds) { in startShortcutActivity() argument [all …]
|
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/ |
D | RenderScriptTask.java | 86 public Bitmap applyRefocusFilter(DepthOfFieldOptions options) { in applyRefocusFilter() argument 88 prepareRefocusFilter(options); in applyRefocusFilter() 120 private void prepareRefocusFilter(DepthOfFieldOptions options) { in prepareRefocusFilter() argument 122 options.rgbz.getDepthTransform(), options.focalDepth, in prepareRefocusFilter() 123 options.depthOfField, options.blurInfinity, NUM_BLENDING_LAYERS); in prepareRefocusFilter() 125 rgbdImage = options.rgbz.getBitmap(); in prepareRefocusFilter()
|
D | MainActivity.java | 74 DepthOfFieldOptions options; in onCreate() local 108 options = new DepthOfFieldOptions(rgbz); in onCreate() 109 options.setFocusPoint(0.5f, 0.5f); in onCreate() 110 options.setBokeh(0.025f); in onCreate() 112 task = new RsTaskParams(this, renderScript, options); in onCreate() 124 options = new DepthOfFieldOptions(rgbz); in onCreate() 125 options.setFocusPoint(0.2f, 0.167f); in onCreate() 126 options.setBokeh(2.0f); in onCreate() 127 options.setDepthOfField(0.005f); in onCreate() 129 task = new RsTaskParams(this, renderScript, options); in onCreate() [all …]
|
/frameworks/base/libs/hwui/jni/ |
D | BitmapRegionDecoder.cpp | 120 jint inputY, jint inputWidth, jint inputHeight, jobject options, jlong inBitmapHandle, in nativeDecodeRegion() argument 131 if (NULL != options) { in nativeDecodeRegion() 132 sampleSize = env->GetIntField(options, gOptions_sampleSizeFieldID); in nativeDecodeRegion() 133 jobject jconfig = env->GetObjectField(options, gOptions_configFieldID); in nativeDecodeRegion() 136 requireUnpremul = !env->GetBooleanField(options, gOptions_premultipliedFieldID); in nativeDecodeRegion() 137 javaBitmap = env->GetObjectField(options, gOptions_bitmapFieldID); in nativeDecodeRegion() 143 env->SetIntField(options, gOptions_widthFieldID, -1); in nativeDecodeRegion() 144 env->SetIntField(options, gOptions_heightFieldID, -1); in nativeDecodeRegion() 145 env->SetObjectField(options, gOptions_mimeFieldID, 0); in nativeDecodeRegion() 146 env->SetObjectField(options, gOptions_outConfigFieldID, 0); in nativeDecodeRegion() [all …]
|
D | BitmapFactory.cpp | 174 jobject padding, jobject options, jlong inBitmapHandle, in doDecode() argument 188 if (options != NULL) { in doDecode() 189 sampleSize = env->GetIntField(options, gOptions_sampleSizeFieldID); in doDecode() 196 if (env->GetBooleanField(options, gOptions_justBoundsFieldID)) { in doDecode() 201 env->SetIntField(options, gOptions_widthFieldID, -1); in doDecode() 202 env->SetIntField(options, gOptions_heightFieldID, -1); in doDecode() 203 env->SetObjectField(options, gOptions_mimeFieldID, 0); in doDecode() 204 env->SetObjectField(options, gOptions_outConfigFieldID, 0); in doDecode() 205 env->SetObjectField(options, gOptions_outColorSpaceFieldID, 0); in doDecode() 207 jobject jconfig = env->GetObjectField(options, gOptions_configFieldID); in doDecode() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | SafeActivityOptions.java | 80 public SafeActivityOptions(@Nullable ActivityOptions options) { in SafeActivityOptions() argument 83 mOriginalOptions = options; in SafeActivityOptions() 91 public void setCallerOptions(@Nullable ActivityOptions options) { in setCallerOptions() argument 94 mCallerOptions = options; in setCallerOptions() 139 private void setCallingPidUidForRemoteAnimationAdapter(ActivityOptions options, in setCallingPidUidForRemoteAnimationAdapter() argument 141 final RemoteAnimationAdapter adapter = options.getRemoteAnimationAdapter(); in setCallingPidUidForRemoteAnimationAdapter() 168 static void abort(@Nullable SafeActivityOptions options) { in abort() argument 169 if (options != null) { in abort() 170 options.abort(); in abort() 195 ActivityOptions options, int callingPid, int callingUid) { in checkPermissions() argument [all …]
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/ |
D | ActivityOptionsCompat.java | 45 final ActivityOptions options = ActivityOptions.makeBasic(); in makeSplitScreenOptions() local 46 options.setLaunchWindowingMode(isPrimary in makeSplitScreenOptions() 49 options.setSplitScreenCreateMode(dockTopLeft in makeSplitScreenOptions() 52 return options; in makeSplitScreenOptions() 59 final ActivityOptions options = ActivityOptions.makeBasic(); in makeFreeformOptions() local 60 options.setLaunchWindowingMode(WINDOWING_MODE_FREEFORM); in makeFreeformOptions() 61 return options; in makeFreeformOptions()
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | TEST_MAPPING | 5 "options": [ 19 "options": [ 33 "options": [ 47 "options": [ 58 "options": [ 68 "options": [ 76 "options": [
|
/frameworks/base/startop/scripts/iorap/generated/ |
D | TraceFile_pb2.py | 42 options=None), 49 options=None), 56 options=None, 80 options=None), 87 options=None, 111 options=None), 118 options=None), 125 options=None, 149 options=None), 156 options=None, [all …]
|
/frameworks/base/startop/scripts/iorap/ |
D | compile_handcrafted_file.py | 243 options= parse_options() 244 _debug = options.debug 245 _debug_print("parsed options: ", options) 247 if not options.input: 251 input_file = open(options.input) 252 _debug_print("input = (file)", options.input) 254 if not options.output_proto_binary: 257 output_proto_file = open(options.output_proto_binary, 'wb') 260 pinlist_meta_parent = options.pinlist_meta_parent 261 if options.pinlist_meta: [all …]
|
/frameworks/base/core/java/com/android/server/ |
D | NetworkManagementSocketTagger.java | 76 final SocketTags options = threadSocketTags.get(); in tag() local 79 + Integer.toHexString(options.statsTag) + ", statsUid=" + options.statsUid); in tag() 81 if (options.statsTag == -1 && StrictMode.vmUntaggedSocketEnabled()) { in tag() 85 tagSocketFd(fd, options.statsTag, options.statsUid); in tag() 110 final SocketTags options = threadSocketTags.get(); in unTagSocketFd() local 111 if (options.statsTag == -1 && options.statsUid == -1) return; in unTagSocketFd()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageDexOptimizer.java | 138 PackageDexUsage.PackageUseInfo packageUseInfo, DexoptOptions options) { in performDexOpt() argument 154 packageStats, packageUseInfo, options); in performDexOpt() 168 PackageDexUsage.PackageUseInfo packageUseInfo, DexoptOptions options) { in performDexOptLI() argument 221 if (options.getSplitName() != null) { in performDexOptLI() 224 if (!options.getSplitName().equals(new File(path).getName())) { in performDexOptLI() 233 if (options.isDexoptInstallWithDexMetadata()) { in performDexOptLI() 239 final boolean isUsedByOtherApps = options.isDexoptAsSharedLibrary() in performDexOptLI() 242 options.getCompilerFilter(), isUsedByOtherApps); in performDexOptLI() 243 final boolean profileUpdated = options.isCheckForProfileUpdates() && in performDexOptLI() 248 final int dexoptFlags = getDexFlags(pkg, pkgSetting, compilerFilter, options); in performDexOptLI() [all …]
|
/frameworks/base/core/java/android/content/ |
D | AutofillOptions.java | 138 final AutofillOptions options = new AutofillOptions( in forWhitelistingItself() local 140 options.augmentedAutofillEnabled = true; in forWhitelistingItself() 142 Log.i(TAG, "forWhitelistingItself(" + packageName + "): " + options); in forWhitelistingItself() 144 return options; in forWhitelistingItself() 200 final AutofillOptions options = new AutofillOptions(loggingLevel, compatMode); 201 options.augmentedAutofillEnabled = parcel.readBoolean(); 202 options.whitelistedActivitiesForAugmentedAutofill = 204 options.appDisabledExpiration = parcel.readLong(); 207 options.disabledActivities = new ArrayMap<>(); 209 options.disabledActivities.put(parcel.readString(), parcel.readLong()); [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/permission/ |
D | TEST_MAPPING | 5 "options": [ 22 "options": [ 30 "options": [ 41 "options": [ 51 "options": [ 59 "options": [
|