Home
last modified time | relevance | path

Searched refs:variant (Results 1 – 25 of 288) sorted by relevance

12345678910>>...12

/external/webkit/Source/WebKit/win/
DCOMVariantSetter.h48 static void setVariant(VARIANT* variant, const WTF::String& value)
50 ASSERT(V_VT(variant) == VT_EMPTY);
52 V_VT(variant) = VariantType;
53 V_BSTR(variant) = WebCore::BString(value).release();
61 static void setVariant(VARIANT* variant, bool value)
63 ASSERT(V_VT(variant) == VT_EMPTY);
65 V_VT(variant) = VariantType;
66 V_BOOL(variant) = value;
74 static void setVariant(VARIANT* variant, unsigned long long value)
76 ASSERT(V_VT(variant) == VT_EMPTY);
[all …]
/external/webkit/Source/WebCore/bridge/
Dnpruntime.cpp84 void NPN_InitializeVariantWithStringCopy(NPVariant* variant, const NPString* value) in NPN_InitializeVariantWithStringCopy() argument
86 variant->type = NPVariantType_String; in NPN_InitializeVariantWithStringCopy()
87 variant->value.stringValue.UTF8Length = value->UTF8Length; in NPN_InitializeVariantWithStringCopy()
88variant->value.stringValue.UTF8Characters = (NPUTF8 *)malloc(sizeof(NPUTF8) * value->UTF8Length); in NPN_InitializeVariantWithStringCopy()
89 if (!variant->value.stringValue.UTF8Characters) in NPN_InitializeVariantWithStringCopy()
91 …memcpy((void*)variant->value.stringValue.UTF8Characters, value->UTF8Characters, sizeof(NPUTF8) * v… in NPN_InitializeVariantWithStringCopy()
94 void _NPN_ReleaseVariantValue(NPVariant* variant) in _NPN_ReleaseVariantValue() argument
96 ASSERT(variant); in _NPN_ReleaseVariantValue()
98 if (variant->type == NPVariantType_Object) { in _NPN_ReleaseVariantValue()
99 _NPN_ReleaseObject(variant->value.objectValue); in _NPN_ReleaseVariantValue()
[all …]
Dtestbindings.cpp141 void setDoubleValue (MyObject *obj, const NPVariant *variant) in setDoubleValue() argument
143 if (!NPN_VariantToDouble (variant, &obj->doubleValue)) { in setDoubleValue()
152 void setIntValue (MyObject *obj, const NPVariant *variant) in setIntValue() argument
154 if (!NPN_VariantToInt32 (variant, &obj->intValue)) { in setIntValue()
163 void setStringValue (MyObject *obj, const NPVariant *variant) in setStringValue() argument
166 NPN_InitializeVariantWithVariant (&obj->stringValue, variant); in setStringValue()
169 void setBooleanValue (MyObject *obj, const NPVariant *variant) in setBooleanValue() argument
171 if (!NPN_VariantToBool (variant, (NPBool *)&obj->boolValue)) { in setBooleanValue()
180 void getDoubleValue (MyObject *obj, NPVariant *variant) in getDoubleValue() argument
182 NPN_InitializeVariantWithDouble (variant, obj->doubleValue); in getDoubleValue()
[all …]
/external/valgrind/main/VEX/priv/
Dhost_s390_defs.c509 addHRegUse(u, HRmRead, op.variant.reg); in s390_opnd_RMI_get_reg_usage()
513 s390_amode_get_reg_usage(u, op.variant.am); in s390_opnd_RMI_get_reg_usage()
533 addHRegUse(u, HRmWrite, insn->variant.load.dst); in s390_insn_get_reg_usage()
534 s390_amode_get_reg_usage(u, insn->variant.load.src); in s390_insn_get_reg_usage()
538 addHRegUse(u, HRmWrite, insn->variant.load_immediate.dst); in s390_insn_get_reg_usage()
542 addHRegUse(u, HRmRead, insn->variant.store.src); in s390_insn_get_reg_usage()
543 s390_amode_get_reg_usage(u, insn->variant.store.dst); in s390_insn_get_reg_usage()
547 addHRegUse(u, HRmRead, insn->variant.move.src); in s390_insn_get_reg_usage()
548 addHRegUse(u, HRmWrite, insn->variant.move.dst); in s390_insn_get_reg_usage()
552 s390_opnd_RMI_get_reg_usage(u, insn->variant.cond_move.src); in s390_insn_get_reg_usage()
[all …]
/external/webkit/Source/WebKit2/WebProcess/Plugins/Netscape/
DNPRuntimeObjectMap.cpp114 …VariantToJSValue(JSC::ExecState* exec, JSC::JSGlobalObject* globalObject, const NPVariant& variant) in convertNPVariantToJSValue() argument
116 switch (variant.type) { in convertNPVariantToJSValue()
124 return jsBoolean(variant.value.boolValue); in convertNPVariantToJSValue()
127 return jsNumber(variant.value.intValue); in convertNPVariantToJSValue()
130 return jsNumber(variant.value.doubleValue); in convertNPVariantToJSValue()
133 …return jsString(exec, String::fromUTF8WithLatin1Fallback(variant.value.stringValue.UTF8Characters, in convertNPVariantToJSValue()
134variant.value.stringValue.UTF8Length)); in convertNPVariantToJSValue()
136 return getOrCreateJSObject(globalObject, variant.value.objectValue); in convertNPVariantToJSValue()
143 …d NPRuntimeObjectMap::convertJSValueToNPVariant(ExecState* exec, JSValue value, NPVariant& variant) in convertJSValueToNPVariant() argument
147 VOID_TO_NPVARIANT(variant); in convertJSValueToNPVariant()
[all …]
DNPRuntimeUtilities.cpp108 void releaseNPVariantValue(NPVariant* variant) in releaseNPVariantValue() argument
110 ASSERT(variant); in releaseNPVariantValue()
112 switch (variant->type) { in releaseNPVariantValue()
122 npnMemFree(const_cast<NPUTF8*>(variant->value.stringValue.UTF8Characters)); in releaseNPVariantValue()
123 variant->value.stringValue.UTF8Characters = 0; in releaseNPVariantValue()
124 variant->value.stringValue.UTF8Length = 0; in releaseNPVariantValue()
127 releaseNPObject(variant->value.objectValue); in releaseNPVariantValue()
128 variant->value.objectValue = 0; in releaseNPVariantValue()
132 variant->type = NPVariantType_Void; in releaseNPVariantValue()
/external/e2fsprogs/lib/uuid/
Dtst_uuid.c79 int type, variant; in main() local
89 type = uuid_type(buf); variant = uuid_variant(buf); in main()
90 printf("UUID type = %d, UUID variant = %d\n", type, variant); in main()
91 if (variant != UUID_VARIANT_DCE) { in main()
105 type = uuid_type(buf); variant = uuid_variant(buf); in main()
106 printf("UUID type = %d, UUID variant = %d\n", type, variant); in main()
107 if (variant != UUID_VARIANT_DCE) { in main()
126 type = uuid_type(buf); variant = uuid_variant(buf); in main()
127 printf("UUID type = %d, UUID variant = %d\n", type, variant); in main()
128 if (variant != UUID_VARIANT_DCE) { in main()
Duuid_time.c104 static const char *variant_string(int variant) in variant_string() argument
106 switch (variant) { in variant_string()
125 int type, variant; in main() local
135 variant = uuid_variant(buf); in main()
139 printf("UUID variant is %d (%s)\n", variant, variant_string(variant)); in main()
140 if (variant != UUID_VARIANT_DCE) { in main()
/external/llvm/examples/OCaml-Kaleidoscope/Chapter7/
Dast.ml7 (* variant for numeric literals like "1.0". *)
10 (* variant for referencing a variable, like "a". *)
13 (* variant for a unary operator. *)
16 (* variant for a binary operator. *)
19 (* variant for function calls. *)
22 (* variant for if/then/else. *)
25 (* variant for for/in. *)
28 (* variant for var/in. *)
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/
DUUIDTest.java33 assertEquals(2, uuid.variant()); in test_ConstructorJJ()
88 assertEquals(0, uuid.variant()); in test_variant()
90 assertEquals(0, uuid.variant()); in test_variant()
92 assertEquals(0, uuid.variant()); in test_variant()
94 assertEquals(0, uuid.variant()); in test_variant()
97 assertEquals(2, uuid.variant()); in test_variant()
99 assertEquals(2, uuid.variant()); in test_variant()
101 assertEquals(2, uuid.variant()); in test_variant()
103 assertEquals(2, uuid.variant()); in test_variant()
106 assertEquals(6, uuid.variant()); in test_variant()
[all …]
/external/svox/pico/compat/src/com/android/tts/compat/
DSynthProxy.java94 public int isLanguageAvailable(String language, String country, String variant) { in isLanguageAvailable() argument
95 return native_isLanguageAvailable(mJniData, language, country, variant); in isLanguageAvailable()
108 public int setLanguage(String language, String country, String variant) { in setLanguage() argument
109 return native_setLanguage(mJniData, language, country, variant); in setLanguage()
115 public int loadLanguage(String language, String country, String variant) { in loadLanguage() argument
116 return native_loadLanguage(mJniData, language, country, variant); in loadLanguage()
171 String country, String variant); in native_isLanguageAvailable() argument
174 String variant); in native_setLanguage() argument
177 String variant); in native_loadLanguage() argument
DCompatTtsService.java94 protected int onIsLanguageAvailable(String lang, String country, String variant) { in onIsLanguageAvailable() argument
95 if (DBG) Log.d(TAG, "onIsLanguageAvailable(" + lang + "," + country + "," + variant + ")"); in onIsLanguageAvailable()
97 return mNativeSynth.isLanguageAvailable(lang, country, variant); in onIsLanguageAvailable()
101 protected int onLoadLanguage(String lang, String country, String variant) { in onLoadLanguage() argument
102 if (DBG) Log.d(TAG, "onLoadLanguage(" + lang + "," + country + "," + variant + ")"); in onLoadLanguage()
103 int result = onIsLanguageAvailable(lang, country, variant); in onLoadLanguage()
105 mNativeSynth.setLanguage(lang, country, variant); in onLoadLanguage()
121 String variant = request.getVariant(); in onSynthesizeText() local
122 if (mNativeSynth.setLanguage(lang, country, variant) != TextToSpeech.SUCCESS) { in onSynthesizeText()
123 Log.e(TAG, "setLanguage(" + lang + "," + country + "," + variant + ") failed"); in onSynthesizeText()
/external/webkit/Source/WebKit/qt/tests/qwebpage/
Dtst_qwebpage.cpp506 QVariant variant("string test"); in modified() local
507 m_page->history()->currentItem().setUserData(variant); in modified()
1590 QVariant variant = page->inputMethodQuery(Qt::ImMicroFocus); in inputMethods() local
1591 QRect focusRect = variant.toRect(); in inputMethods()
1592 QVERIFY(inputs.at(0).geometry().contains(variant.toRect().topLeft())); in inputMethods()
1595 variant = page->inputMethodQuery(Qt::ImFont); in inputMethods()
1596 QFont font = variant.value<QFont>(); in inputMethods()
1616 variant = page->inputMethodQuery(Qt::ImMaximumTextLength); in inputMethods()
1617 QCOMPARE(20, variant.toInt()); in inputMethods()
1625 variant = page->inputMethodQuery(Qt::ImAnchorPosition); in inputMethods()
[all …]
/external/llvm/examples/OCaml-Kaleidoscope/Chapter6/
Dast.ml7 (* variant for numeric literals like "1.0". *)
10 (* variant for referencing a variable, like "a". *)
13 (* variant for a unary operator. *)
16 (* variant for a binary operator. *)
19 (* variant for function calls. *)
22 (* variant for if/then/else. *)
25 (* variant for for/in. *)
/external/icu4c/i18n/
Dtransreg.cpp681 UnicodeString source, target, variant; in remove() local
683 TransliteratorIDParser::IDtoSTV(ID, source, target, variant, sawSource); in remove()
686 TransliteratorIDParser::STVtoID(source, target, variant, id); in remove()
688 removeSTV(source, target, variant); in remove()
865 const UnicodeString& variant, in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
873 TransliteratorIDParser::STVtoID(source, target, variant, ID); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
874 registerEntry(ID, s, target, variant, adopted, visible); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
883 UnicodeString source, target, variant; in registerEntry() local
885 TransliteratorIDParser::IDtoSTV(ID, source, target, variant, sawSource); in registerEntry()
888 TransliteratorIDParser::STVtoID(source, target, variant, id); in registerEntry()
[all …]
Dtransreg.h366 UnicodeString& variant);
370 const UnicodeString& variant) const;
374 const UnicodeString& variant);
378 const UnicodeString& variant,
383 const UnicodeString& variant,
394 const UnicodeString& variant,
400 const UnicodeString& variant);
404 const UnicodeString& variant);
Dtridpars.cpp55 variant = v; in Specs()
548 UnicodeString& variant, in IDtoSTV() argument
552 variant.truncate(0); in IDtoSTV()
564 id.extractBetween(var, id.length(), variant); in IDtoSTV()
572 id.extractBetween(var, id.length(), variant); in IDtoSTV()
579 id.extractBetween(var, sep++, variant); in IDtoSTV()
583 if (variant.length() > 0) { in IDtoSTV()
584 variant.remove(0, 1); in IDtoSTV()
595 const UnicodeString& variant, in STVtoID() argument
602 if (variant.length() != 0) { in STVtoID()
[all …]
/external/llvm/examples/OCaml-Kaleidoscope/Chapter5/
Dast.ml7 (* variant for numeric literals like "1.0". *)
10 (* variant for referencing a variable, like "a". *)
13 (* variant for a binary operator. *)
16 (* variant for function calls. *)
19 (* variant for if/then/else. *)
22 (* variant for for/in. *)
/external/webkit/Source/WebCore/bindings/v8/
Dnpruntime.cpp247 void _NPN_ReleaseVariantValue(NPVariant* variant) in _NPN_ReleaseVariantValue() argument
249 ASSERT(variant); in _NPN_ReleaseVariantValue()
251 if (variant->type == NPVariantType_Object) { in _NPN_ReleaseVariantValue()
252 _NPN_ReleaseObject(variant->value.objectValue); in _NPN_ReleaseVariantValue()
253 variant->value.objectValue = 0; in _NPN_ReleaseVariantValue()
254 } else if (variant->type == NPVariantType_String) { in _NPN_ReleaseVariantValue()
255 free((void*)variant->value.stringValue.UTF8Characters); in _NPN_ReleaseVariantValue()
256 variant->value.stringValue.UTF8Characters = 0; in _NPN_ReleaseVariantValue()
257 variant->value.stringValue.UTF8Length = 0; in _NPN_ReleaseVariantValue()
260 variant->type = NPVariantType_Void; in _NPN_ReleaseVariantValue()
[all …]
DV8NPUtils.cpp79 v8::Handle<v8::Value> convertNPVariantToV8Object(const NPVariant* variant, NPObject* npobject) in convertNPVariantToV8Object() argument
81 NPVariantType type = variant->type; in convertNPVariantToV8Object()
85 return v8::Integer::New(NPVARIANT_TO_INT32(*variant)); in convertNPVariantToV8Object()
87 return v8::Number::New(NPVARIANT_TO_DOUBLE(*variant)); in convertNPVariantToV8Object()
89 return NPVARIANT_TO_BOOLEAN(*variant) ? v8::True() : v8::False(); in convertNPVariantToV8Object()
95 NPString src = NPVARIANT_TO_STRING(*variant); in convertNPVariantToV8Object()
99 NPObject* obj = NPVARIANT_TO_OBJECT(*variant); in convertNPVariantToV8Object()
/external/webkit/Source/WebCore/bridge/c/
Dc_utility.cpp114 JSValue convertNPVariantToValue(ExecState* exec, const NPVariant* variant, RootObject* rootObject) in convertNPVariantToValue() argument
118 NPVariantType type = variant->type; in convertNPVariantToValue()
121 return jsBoolean(NPVARIANT_TO_BOOLEAN(*variant)); in convertNPVariantToValue()
127 return jsNumber(NPVARIANT_TO_INT32(*variant)); in convertNPVariantToValue()
129 return jsNumber(NPVARIANT_TO_DOUBLE(*variant)); in convertNPVariantToValue()
131 return WebCore::jsString(exec, convertNPStringToUTF16(&variant->value.stringValue)); in convertNPVariantToValue()
133 NPObject* obj = variant->value.objectValue; in convertNPVariantToValue()
Dc_runtime.cpp70 NPVariant variant; in setValueToInstance() local
71 convertValueToNPVariant(exec, aValue, &variant); in setValueToInstance()
75 obj->_class->setProperty(obj, _fieldIdentifier, &variant); in setValueToInstance()
79 _NPN_ReleaseVariantValue(&variant); in setValueToInstance()
/external/webkit/Tools/Scripts/
Dcheck-for-global-initializers45 my $variant = $ENV{'CURRENT_VARIANT'};
50 $variant = "normal" if !$variant; # for Xcode 2.1, which does not have CURRENT_VARIANT
58 my $list = $ENV{"LINK_FILE_LIST_${variant}_${arch}"};
100 if ($configuration eq "Debug" or $variant eq "debug" or $debugRoot) {
/external/webkit/Source/WebKit2/Shared/Plugins/
DNPRemoteObjectMap.cpp92 NPVariantData NPRemoteObjectMap::npVariantToNPVariantData(const NPVariant& variant, Plugin* plugin) in npVariantToNPVariantData() argument
94 switch (variant.type) { in npVariantToNPVariantData()
102 return NPVariantData::makeBool(variant.value.boolValue); in npVariantToNPVariantData()
105 return NPVariantData::makeInt32(variant.value.intValue); in npVariantToNPVariantData()
108 return NPVariantData::makeDouble(variant.value.doubleValue); in npVariantToNPVariantData()
111 …return NPVariantData::makeString(variant.value.stringValue.UTF8Characters, variant.value.stringVal… in npVariantToNPVariantData()
114 NPObject* npObject = variant.value.objectValue; in npVariantToNPVariantData()
/external/webkit/Tools/DumpRenderTree/TestNetscapePlugIn/
DPluginObject.cpp252 static NPUTF8* createCStringFromNPVariant(const NPVariant* variant) in createCStringFromNPVariant() argument
254 size_t length = NPVARIANT_TO_STRING(*variant).UTF8Length; in createCStringFromNPVariant()
256 memcpy(result, NPVARIANT_TO_STRING(*variant).UTF8Characters, length); in createCStringFromNPVariant()
349 static bool pluginSetProperty(NPObject* obj, NPIdentifier name, const NPVariant* variant) in pluginSetProperty() argument
353 plugin->eventLogging = NPVARIANT_TO_BOOLEAN(*variant); in pluginSetProperty()
357 plugin->logDestroy = NPVARIANT_TO_BOOLEAN(*variant); in pluginSetProperty()
361 plugin->returnErrorFromNewStream = NPVARIANT_TO_BOOLEAN(*variant); in pluginSetProperty()
365 plugin->returnNegativeOneFromWrite = NPVARIANT_TO_BOOLEAN(*variant); in pluginSetProperty()
373 … browser->setvalue(plugin->npp, NPPVpluginWindowBool, (void *)NPVARIANT_TO_BOOLEAN(*variant)); in pluginSetProperty()
403 static NPIdentifier stringVariantToIdentifier(NPVariant variant) in stringVariantToIdentifier() argument
[all …]

12345678910>>...12