Searched refs:bundle (Results 1 - 25 of 98) sorted by relevance

1234

/external/webkit/Source/WebKit/mac/Misc/
H A DWebLocalizableStrings.mm44 NSBundle *bundle;
52 bundle = mainBundle;
54 bundle = stringsBundle->bundle;
55 if (bundle == nil) {
56 bundle = [NSBundle bundleWithIdentifier:[NSString stringWithUTF8String:stringsBundle->identifier]];
57 ASSERT(bundle);
58 stringsBundle->bundle = bundle;
63 NSString *result = [bundle localizedStringForKe
[all...]
H A DWebLocalizableStrings.h39 NSBundle *bundle; member in struct:__anon12142
47 NSString *WebLocalizedString(WebLocalizableStringsBundle *bundle, const char *key);
49 CFStringRef WebLocalizedString(WebLocalizableStringsBundle *bundle, const char *key);
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/
H A DResourceBundleTest.java78 ResourceBundle bundle;
81 bundle = ResourceBundle.getBundle(name, new Locale("fr", "FR", "VAR"));
82 assertEquals("Wrong value parent4", "frFRVARValue4", bundle
84 assertEquals("Wrong value parent3", "frFRValue3", bundle
86 assertEquals("Wrong value parent2", "frValue2", bundle
88 assertEquals("Wrong value parent1", "parentValue1", bundle
90 assertEquals("Wrong value child3", "frFRVARChildValue3", bundle
92 assertEquals("Wrong value child2", "frFRVARChildValue2", bundle
94 assertEquals("Wrong value child1", "frFRVARChildValue1", bundle
118 private ResourceBundle bundle; field in class:ResourceBundleTest
[all...]
H A DSampleBundleClass.java28 private static ResourceBundle bundle; field in class:SampleBundleClass
37 bundle = ResourceBundle.getBundle("tests.api.simple.SampleBundleClass");
40 bundle = null;
H A DListResourceBundleTest.java33 ResourceBundle bundle;
36 bundle = ResourceBundle.getBundle(name, new Locale("fr", "FR", "VAR"));
37 Enumeration<String> keys = bundle.getKeys();
58 hyts_resource_fr_FR bundle = (hyts_resource_fr_FR) ResourceBundle
62 Set<String> set = bundle.handleKeySet();
68 set = bundle.keySet();
80 hyts_resource_fr_FR bundle = (hyts_resource_fr_FR) ResourceBundle
85 bundle.handleGetObject(null);
/external/webkit/Source/WebKit2/WebProcess/InjectedBundle/
H A DInjectedBundleClient.cpp33 void InjectedBundleClient::didCreatePage(InjectedBundle* bundle, WebPage* page) argument
38 m_client.didCreatePage(toAPI(bundle), toAPI(page), m_client.clientInfo);
41 void InjectedBundleClient::willDestroyPage(InjectedBundle* bundle, WebPage* page) argument
46 m_client.willDestroyPage(toAPI(bundle), toAPI(page), m_client.clientInfo);
49 void InjectedBundleClient::didInitializePageGroup(InjectedBundle* bundle, WebPageGroupProxy* pageGroup) argument
54 m_client.didInitializePageGroup(toAPI(bundle), toAPI(pageGroup), m_client.clientInfo);
57 void InjectedBundleClient::didReceiveMessage(InjectedBundle* bundle, const String& messageName, APIObject* messageBody) argument
62 m_client.didReceiveMessage(toAPI(bundle), toAPI(messageName.impl()), toAPI(messageBody), m_client.clientInfo);
/external/webkit/Tools/TestWebKitAPI/
H A DInjectedBundleMain.cpp34 void WKBundleInitialize(WKBundleRef bundle, WKTypeRef initializationUserData) argument
36 TestWebKitAPI::InjectedBundleController::shared().initialize(bundle, initializationUserData);
H A DInjectedBundleController.cpp48 void InjectedBundleController::initialize(WKBundleRef bundle, WKTypeRef initializationUserData) argument
50 m_bundle = bundle;
70 initializeTestNamed(bundle, Util::toSTD(testName), userData);
73 void InjectedBundleController::didCreatePage(WKBundleRef bundle, WKBundlePageRef page, const void* clientInfo) argument
77 self->m_currentTest->didCreatePage(bundle, page);
80 void InjectedBundleController::willDestroyPage(WKBundleRef bundle, WKBundlePageRef page, const void* clientInfo) argument
84 self->m_currentTest->willDestroyPage(bundle, page);
87 void InjectedBundleController::didInitializePageGroup(WKBundleRef bundle, WKBundlePageGroupRef pageGroup, const void* clientInfo) argument
91 self->m_currentTest->didInitializePageGroup(bundle, pageGroup);
94 void InjectedBundleController::didReceiveMessage(WKBundleRef bundle, WKStringRe argument
109 initializeTestNamed(WKBundleRef bundle, const std::string& identifier, WKTypeRef userData) argument
[all...]
/external/webkit/Tools/WebKitTestRunner/InjectedBundle/
H A DInjectedBundleMain.cpp36 void WKBundleInitialize(WKBundleRef bundle, WKTypeRef initializationUserData) argument
38 WTR::InjectedBundle::shared().initialize(bundle, initializationUserData);
H A DGCController.cpp55 WKBundleGarbageCollectJavaScriptObjects(InjectedBundle::shared().bundle());
60 WKBundleGarbageCollectJavaScriptObjectsOnAlternateThreadForDebugging(InjectedBundle::shared().bundle(), waitUntilDone);
65 return WKBundleGetJavaScriptObjectsCount(InjectedBundle::shared().bundle());
/external/webkit/Source/WebKit2/WebProcess/InjectedBundle/API/c/
H A DWKBundlePrivate.h39 WK_EXPORT void WKBundleSetShouldTrackVisitedLinks(WKBundleRef bundle, bool shouldTrackVisitedLinks);
40 WK_EXPORT void WKBundleRemoveAllVisitedLinks(WKBundleRef bundle);
41 WK_EXPORT void WKBundleActivateMacFontAscentHack(WKBundleRef bundle);
42 WK_EXPORT void WKBundleGarbageCollectJavaScriptObjects(WKBundleRef bundle);
43 WK_EXPORT void WKBundleGarbageCollectJavaScriptObjectsOnAlternateThreadForDebugging(WKBundleRef bundle, bool waitUntilDone);
44 WK_EXPORT size_t WKBundleGetJavaScriptObjectsCount(WKBundleRef bundle);
58 WK_EXPORT void WKBundleAddUserScript(WKBundleRef bundle, WKBundlePageGroupRef pageGroup, WKBundleScriptWorldRef scriptWorld, WKStringRef source, WKURLRef url, WKArrayRef whitelist, WKArrayRef blacklist, WKUserScriptInjectionTime injectionTime, WKUserContentInjectedFrames injectedFrames);
59 WK_EXPORT void WKBundleAddUserStyleSheet(WKBundleRef bundle, WKBundlePageGroupRef pageGroup, WKBundleScriptWorldRef scriptWorld, WKStringRef source, WKURLRef url, WKArrayRef whitelist, WKArrayRef blacklist, WKUserContentInjectedFrames injectedFrames);
60 WK_EXPORT void WKBundleRemoveUserScript(WKBundleRef bundle, WKBundlePageGroupRef pageGroup, WKBundleScriptWorldRef scriptWorld, WKURLRef url);
61 WK_EXPORT void WKBundleRemoveUserStyleSheet(WKBundleRef bundle, WKBundlePageGroupRe
[all...]
H A DWKBundle.h37 typedef void (*WKBundleDidCreatePageCallback)(WKBundleRef bundle, WKBundlePageRef page, const void* clientInfo);
38 typedef void (*WKBundleWillDestroyPageCallback)(WKBundleRef bundle, WKBundlePageRef page, const void* clientInfo);
39 typedef void (*WKBundleDidInitializePageGroupCallback)(WKBundleRef bundle, WKBundlePageGroupRef pageGroup, const void* clientInfo);
40 typedef void (*WKBundleDidReceiveMessageCallback)(WKBundleRef bundle, WKStringRef name, WKTypeRef messageBody, const void* clientInfo);
54 WK_EXPORT void WKBundleSetClient(WKBundleRef bundle, WKBundleClient * client);
56 WK_EXPORT void WKBundlePostMessage(WKBundleRef bundle, WKStringRef messageName, WKTypeRef messageBody);
57 WK_EXPORT void WKBundlePostSynchronousMessage(WKBundleRef bundle, WKStringRef messageName, WKTypeRef messageBody, WKTypeRef* returnData);
/external/webkit/Source/WebCore/platform/network/win/
H A DDownloadBundleWin.cpp54 LOG_ERROR("Invalid resume data to write to bundle path");
58 LOG_ERROR("Cannot write resume data to empty download bundle path");
63 FILE* bundle = 0; local
64 if (_wfopen_s(&bundle, nullifiedPath.charactersWithNullTermination(), TEXT("ab")) || !bundle) {
81 if (fwrite(resumeBytes, 1, resumeLength, bundle) != resumeLength) {
82 LOG_ERROR("Failed to write resume data to the bundle - errno(%i)", errno);
86 if (fwrite(&resumeLength, 4, 1, bundle) != 1) {
87 LOG_ERROR("Failed to write footer length to the bundle - errno(%i)", errno);
92 if (fwrite(&magic, 4, 1, bundle) !
112 FILE* bundle = 0; local
[all...]
/external/icu4c/tools/genrb/
H A Dreslist.c30 * Align binary data at a 16-byte offset from the start of the resource bundle,
53 * for use in non-error cases when no resource is to be added to the bundle.
101 bundle_compactStrings(struct SRBRoot *bundle, UErrorCode *status);
110 res_write16(struct SRBRoot *bundle, struct SResource *res,
124 * before actually writing the bundle contents to the file,
129 struct SRBRoot *bundle, struct SResource *res,
139 struct SRBRoot *bundle, struct SResource *res,
143 reserve16BitUnits(struct SRBRoot *bundle, int32_t length, UErrorCode *status) { argument
147 if ((bundle->f16BitUnitsLength + length) > bundle
184 mapKey(struct SRBRoot *bundle, int32_t oldpos) argument
204 makeKey16(struct SRBRoot *bundle, int32_t key) argument
218 string_write16(struct SRBRoot *bundle, struct SResource *res, UErrorCode *status) argument
232 array_write16(struct SRBRoot *bundle, struct SResource *res, UErrorCode *status) argument
264 table_write16(struct SRBRoot *bundle, struct SResource *res, UErrorCode *status) argument
338 res_write16(struct SRBRoot *bundle, struct SResource *res, UErrorCode *status) argument
374 string_preWrite(uint32_t *byteOffset, struct SRBRoot *bundle, struct SResource *res, UErrorCode *status) argument
383 bin_preWrite(uint32_t *byteOffset, struct SRBRoot *bundle, struct SResource *res, UErrorCode *status) argument
398 array_preWrite(uint32_t *byteOffset, struct SRBRoot *bundle, struct SResource *res, UErrorCode *status) argument
414 table_preWrite(uint32_t *byteOffset, struct SRBRoot *bundle, struct SResource *res, UErrorCode *status) argument
437 res_preWrite(uint32_t *byteOffset, struct SRBRoot *bundle, struct SResource *res, UErrorCode *status) argument
491 string_write(UNewDataMemory *mem, uint32_t *byteOffset, struct SRBRoot *bundle, struct SResource *res, UErrorCode *status) argument
502 alias_write(UNewDataMemory *mem, uint32_t *byteOffset, struct SRBRoot *bundle, struct SResource *res, UErrorCode *status) argument
511 array_write(UNewDataMemory *mem, uint32_t *byteOffset, struct SRBRoot *bundle, struct SResource *res, UErrorCode *status) argument
533 intvector_write(UNewDataMemory *mem, uint32_t *byteOffset, struct SRBRoot *bundle, struct SResource *res, UErrorCode *status) argument
544 bin_write(UNewDataMemory *mem, uint32_t *byteOffset, struct SRBRoot *bundle, struct SResource *res, UErrorCode *status) argument
563 table_write(UNewDataMemory *mem, uint32_t *byteOffset, struct SRBRoot *bundle, struct SResource *res, UErrorCode *status) argument
602 res_write(UNewDataMemory *mem, uint32_t *byteOffset, struct SRBRoot *bundle, struct SResource *res, UErrorCode *status) argument
647 bundle_write(struct SRBRoot *bundle, const char *outputDir, const char *outputPkg, char *writtenFilename, int writtenFilenameLen, UErrorCode *status) argument
835 res_open(struct SRBRoot *bundle, const char *tag, const struct UString* comment, UErrorCode* status) argument
867 table_open(struct SRBRoot *bundle, const char *tag, const struct UString* comment, UErrorCode *status) argument
877 array_open(struct SRBRoot *bundle, const char *tag, const struct UString* comment, UErrorCode *status) argument
901 string_open(struct SRBRoot *bundle, char *tag, const UChar *value, int32_t len, const struct UString* comment, UErrorCode *status) argument
969 alias_open(struct SRBRoot *bundle, char *tag, UChar *value, int32_t len, const struct UString* comment, UErrorCode *status) argument
994 intvector_open(struct SRBRoot *bundle, char *tag, const struct UString* comment, UErrorCode *status) argument
1011 int_open(struct SRBRoot *bundle, char *tag, int32_t value, const struct UString* comment, UErrorCode *status) argument
1023 bin_open(struct SRBRoot *bundle, const char *tag, uint32_t length, uint8_t *data, const char* fileName, const struct UString* comment, UErrorCode *status) argument
1059 struct SRBRoot *bundle; local
1210 bundle_close(struct SRBRoot *bundle, UErrorCode *status) argument
1220 bundle_closeString(struct SRBRoot *bundle, struct SResource *string) argument
1326 bundle_setlocale(struct SRBRoot *bundle, UChar *locale, UErrorCode *status) argument
1349 getKeyString(const struct SRBRoot *bundle, int32_t key) argument
1358 res_getKeyString(const struct SRBRoot *bundle, const struct SResource *res, char temp[8]) argument
1366 bundle_getKeyBytes(struct SRBRoot *bundle, int32_t *pLength) argument
1372 bundle_addKeyBytes(struct SRBRoot *bundle, const char *keyBytes, int32_t length, UErrorCode *status) argument
1404 bundle_addtag(struct SRBRoot *bundle, const char *tag, UErrorCode *status) argument
1440 const struct SRBRoot *bundle=(const struct SRBRoot *)context; local
1477 bundle_compactKeys(struct SRBRoot *bundle, UErrorCode *status) argument
1631 string_writeUTF16v2(struct SRBRoot *bundle, struct SResource *res, int32_t utf16Length) argument
1660 bundle_compactStrings(struct SRBRoot *bundle, UErrorCode *status) argument
[all...]
H A Dreslist.h40 /* Resource bundle root table */
69 void bundle_write(struct SRBRoot *bundle, const char *outputDir, const char *outputPkg, char *writtenFilename, int writtenFilenameLen, UErrorCode *status);
72 void bundle_write_java(struct SRBRoot *bundle, const char *outputDir, const char* outputEnc, char *writtenFilename,
77 /* void bundle_write_xml(struct SRBRoot *bundle, const char *outputDir,const char* outputEnc,
81 void bundle_write_xml(struct SRBRoot *bundle, const char *outputDir,const char* outputEnc, const char* rbname,
84 void bundle_close(struct SRBRoot *bundle, UErrorCode *status);
85 void bundle_setlocale(struct SRBRoot *bundle, UChar *locale, UErrorCode *status);
86 int32_t bundle_addtag(struct SRBRoot *bundle, const char *tag, UErrorCode *status);
89 bundle_getKeyBytes(struct SRBRoot *bundle, int32_t *pLength);
92 bundle_addKeyBytes(struct SRBRoot *bundle, cons
[all...]
/external/icu4c/io/
H A Dlocbund.h57 * @param bundle The ULocaleBundle to clone.
61 u_locbund_clone(const ULocaleBundle *bundle);*/
65 * @param bundle The ULocaleBundle to delete
68 u_locbund_close(ULocaleBundle *bundle);
72 * @param bundle The ULocaleBundle to use
76 u_locbund_getNumberFormat(ULocaleBundle *bundle, UNumberFormatStyle style);
H A Dlocbund.c107 u_locbund_clone(const ULocaleBundle *bundle)
116 result->fLocale = (char*) uprv_malloc(strlen(bundle->fLocale) + 1);
122 strcpy(result->fLocale, bundle->fLocale );
127 result->fNumberFormat[styleIdx] = unum_clone(bundle->fNumberFormat[styleIdx], &status);
136 result->fDateFormat = (bundle->fDateFormat == 0 ? 0 :
137 udat_clone(bundle->fDateFormat, &status));
138 result->fTimeFormat = (bundle->fTimeFormat == 0 ? 0 :
139 udat_clone(bundle->fTimeFormat, &status));
145 u_locbund_close(ULocaleBundle *bundle) argument
149 uprv_free(bundle
162 u_locbund_getNumberFormat(ULocaleBundle *bundle, UNumberFormatStyle style) argument
[all...]
/external/webkit/Source/WebKit2/WebProcess/InjectedBundle/API/c/win/
H A DWKBundlePrivateWin.h35 WK_EXPORT void WKBundleSetHostAllowsAnyHTTPSCertificate(WKBundleRef bundle, WKStringRef host);
36 WK_EXPORT void WKBundleSetClientCertificate(WKBundleRef bundle, WKStringRef host, WKStringRef certificateSystemStoreName, WKCertificateInfoRef certificateInfo);
/external/webkit/Source/WebKit2/Platform/mac/
H A DModuleMac.mm38 RetainPtr<CFBundleRef> bundle(AdoptCF, CFBundleCreate(kCFAllocatorDefault, bundleURL.get()));
39 if (!bundle)
42 if (!CFBundleLoadExecutable(bundle.get()))
45 m_bundle.adoptCF(bundle.releaseRef());
58 // See the comment in Module.h for why we leak the bundle here.
/external/webkit/Tools/TestWebKitAPI/Tests/WebKit2/
H A DInjectedBundleBasic_Bundle.cpp39 virtual void didCreatePage(WKBundleRef bundle, WKBundlePageRef page) argument
43 WKBundlePostMessage(bundle, doneMessageName.get(), doneMessageBody.get());
H A DResponsivenessTimerDoesntFireEarly_Bundle.cpp47 void ResponsivenessTimerDoesntFireEarlyTest::didReceiveMessage(WKBundleRef bundle, WKStringRef messageName, WKTypeRef) argument
55 WKBundlePostMessage(bundle, Util::toWK("DidBrieflyPause").get(), 0);
/external/webkit/Source/WebKit2/Shared/win/
H A DWebKitBundle.cpp58 static CFBundleRef bundle = createWebKitBundle();
59 ASSERT(bundle);
60 return bundle;
/external/webkit/Tools/MiniBrowser/mac/WebBundle/
H A DWebBundleMain.m59 void didCreatePage(WKBundleRef bundle, WKBundlePageRef page, const void* clientInfo)
70 void willDestroyPage(WKBundleRef bundle, WKBundlePageRef page, const void* clientInfo)
75 void didRecieveMessage(WKBundleRef bundle, WKStringRef messageName, WKTypeRef messageBody, const void *clientInfo)
91 void WKBundleInitialize(WKBundleRef bundle, WKTypeRef initializationUserData)
93 globalBundle = bundle;
103 WKBundleSetClient(bundle, &client);
/external/webkit/Source/WebKit/win/
H A DWebDownload.cpp144 String bundle(targetPath, SysStringLen(targetPath));
145 if (bundle.isEmpty())
148 if (bundle[bundle.length()-1] == '/')
149 bundle.truncate(1);
151 bundle += DownloadBundle::fileExtension();
152 *bundlePath = SysAllocStringLen(bundle.characters(), bundle.length());
/external/webkit/Source/WebCore/platform/mac/
H A DLocalizedStringsMac.mm38 static NSBundle *bundle = [NSBundle bundleWithIdentifier:@"com.apple.WebCore"];
44 NSString *result = [bundle localizedStringForKey:(NSString *)keyString.get() value:notFound table:nil];
46 ASSERT_WITH_MESSAGE(result != notFound, "could not find localizable string %s in bundle", key);

Completed in 296 milliseconds

1234