/frameworks/base/services/tests/timetests/src/com/android/server/timedetector/ |
D | TimeDetectorStrategyImplTest.java | 235 Script script = new Script().simulateConfigurationInternalChange(CONFIG_AUTO_ENABLED) in testSuggestTelephonyTime_autoTimeEnabled() local 242 script.generateTelephonyTimeSuggestion(slotIndex, testTime); in testSuggestTelephonyTime_autoTimeEnabled() 243 script.simulateTimePassing() in testSuggestTelephonyTime_autoTimeEnabled() 247 script.calculateTimeInMillisForNow(timeSuggestion.getUnixEpochTime()); in testSuggestTelephonyTime_autoTimeEnabled() 248 script.verifySystemClockConfidence(TIME_CONFIDENCE_HIGH) in testSuggestTelephonyTime_autoTimeEnabled() 255 Script script = new Script().simulateConfigurationInternalChange(CONFIG_AUTO_ENABLED) in testSuggestTelephonyTime_emptySuggestionIgnored() local 260 script.generateTelephonyTimeSuggestion(slotIndex, null); in testSuggestTelephonyTime_emptySuggestionIgnored() 261 script.simulateTelephonyTimeSuggestion(timeSuggestion) in testSuggestTelephonyTime_emptySuggestionIgnored() 275 Script script = new Script().simulateConfigurationInternalChange(configInternal); in testSuggestTelephonyTime_systemClockThreshold() local 282 script.generateTelephonyTimeSuggestion(slotIndex, ARBITRARY_TEST_TIME); in testSuggestTelephonyTime_systemClockThreshold() [all …]
|
/frameworks/minikin/libs/minikin/ |
D | LetterSpacingUtils.h | 30 inline bool isLetterSpacingCapableScript(hb_script_t script) { in isLetterSpacingCapableScript() argument 31 return !(script == HB_SCRIPT_ARABIC || script == HB_SCRIPT_NKO || in isLetterSpacingCapableScript() 32 script == HB_SCRIPT_PSALTER_PAHLAVI || script == HB_SCRIPT_MANDAIC || in isLetterSpacingCapableScript() 33 script == HB_SCRIPT_MONGOLIAN || script == HB_SCRIPT_PHAGS_PA || in isLetterSpacingCapableScript() 34 script == HB_SCRIPT_DEVANAGARI || script == HB_SCRIPT_BENGALI || in isLetterSpacingCapableScript() 35 script == HB_SCRIPT_GURMUKHI || script == HB_SCRIPT_MODI || in isLetterSpacingCapableScript() 36 script == HB_SCRIPT_SHARADA || script == HB_SCRIPT_SYLOTI_NAGRI || in isLetterSpacingCapableScript() 37 script == HB_SCRIPT_TIRHUTA || script == HB_SCRIPT_OGHAM); in isLetterSpacingCapableScript() 41 hb_script_t script = hb_unicode_script(hb_unicode_funcs_get_default(), cp); in isLetterSpacingCapableCodePoint() local 42 return isLetterSpacingCapableScript(script); in isLetterSpacingCapableCodePoint()
|
D | Locale.cpp | 113 constexpr uint32_t packScript(uint32_t script) { in packScript() argument 114 return packScript(script >> 24, (script >> 16) & 0xff, (script >> 8) & 0xff, script & 0xff); in packScript() 264 EmojiStyle Locale::scriptToEmojiStyle(uint32_t script) { in scriptToEmojiStyle() argument 266 if (script == packScript('Z', 's', 'y', 'e')) { in scriptToEmojiStyle() 268 } else if (script == packScript('Z', 's', 'y', 'm')) { in scriptToEmojiStyle() 275 uint8_t Locale::scriptToSubScriptBits(uint32_t script) { in scriptToSubScriptBits() argument 277 switch (script) { in scriptToSubScriptBits() 462 bool Locale::supportsScript(uint32_t script) const { in supportsScript() 465 uint32_t packedScript = packScript(script); in supportsScript()
|
/frameworks/base/services/tests/timetests/src/com/android/server/timezonedetector/ |
D | TimeZoneDetectorStrategyImplTest.java | 411 Script script = new Script() in testEmptyTelephonySuggestions() local 416 script.simulateTelephonyTimeZoneSuggestion(slotIndex1TimeZoneSuggestion) in testEmptyTelephonySuggestions() 423 script.verifyLatestQualifiedTelephonySuggestionReceived( in testEmptyTelephonySuggestions() 429 script.simulateTelephonyTimeZoneSuggestion(slotIndex2TimeZoneSuggestion) in testEmptyTelephonySuggestions() 436 script.verifyLatestQualifiedTelephonySuggestionReceived( in testEmptyTelephonySuggestions() 458 Script script = new Script() in testTelephonySuggestionsWhenTimeZoneUninitialized() local 467 script.simulateTelephonyTimeZoneSuggestion(lowQualitySuggestion) in testTelephonySuggestionsWhenTimeZoneUninitialized() 474 script.verifyLatestQualifiedTelephonySuggestionReceived( in testTelephonySuggestionsWhenTimeZoneUninitialized() 484 script.simulateTelephonyTimeZoneSuggestion(goodQualitySuggestion) in testTelephonySuggestionsWhenTimeZoneUninitialized() 491 script.verifyLatestQualifiedTelephonySuggestionReceived( in testTelephonySuggestionsWhenTimeZoneUninitialized() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/nitz/ |
D | NitzStateMachineImplTest.java | 117 Script script = new Script() in test_countryThenNitz() local 122 script.countryReceived(networkCountryIsoCode); in test_countryThenNitz() 124 script.verifyOnlyTimeZoneWasSuggestedAndReset(expectedTimeZoneSuggestion1); in test_countryThenNitz() 131 script.nitzReceived(nitzSignal); in test_countryThenNitz() 135 script.verifyTimeAndTimeZoneSuggestedAndReset( in test_countryThenNitz() 161 Script script = new Script() in test_nitzThenCountry() local 166 script.nitzReceived(nitzSignal); in test_nitzThenCountry() 171 script.verifyTimeAndTimeZoneSuggestedAndReset( in test_nitzThenCountry() 179 script.countryReceived(networkCountryIsoCode) in test_nitzThenCountry() 193 Script script = new Script() in test_emptyCountryString_countryReceivedFirst() local [all …]
|
/frameworks/base/tools/localedata/ |
D | extract_icu_data.py | 125 for index, script in enumerate(all_scripts): 127 index, script[0], script[1], script[2], script[3])) 137 script = likely_script_dict[locale] 140 all_scripts.index(script), 142 script)) 148 _, script, _ = get_locale_parts(locale) 150 (ord(script[0]) << 24) | 151 (ord(script[1]) << 16) | 152 (ord(script[2]) << 8) | 153 ord(script[3])) [all …]
|
/frameworks/compile/libbcc/lib/ |
D | Compiler.cpp | 221 enum Compiler::ErrorCode Compiler::runPasses(Script &script, in runPasses() argument 235 addDebugInfoPass(script, transformPasses); in runPasses() 238 if (!addInternalizeSymbolsPass(script, transformPasses)) in runPasses() 241 addGlobalInfoPass(script, transformPasses); in runPasses() 279 if (script.getEmbedInfo()) in runPasses() 283 transformPasses.run(script.getSource().getModule()); in runPasses() 296 codeGenPasses.run(script.getSource().getModule()); in runPasses() 301 enum Compiler::ErrorCode Compiler::compile(Script &script, in compile() argument 304 llvm::Module &module = script.getSource().getModule(); in compile() 326 if (script.isStructExplicitlyPaddedBySlang()) { in compile() [all …]
|
D | RSCompilerDriver.cpp | 261 Script script(source); in build() local 262 script.setOptimizationLevel(getConfig()->getOptimizationLevel()); in build() 267 script.setLinkRuntimeCallback(getLinkRuntimeCallback()); in build() 269 script.setEmbedGlobalInfo(mEmbedGlobalInfo); in build() 270 script.setEmbedGlobalInfoSkipConstant(mEmbedGlobalInfoSkipConstant); in build() 274 script.setOptimizationLevel(static_cast<llvm::CodeGenOpt::Level>( in build() 294 Compiler::ErrorCode status = compileScript(script, pResName, in build() 404 Script script(source.get()); in buildScriptGroup() local 407 script.setEmbedInfo(true); in buildScriptGroup() 410 script.setOptimizationLevel(llvm::CodeGenOpt::Level::Aggressive); in buildScriptGroup() [all …]
|
/frameworks/base/libs/androidfw/ |
D | LocaleData.cpp | 48 uint32_t findParent(uint32_t packed_locale, const char* script) { in findParent() argument 51 if (memcmp(script, SCRIPT_PARENTS[i].script, SCRIPT_LENGTH) == 0) { in findParent() 78 uint32_t packed_locale, const char* script, in findAncestors() argument 91 ancestor = findParent(ancestor, script); in findAncestors() 98 const char* script, in findDistance() argument 104 supported, script, in findDistance() 114 inline bool isRepresentative(uint32_t language_and_region, const char* script) { in isRepresentative() argument 117 (((uint64_t) script[0]) << 24u) | in isRepresentative() 118 (((uint64_t) script[1]) << 16u) | in isRepresentative() 119 (((uint64_t) script[2]) << 8u) | in isRepresentative() [all …]
|
D | Locale.cpp | 53 safe_transform_copy(script_chars, script, in set_script() 109 script[0]) { in InitFromFilterString() 231 static_assert(sizeof(ResTable_config::localeScript) == sizeof(LocaleValue::script)); 238 memcpy(script, config.localeScript, sizeof(config.localeScript)); in InitFromResTable() 250 if (script[0]) { in WriteTo() 251 memcpy(out->localeScript, script, sizeof(out->localeScript)); in WriteTo()
|
/frameworks/minikin/tests/unittest/ |
D | ScriptUtilsTest.cpp | 26 Result(int start, int end, hb_script_t script) : start(start), end(end), script(script) {} in Result() 29 hb_script_t script; member 33 return l.start == r.start && l.end == r.end && l.script == r.script; in operator ==() 38 buf[0] = static_cast<char>((r.script >> 24) & 0xFF); in operator <<() 39 buf[1] = static_cast<char>((r.script >> 16) & 0xFF); in operator <<() 40 buf[2] = static_cast<char>((r.script >> 8) & 0xFF); in operator <<() 41 buf[3] = static_cast<char>((r.script) & 0xFF); in operator <<() 47 for (const auto [range, script] : ScriptText(text, start, end)) { in splitByScript() 48 result.emplace_back(range.getStart(), range.getEnd(), script); in splitByScript()
|
/frameworks/rs/driver/ |
D | rsdBcc.h | 32 android::renderscript::Script *script, 65 android::renderscript::Script *script); 67 android::renderscript::Script *script); 69 android::renderscript::Script *script); 92 const android::renderscript::Script *script, 97 const android::renderscript::Script *script, 102 android::renderscript::Script *script); 106 const android::renderscript::Script *script, 110 const android::renderscript::Script *script,
|
D | rsdBcc.cpp | 38 ScriptC *script, in rsdScriptInit() argument 46 dc->mCpuRef->createScript(script, resName, cacheDir, bitcode, in rsdScriptInit() 51 script->mHal.drv = cs; in rsdScriptInit() 52 cs->populateScript(script); in rsdScriptInit() 181 const Script *script, in rsdScriptUpdateCachedObject() argument 184 obj->p = script; in rsdScriptUpdateCachedObject()
|
/frameworks/compile/mclinker/lib/Script/ |
D | Assignment.cpp | 79 LinkerScript& script = pModule.getScript(); in activate() local 83 script.assignments().push_back(std::make_pair(nullptr, *this)); in activate() 88 SectionMap::reference out = script.sectionMap().back(); in activate() 93 script.sectionMap().begin() + script.sectionMap().size() - 2; in activate() 124 script.assignments().push_back(std::make_pair(nullptr, *this)); in activate() 131 SectionMap::Output::reference in = script.sectionMap().back()->back(); in activate() 158 script.assignments().push_back(std::make_pair(nullptr, *this)); in activate()
|
D | GroupCmd.cpp | 75 LinkerScript& script = pModule.getScript(); in activate() local 99 if (script.hasSysroot() && in activate() 101 path = script.sysroot(); in activate() 109 script.directories().find(token->name(), Input::Script); in activate() 130 path = script.directories().find(token->name(), Input::Archive); in activate() 134 path = script.directories().find(token->name(), Input::DynObj); in activate() 139 path = script.directories().find(token->name(), Input::Archive); in activate()
|
D | EntryCmd.cpp | 32 LinkerScript& script = pModule.getScript(); in activate() local 33 if (!script.hasEntry()) in activate() 34 script.setEntry(m_Entry); in activate()
|
D | InputCmd.cpp | 86 LinkerScript& script = pModule.getScript(); in activate() local 110 if (script.hasSysroot() && in activate() 112 path = script.sysroot(); in activate() 120 script.directories().find(token->name(), Input::Script); in activate() 141 path = script.directories().find(token->name(), Input::Archive); in activate() 145 path = script.directories().find(token->name(), Input::DynObj); in activate() 150 path = script.directories().find(token->name(), Input::Archive); in activate()
|
/frameworks/rs/ |
D | rsDriverLoader.cpp | 60 ret &= fn(RS_HAL_SCRIPT_INIT, (void **)&rsc->mHal.funcs.script.init); in LoadHalTable() 61 ret &= fn(RS_HAL_SCRIPT_INIT_INTRINSIC, (void **)&rsc->mHal.funcs.script.initIntrinsic); in LoadHalTable() 62 ret &= fn(RS_HAL_SCRIPT_INVOKE_FUNCTION, (void **)&rsc->mHal.funcs.script.invokeFunction); in LoadHalTable() 63 ret &= fn(RS_HAL_SCRIPT_INVOKE_ROOT, (void **)&rsc->mHal.funcs.script.invokeRoot); in LoadHalTable() 64 ret &= fn(RS_HAL_SCRIPT_INVOKE_FOR_EACH, (void **)&rsc->mHal.funcs.script.invokeForEach); in LoadHalTable() 65 ret &= fn(RS_HAL_SCRIPT_INVOKE_REDUCE, (void **)&rsc->mHal.funcs.script.invokeReduce); in LoadHalTable() 66 ret &= fn(RS_HAL_SCRIPT_INVOKE_INIT, (void **)&rsc->mHal.funcs.script.invokeInit); in LoadHalTable() 67 …ret &= fn(RS_HAL_SCRIPT_INVOKE_FREE_CHILDREN, (void **)&rsc->mHal.funcs.script.invokeFreeChildren); in LoadHalTable() 68 ret &= fn(RS_HAL_SCRIPT_SET_GLOBAL_VAR, (void **)&rsc->mHal.funcs.script.setGlobalVar); in LoadHalTable() 69 ret &= fn(RS_HAL_SCRIPT_GET_GLOBAL_VAR, (void **)&rsc->mHal.funcs.script.getGlobalVar); in LoadHalTable() [all …]
|
D | rsScriptC.cpp | 55 mRSC->mHal.funcs.script.invokeFreeChildren(mRSC, this); in ~ScriptC() 56 mRSC->mHal.funcs.script.destroy(mRSC, this); in ~ScriptC() 125 rsc->mHal.funcs.script.setGlobalBind(rsc, this, ct, mSlots[ct].get()); in setupScript() 161 ret = rsc->mHal.funcs.script.invokeRoot(rsc, this); in run() 206 if (rsc->mHal.funcs.script.invokeForEachMulti != nullptr) { in runForEach() 207 rsc->mHal.funcs.script.invokeForEachMulti(rsc, this, slot, ains, inLen, in runForEach() 211 rsc->mHal.funcs.script.invokeForEach(rsc, this, slot, ains[0], aout, in runForEach() 238 rsc->mHal.funcs.script.invokeReduce(rsc, this, slot, ains, inLen, aout, sc); in runReduce() 255 rsc->mHal.funcs.script.invokeFunction(rsc, this, slot, data, len); in Invoke() 355 if (!rsc->mHal.funcs.script.init(rsc, this, resName, cacheDir, bitcode, bitcodeLen, 0)) { in runCompiler() [all …]
|
D | rsHidlAdaptation.cpp | 721 void RsHidlAdaptation::ScriptBindAllocation (RsContext context, RsScript script, RsAllocation alloc… in ScriptBindAllocation() argument 723 uint64_t _script = (uint64_t)(uintptr_t)script; in ScriptBindAllocation() 729 void RsHidlAdaptation::ScriptSetTimeZone (RsContext context, RsScript script, const char* timezone,… in ScriptSetTimeZone() argument 731 uint64_t _script = (uint64_t)(uintptr_t)script; in ScriptSetTimeZone() 736 void RsHidlAdaptation::ScriptInvoke (RsContext context, RsScript script, uint32_t slot) in ScriptInvoke() argument 738 uint64_t _script = (uint64_t)(uintptr_t)script; in ScriptInvoke() 743 void RsHidlAdaptation::ScriptInvokeV (RsContext context, RsScript script, uint32_t slot, const void… in ScriptInvokeV() argument 745 uint64_t _script = (uint64_t)(uintptr_t)script; in ScriptInvokeV() 752 void RsHidlAdaptation::ScriptForEach (RsContext context, RsScript script, uint32_t slot, in ScriptForEach() argument 763 ScriptForEachMulti(context, script, slot, vains, inLen, vaout, params, paramLen, sc, scLen); in ScriptForEach() [all …]
|
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/ |
D | RenderScriptTask.java | 26 enum script{f32, d1new}; enum in RenderScriptTask 30 private script mScript = script.d1new; 73 public RenderScriptTask(RenderScript renderScript, script sChoice) { in RenderScriptTask()
|
/frameworks/compile/mclinker/unittests/ |
D | LinkerTest.cpp | 49 LinkerScript script; in TEST_F() local 50 Module module("test", script); in TEST_F() 54 linker.emulate(script, config); in TEST_F() 77 LinkerScript script; in TEST_F() local 85 script.directories().insert(search_dir); in TEST_F() 89 linker.emulate(script, config); in TEST_F() 95 Module module("libplasma.so", script); in TEST_F() 341 LinkerScript script; in TEST_F() local 345 linker.emulate(script, config); in TEST_F() 350 Module module(script); in TEST_F()
|
/frameworks/base/cmds/idmap2/ |
D | static-checks.sh | 107 script="$(readlink -f "$BASH_SOURCE")" 108 prefix="$(dirname "$script")" 128 echo "usage: $(basename $script) [--check|--fix|--help]"
|
/frameworks/rs/support/jni/ |
D | android_renderscript_RenderScript.cpp | 1389 nScriptBindAllocation(JNIEnv *_env, jobject _this, jlong con, jlong script, jlong alloc, jint slot,… in nScriptBindAllocation() argument 1392 (RsContext)con, (RsScript)script, (RsAllocation)alloc, slot); in nScriptBindAllocation() 1394 … dispatchTabInc.ScriptBindAllocation((RsContext)con, (RsScript)script, (RsAllocation)alloc, slot); in nScriptBindAllocation() 1396 … dispatchTab.ScriptBindAllocation((RsContext)con, (RsScript)script, (RsAllocation)alloc, slot); in nScriptBindAllocation() 1401 nScriptSetVarI(JNIEnv *_env, jobject _this, jlong con, jlong script, jint slot, jint val, jboolean … in nScriptSetVarI() argument 1404 (void *)script, slot, val); in nScriptSetVarI() 1406 dispatchTabInc.ScriptSetVarI((RsContext)con, (RsScript)script, slot, val); in nScriptSetVarI() 1408 dispatchTab.ScriptSetVarI((RsContext)con, (RsScript)script, slot, val); in nScriptSetVarI() 1413 nScriptSetVarObj(JNIEnv *_env, jobject _this, jlong con, jlong script, jint slot, jlong val, jboole… in nScriptSetVarObj() argument 1416 (void *)script, slot, val); in nScriptSetVarObj() [all …]
|
/frameworks/compile/slang/ |
D | README.rst | 147 to the functions and global variables within a script. In summary, 148 global variables and functions within a script that are not declared 150 to set the data within a script and call its functions. 242 * In terms of a script's global functions, they can be called from Java. 246 may call the runtime finish() method, which will wait for all the script 250 * The function **init** (if present) will be called once after the script 252 script may need before it can be used. The init function may not depend 259 will be called when a script must redraw its contents. No 261 called. It will only be called if the script is bound as a graphics root. 263 other invocations from Java. Thus the script will not change due [all …]
|