Home
last modified time | relevance | path

Searched refs:script (Results 1 – 25 of 124) sorted by relevance

12345

/frameworks/base/tools/localedata/
Dextract_icu_data.py122 for index, script in enumerate(all_scripts):
124 index, script[0], script[1], script[2], script[3])
134 script = likely_script_dict[locale]
137 all_scripts.index(script),
139 script)
145 _, script, _ = get_locale_parts(locale)
147 (ord(script[0]) << 24) |
148 (ord(script[1]) << 16) |
149 (ord(script[2]) << 8) |
150 ord(script[3]))
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/nitz/
DNitzStateMachineImplTest.java122 Script script = new Script() in test_countryThenNitz() local
127 script.countryReceived(networkCountryIsoCode); in test_countryThenNitz()
129 script.verifyOnlyTimeZoneWasSuggestedAndReset(expectedTimeZoneSuggestion1); in test_countryThenNitz()
135 script.nitzReceived(nitzSignal); in test_countryThenNitz()
139 script.verifyTimeAndTimeZoneSuggestedAndReset( in test_countryThenNitz()
164 Script script = new Script() in test_nitzThenCountry() local
169 script.nitzReceived(nitzSignal); in test_nitzThenCountry()
174 script.verifyTimeAndTimeZoneSuggestedAndReset( in test_nitzThenCountry()
181 script.countryReceived(networkCountryIsoCode) in test_nitzThenCountry()
194 Script script = new Script() in test_emptyCountryString_countryReceivedFirst() local
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/timezonedetector/
DTimeZoneDetectorStrategyImplTest.java97 Script script = new Script() in testEmptyTelephonySuggestions() local
101 script.suggestTelephonyTimeZone(slotIndex1TimeZoneSuggestion) in testEmptyTelephonySuggestions()
114 script.suggestTelephonyTimeZone(slotIndex2TimeZoneSuggestion) in testEmptyTelephonySuggestions()
139 Script script = new Script() in testTelephonySuggestionsWhenTimeZoneUninitialized() local
148 script.suggestTelephonyTimeZone(lowQualitySuggestion) in testTelephonySuggestionsWhenTimeZoneUninitialized()
165 script.suggestTelephonyTimeZone(goodQualitySuggestion) in testTelephonySuggestionsWhenTimeZoneUninitialized()
182 script.suggestTelephonyTimeZone(lowQualitySuggestion2) in testTelephonySuggestionsWhenTimeZoneUninitialized()
202 Script script = new Script(); in testTogglingAutoTimeZoneDetection() local
206 script.initializeAutoTimeZoneDetection(false) in testTogglingAutoTimeZoneDetection()
211 script.suggestTelephonyTimeZone(suggestion); in testTogglingAutoTimeZoneDetection()
[all …]
/frameworks/compile/libbcc/lib/
DCompiler.cpp221 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 …]
DRSCompilerDriver.cpp261 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/
DLocaleData.cpp48 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 …]
DLocale.cpp52 script[i++] = ::toupper(*script_chars); in set_script()
54 script[i++] = ::tolower(*script_chars); in set_script()
116 script[0]) { in InitFromFilterString()
241 memcpy(script, config.localeScript, sizeof(config.localeScript)); in InitFromResTable()
253 if (script[0]) { in WriteTo()
254 memcpy(out->localeScript, script, sizeof(out->localeScript)); in WriteTo()
/frameworks/minikin/libs/minikin/
DLayoutCore.cpp159 const hb_script_t script = hb_unicode_script(unicode_func, cp); in getScriptRun() local
160 if (script != current_script) { in getScriptRun()
162 current_script = script; in getScriptRun()
163 } else if (script == HB_SCRIPT_INHERITED || script == HB_SCRIPT_COMMON) { in getScriptRun()
182 static bool isScriptOkForLetterspacing(hb_script_t script) { in isScriptOkForLetterspacing() argument
183 return !(script == HB_SCRIPT_ARABIC || script == HB_SCRIPT_NKO || in isScriptOkForLetterspacing()
184 script == HB_SCRIPT_PSALTER_PAHLAVI || script == HB_SCRIPT_MANDAIC || in isScriptOkForLetterspacing()
185 script == HB_SCRIPT_MONGOLIAN || script == HB_SCRIPT_PHAGS_PA || in isScriptOkForLetterspacing()
186 script == HB_SCRIPT_DEVANAGARI || script == HB_SCRIPT_BENGALI || in isScriptOkForLetterspacing()
187 script == HB_SCRIPT_GURMUKHI || script == HB_SCRIPT_MODI || in isScriptOkForLetterspacing()
[all …]
DLocale.cpp101 constexpr uint32_t packScript(uint32_t script) { in packScript() argument
102 return packScript(script >> 24, (script >> 16) & 0xff, (script >> 8) & 0xff, script & 0xff); in packScript()
277 EmojiStyle Locale::scriptToEmojiStyle(uint32_t script) { in scriptToEmojiStyle() argument
279 if (script == packScript('Z', 's', 'y', 'e')) { in scriptToEmojiStyle()
281 } else if (script == packScript('Z', 's', 'y', 'm')) { in scriptToEmojiStyle()
288 uint8_t Locale::scriptToSubScriptBits(uint32_t script) { in scriptToSubScriptBits() argument
290 switch (script) { in scriptToSubScriptBits()
440 bool Locale::supportsHbScript(hb_script_t script) const { in supportsHbScript()
443 uint32_t packedScript = packScript(script); in supportsHbScript()
DHyphenator.cpp192 const UScriptCode script = uscript_getScript(static_cast<UChar32>(codePoint), &errorCode); in getScript() local
194 return script; in getScript()
205 const UScriptCode script = getScript(codePoint); in hyphenationTypeBasedOnScript() local
206 if (script == USCRIPT_KANNADA || script == USCRIPT_MALAYALAM || script == USCRIPT_TAMIL || in hyphenationTypeBasedOnScript()
207 script == USCRIPT_TELUGU) { in hyphenationTypeBasedOnScript()
210 } else if (script == USCRIPT_ARMENIAN) { in hyphenationTypeBasedOnScript()
212 } else if (script == USCRIPT_CANADIAN_ABORIGINAL) { in hyphenationTypeBasedOnScript()
/frameworks/rs/driver/
DrsdBcc.h32 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,
DrsdBcc.cpp38 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/
DAssignment.cpp79 LinkerScript& script = pModule.getScript(); in activate() local
83 script.assignments().push_back( in activate()
89 SectionMap::reference out = script.sectionMap().back(); in activate()
94 script.sectionMap().begin() + script.sectionMap().size() - 2; in activate()
125 script.assignments().push_back( in activate()
133 SectionMap::Output::reference in = script.sectionMap().back()->back(); in activate()
161 script.assignments().push_back( in activate()
DGroupCmd.cpp75 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()
DEntryCmd.cpp32 LinkerScript& script = pModule.getScript(); in activate() local
33 if (!script.hasEntry()) in activate()
34 script.setEntry(m_Entry); in activate()
DInputCmd.cpp86 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/
DrsDriverLoader.cpp60 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 …]
DrsScriptC.cpp55 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 …]
DrsHidlAdaptation.cpp721 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/compile/mclinker/unittests/
DLinkerTest.cpp49 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/rs/tests/java_api/Refocus/src/com/android/rs/test/
DRenderScriptTask.java26 enum script{f32, d1new}; enum in RenderScriptTask
30 private script mScript = script.d1new;
73 public RenderScriptTask(RenderScript renderScript, script sChoice) { in RenderScriptTask()
/frameworks/base/packages/services/PacProcessor/src/com/android/pacprocessor/
DPacNative.java36 private native boolean setProxyScriptNativeLocked(String script); in setProxyScriptNativeLocked() argument
72 public synchronized boolean setCurrentProxyScript(String script) { in setCurrentProxyScript() argument
73 if (setProxyScriptNativeLocked(script)) { in setCurrentProxyScript()
/frameworks/rs/support/jni/
Dandroid_renderscript_RenderScript.cpp1389 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/base/cmds/idmap2/
Dstatic-checks.sh106 script="$(readlink -f "$BASH_SOURCE")"
107 prefix="$(dirname "$script")"
127 echo "usage: $(basename $script) [--check|--fix|--help]"
/frameworks/compile/slang/
DREADME.rst147 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 …]

12345