/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/ |
D | ResourceBundleTest.java | 78 ResourceBundle bundle; in test_getStringLjava_lang_String() local 81 bundle = ResourceBundle.getBundle(name, new Locale("fr", "FR", "VAR")); in test_getStringLjava_lang_String() 82 assertEquals("Wrong value parent4", "frFRVARValue4", bundle in test_getStringLjava_lang_String() 84 assertEquals("Wrong value parent3", "frFRValue3", bundle in test_getStringLjava_lang_String() 86 assertEquals("Wrong value parent2", "frValue2", bundle in test_getStringLjava_lang_String() 88 assertEquals("Wrong value parent1", "parentValue1", bundle in test_getStringLjava_lang_String() 90 assertEquals("Wrong value child3", "frFRVARChildValue3", bundle in test_getStringLjava_lang_String() 92 assertEquals("Wrong value child2", "frFRVARChildValue2", bundle in test_getStringLjava_lang_String() 94 assertEquals("Wrong value child1", "frFRVARChildValue1", bundle in test_getStringLjava_lang_String() 118 private ResourceBundle bundle; field in ResourceBundleTest [all …]
|
D | ControlTest.java | 398 ResourceBundle bundle = null; in newBundleTester() local 405 bundle = control.newBundle(className, frFR, CLASS, systemLoader, false); in newBundleTester() 406 assertEquals("frFRChildValue1", bundle.getString("child1")); in newBundleTester() 408 bundle = control.newBundle(className, frFR, CLASS, systemLoader, true); in newBundleTester() 409 assertEquals("frFRChildValue1", bundle.getString("child1")); in newBundleTester() 411 bundle = control.newBundle(className, Locale.ROOT, CLASS, systemLoader, in newBundleTester() 413 assertEquals("parentValue1", bundle.getString("parent1")); in newBundleTester() 428 bundle = control.newBundle(propertiesNameCopy, Locale.ROOT, in newBundleTester() 430 assertTrue(bundle.getClass() == PropertyResourceBundle.class); in newBundleTester() 431 assertEquals("resource", bundle.getString("property")); in newBundleTester() [all …]
|
D | ListResourceBundleTest.java | 33 ResourceBundle bundle; in test_getKeys() local 36 bundle = ResourceBundle.getBundle(name, new Locale("fr", "FR", "VAR")); in test_getKeys() 37 Enumeration<String> keys = bundle.getKeys(); in test_getKeys() 58 hyts_resource_fr_FR bundle = (hyts_resource_fr_FR) ResourceBundle in test_handleKeySet() local 62 Set<String> set = bundle.handleKeySet(); in test_handleKeySet() 68 set = bundle.keySet(); in test_handleKeySet() 80 hyts_resource_fr_FR bundle = (hyts_resource_fr_FR) ResourceBundle in test_handleGetObject() local 85 bundle.handleGetObject(null); in test_handleGetObject()
|
D | SampleBundleClass.java | 28 private static ResourceBundle bundle; field in SampleBundleClass 37 bundle = ResourceBundle.getBundle("tests.api.simple.SampleBundleClass"); in SampleBundleClass() 40 bundle = null; in SampleBundleClass()
|
/external/icu4c/tools/genrb/ |
D | reslist.c | 101 bundle_compactStrings(struct SRBRoot *bundle, UErrorCode *status); 110 res_write16(struct SRBRoot *bundle, struct SResource *res, 129 struct SRBRoot *bundle, struct SResource *res, 139 struct SRBRoot *bundle, struct SResource *res, 143 reserve16BitUnits(struct SRBRoot *bundle, int32_t length, UErrorCode *status) { in reserve16BitUnits() argument 147 if ((bundle->f16BitUnitsLength + length) > bundle->f16BitUnitsCapacity) { in reserve16BitUnits() 149 int32_t capacity = 2 * bundle->f16BitUnitsCapacity + length + 1024; in reserve16BitUnits() 156 if (bundle->f16BitUnitsLength > 0) { in reserve16BitUnits() 157 uprv_memcpy(newUnits, bundle->f16BitUnits, bundle->f16BitUnitsLength * 2); in reserve16BitUnits() 160 bundle->f16BitUnitsLength = 1; in reserve16BitUnits() [all …]
|
D | reslist.h | 69 void bundle_write(struct SRBRoot *bundle, const char *outputDir, const char *outputPkg, char *writt… 72 void bundle_write_java(struct SRBRoot *bundle, const char *outputDir, const char* outputEnc, char *… 81 void bundle_write_xml(struct SRBRoot *bundle, const char *outputDir,const char* outputEnc, const ch… 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, const char *keyBytes, int32_t length, UErrorCode *status… 95 bundle_compactKeys(struct SRBRoot *bundle, UErrorCode *status); 113 struct SResource* table_open(struct SRBRoot *bundle, const char *tag, const struct UString* comment… [all …]
|
/external/webkit/Source/WebKit2/WebProcess/InjectedBundle/API/c/ |
D | WKBundlePrivate.h | 39 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 …GarbageCollectJavaScriptObjectsOnAlternateThreadForDebugging(WKBundleRef bundle, bool waitUntilDon… 44 WK_EXPORT size_t WKBundleGetJavaScriptObjectsCount(WKBundleRef bundle); 58 WK_EXPORT void WKBundleAddUserScript(WKBundleRef bundle, WKBundlePageGroupRef pageGroup, WKBundleSc… 59 WK_EXPORT void WKBundleAddUserStyleSheet(WKBundleRef bundle, WKBundlePageGroupRef pageGroup, WKBund… 60 WK_EXPORT void WKBundleRemoveUserScript(WKBundleRef bundle, WKBundlePageGroupRef pageGroup, WKBundl… 61 WK_EXPORT void WKBundleRemoveUserStyleSheet(WKBundleRef bundle, WKBundlePageGroupRef pageGroup, WKB… [all …]
|
D | WKBundle.h | 37 typedef void (*WKBundleDidCreatePageCallback)(WKBundleRef bundle, WKBundlePageRef page, const void*… 38 typedef void (*WKBundleWillDestroyPageCallback)(WKBundleRef bundle, WKBundlePageRef page, const voi… 39 typedef void (*WKBundleDidInitializePageGroupCallback)(WKBundleRef bundle, WKBundlePageGroupRef pag… 40 typedef void (*WKBundleDidReceiveMessageCallback)(WKBundleRef bundle, WKStringRef name, WKTypeRef m… 54 WK_EXPORT void WKBundleSetClient(WKBundleRef bundle, WKBundleClient * client); 56 WK_EXPORT void WKBundlePostMessage(WKBundleRef bundle, WKStringRef messageName, WKTypeRef messageBo… 57 WK_EXPORT void WKBundlePostSynchronousMessage(WKBundleRef bundle, WKStringRef messageName, WKTypeRe…
|
/external/webkit/Source/WebCore/platform/network/win/ |
D | DownloadBundleWin.cpp | 63 FILE* bundle = 0; in appendResumeData() local 64 if (_wfopen_s(&bundle, nullifiedPath.charactersWithNullTermination(), TEXT("ab")) || !bundle) { in appendResumeData() 81 if (fwrite(resumeBytes, 1, resumeLength, bundle) != resumeLength) { in appendResumeData() 86 if (fwrite(&resumeLength, 4, 1, bundle) != 1) { in appendResumeData() 92 if (fwrite(&magic, 4, 1, bundle) != 1) { in appendResumeData() 99 fclose(bundle); in appendResumeData() 112 FILE* bundle = 0; in extractResumeData() local 113 if (_wfopen_s(&bundle, nullifiedPath.charactersWithNullTermination(), TEXT("r+b")) || !bundle) { in extractResumeData() 123 if (_fstat64(_fileno(bundle), &fileStat)) in extractResumeData() 131 if (fsetpos(bundle, &footerMagicNumberPosition)) in extractResumeData() [all …]
|
/external/webkit/Tools/TestWebKitAPI/ |
D | InjectedBundleController.cpp | 48 void InjectedBundleController::initialize(WKBundleRef bundle, WKTypeRef initializationUserData) in initialize() argument 50 m_bundle = bundle; in initialize() 70 initializeTestNamed(bundle, Util::toSTD(testName), userData); in initialize() 73 void InjectedBundleController::didCreatePage(WKBundleRef bundle, WKBundlePageRef page, const void* … in didCreatePage() argument 77 self->m_currentTest->didCreatePage(bundle, page); in didCreatePage() 80 void InjectedBundleController::willDestroyPage(WKBundleRef bundle, WKBundlePageRef page, const void… in willDestroyPage() argument 84 self->m_currentTest->willDestroyPage(bundle, page); in willDestroyPage() 87 void InjectedBundleController::didInitializePageGroup(WKBundleRef bundle, WKBundlePageGroupRef page… in didInitializePageGroup() argument 91 self->m_currentTest->didInitializePageGroup(bundle, pageGroup); in didInitializePageGroup() 94 void InjectedBundleController::didReceiveMessage(WKBundleRef bundle, WKStringRef messageName, WKTyp… in didReceiveMessage() argument [all …]
|
/external/icu4c/io/ |
D | locbund.c | 145 u_locbund_close(ULocaleBundle *bundle) in u_locbund_close() argument 149 uprv_free(bundle->fLocale); in u_locbund_close() 152 if (bundle->fNumberFormat[styleIdx]) { in u_locbund_close() 153 unum_close(bundle->fNumberFormat[styleIdx]); in u_locbund_close() 157 uprv_memset(bundle, 0, sizeof(ULocaleBundle)); in u_locbund_close() 162 u_locbund_getNumberFormat(ULocaleBundle *bundle, UNumberFormatStyle style) in u_locbund_getNumberFormat() argument 166 formatAlias = bundle->fNumberFormat[style-1]; in u_locbund_getNumberFormat() 168 if (bundle->isInvariantLocale) { in u_locbund_getNumberFormat() 169 formatAlias = copyInvariantFormatter(bundle, style); in u_locbund_getNumberFormat() 173 formatAlias = unum_open(style, NULL, 0, bundle->fLocale, NULL, &status); in u_locbund_getNumberFormat() [all …]
|
/external/webkit/Source/WebKit2/WebProcess/InjectedBundle/ |
D | InjectedBundleClient.cpp | 33 void InjectedBundleClient::didCreatePage(InjectedBundle* bundle, WebPage* page) in didCreatePage() argument 38 m_client.didCreatePage(toAPI(bundle), toAPI(page), m_client.clientInfo); in didCreatePage() 41 void InjectedBundleClient::willDestroyPage(InjectedBundle* bundle, WebPage* page) in willDestroyPage() argument 46 m_client.willDestroyPage(toAPI(bundle), toAPI(page), m_client.clientInfo); in willDestroyPage() 49 void InjectedBundleClient::didInitializePageGroup(InjectedBundle* bundle, WebPageGroupProxy* pageGr… in didInitializePageGroup() argument 54 m_client.didInitializePageGroup(toAPI(bundle), toAPI(pageGroup), m_client.clientInfo); in didInitializePageGroup() 57 void InjectedBundleClient::didReceiveMessage(InjectedBundle* bundle, const String& messageName, API… in didReceiveMessage() argument 62 …m_client.didReceiveMessage(toAPI(bundle), toAPI(messageName.impl()), toAPI(messageBody), m_client.… in didReceiveMessage()
|
/external/webkit/Source/WebKit/win/ |
D | WebLocalizableStrings.cpp | 106 static CFBundleRef bundle; in createWebKitBundle() local 110 return bundle; in createWebKitBundle() 146 bundle = CFBundleCreate(0, bundleURLRef); in createWebKitBundle() 148 return bundle; in createWebKitBundle() 160 if (!stringsBundle->bundle) in cfBundleForStringsBundle() 161 …stringsBundle->bundle = CFBundleGetBundleWithIdentifier(RetainPtr<CFStringRef>(AdoptCF, CFStringCr… in cfBundleForStringsBundle() 162 return stringsBundle->bundle; in cfBundleForStringsBundle() 169 CFBundleRef bundle = cfBundleForStringsBundle(stringsBundle); in copyLocalizedStringFromBundle() local 170 if (!bundle) in copyLocalizedStringFromBundle() 174 …CFStringRef result = CFCopyLocalizedStringWithDefaultValue(keyString.get(), 0, bundle, notFound, 0… in copyLocalizedStringFromBundle() [all …]
|
D | WebDownload.cpp | 144 String bundle(targetPath, SysStringLen(targetPath)); in bundlePathForTargetPath() local 145 if (bundle.isEmpty()) in bundlePathForTargetPath() 148 if (bundle[bundle.length()-1] == '/') in bundlePathForTargetPath() 149 bundle.truncate(1); in bundlePathForTargetPath() 151 bundle += DownloadBundle::fileExtension(); in bundlePathForTargetPath() 152 *bundlePath = SysAllocStringLen(bundle.characters(), bundle.length()); in bundlePathForTargetPath()
|
D | WebLocalizableStrings.h | 33 CFBundleRef bundle; member 43 void SetWebLocalizedStringMainBundle(CFBundleRef bundle); 46 CFStringRef WebLocalizedString(WebLocalizableStringsBundle *bundle, LPCTSTR key); 47 LPCTSTR WebLocalizedLPCTSTR(WebLocalizableStringsBundle *bundle, LPCTSTR key);
|
/external/chromium/chrome/browser/sync/glue/ |
D | autofill_profile_model_associator_unittest.cc | 69 browser_sync::AutofillProfileModelAssociator::DataBundle *bundle) { in TraverseAndAssociateAllSyncNodesWrapper() argument 70 return TraverseAndAssociateAllSyncNodes(trans, autofill_root, bundle); in TraverseAndAssociateAllSyncNodesWrapper() 75 DataBundle* bundle, in AddNativeProfileIfNeededWrapper() argument 79 bundle, in AddNativeProfileIfNeededWrapper() 196 browser_sync::AutofillProfileModelAssociator::DataBundle bundle; in TEST_F() local 207 &bundle, in TEST_F() 212 &bundle); in TEST_F() 221 browser_sync::AutofillProfileModelAssociator::DataBundle bundle; in TEST_F() local 225 bundle.current_profiles.insert(guid); in TEST_F() 230 associator.AddNativeProfileIfNeededWrapper(profile_specifics, &bundle, in TEST_F() [all …]
|
D | autofill_profile_model_associator.cc | 156 DataBundle bundle; in AssociateModels() local 170 profiles.get(), &bundle.current_profiles, in AssociateModels() 171 &bundle.updated_profiles, in AssociateModels() 172 &bundle.new_profiles, in AssociateModels() 173 &bundle.profiles_to_delete) || in AssociateModels() 174 !TraverseAndAssociateAllSyncNodes(&trans, autofill_root, &bundle)) { in AssociateModels() 179 if (!SaveChangesToWebData(bundle)) { in AssociateModels() 362 DataBundle* bundle) { in TraverseAndAssociateAllSyncNodes() argument 377 AddNativeProfileIfNeeded(autofill, bundle, sync_child); in TraverseAndAssociateAllSyncNodes() 386 DataBundle* bundle, in AddNativeProfileIfNeeded() argument [all …]
|
D | autofill_model_associator.cc | 152 DataBundle bundle; in AssociateModels() local 164 entries, &bundle.current_entries, &bundle.new_entries)) { in AssociateModels() 171 &bundle, in AssociateModels() 182 if (!SaveChangesToWebData(bundle)) { in AssociateModels() 202 bool AutofillModelAssociator::SaveChangesToWebData(const DataBundle& bundle) { in SaveChangesToWebData() argument 208 if (bundle.new_entries.size() && in SaveChangesToWebData() 210 bundle.new_entries)) { in SaveChangesToWebData() 214 for (size_t i = 0; i < bundle.new_profiles.size(); i++) { in SaveChangesToWebData() 218 *bundle.new_profiles[i])) in SaveChangesToWebData() 222 for (size_t i = 0; i < bundle.updated_profiles.size(); i++) { in SaveChangesToWebData() [all …]
|
/external/chromium/base/mac/ |
D | foundation_util.mm | 62 // bundle dictionary, and not the overriden MainAppBundle. It needs to look 79 NSBundle* bundle = MainAppBundle(); 80 return FilePath([[bundle bundlePath] fileSystemRepresentation]); 84 NSBundle* bundle = MainAppBundle(); 85 NSString* resourcePath = [bundle pathForResource:(NSString*)resourceName 92 void SetOverrideAppBundle(NSBundle* bundle) { 93 if (bundle != g_override_app_bundle) { 95 g_override_app_bundle = [bundle retain]; 101 NSBundle* bundle = [NSBundle bundleWithPath:path]; 102 CHECK(bundle) << "Failed to load the bundle at " << file_path.value(); [all …]
|
/external/icu4c/test/intltest/ |
D | nptrans.cpp | 51 bundle = NULL; in NamePrepTransform() 60 bundle = ures_openDirect(testDataName,"idna_rules",&status); in NamePrepTransform() 62 if(bundle != NULL && U_SUCCESS(status)){ in NamePrepTransform() 65 const UChar* ruleUChar = ures_getStringByKey(bundle, "MapNFKC",&ruleLen, &status); in NamePrepTransform() 67 …const UChar *mapRuleUChar = ures_getStringByKey(bundle, "MapNoNormalization", &mapRuleLen, &status… in NamePrepTransform() 79 const UChar* pattern = ures_getStringByKey(bundle,"UnassignedSet",&patternLen, &status); in NamePrepTransform() 84 pattern = ures_getStringByKey(bundle,"ProhibitedSet",&patternLen, &status); in NamePrepTransform() 108 pattern = ures_getStringByKey(bundle,"LabelSeparatorSet",&patternLen, &status); in NamePrepTransform() 117 ures_close(bundle); in NamePrepTransform() 119 bundle = NULL; in NamePrepTransform() [all …]
|
/external/icu4c/i18n/ |
D | ulocdata.c | 40 UResourceBundle *bundle; member 66 uld->bundle = ures_open(NULL, localeID, status); in ulocdata_open() 82 ures_close(uld->bundle); in ulocdata_close() 111 exemplarChars = ures_getStringByKey(uld->bundle, exemplarSetTypes[extype], &len, &localStatus); in ulocdata_getExemplarSet() 153 delimiterBundle = ures_getByKey(uld->bundle, "delimiters", NULL, &localStatus); in ulocdata_getDelimiter() 190 UResourceBundle* bundle=NULL; in ulocdata_getMeasurementSystem() local 198 bundle = ures_open(NULL, localeID, status); in ulocdata_getMeasurementSystem() 200 measurement = ures_getByKeyWithFallback(bundle, MEASUREMENT_SYSTEM, NULL, status); in ulocdata_getMeasurementSystem() 204 ures_close(bundle); in ulocdata_getMeasurementSystem() 213 UResourceBundle* bundle=NULL; in ulocdata_getPaperSize() local [all …]
|
/external/webkit/Source/WebKit/mac/Misc/ |
D | WebLocalizableStrings.mm | 44 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 localizedStringForKey:(NSString *)keyString value:notFound table:nil]; 65 ASSERT_WITH_MESSAGE(result != notFound, "could not find localizable string %s in bundle", key);
|
/external/chromium/base/ |
D | native_library_mac.mm | 40 CFBundleRef bundle = CFBundleCreate(kCFAllocatorDefault, url.get()); 41 if (!bundle) 46 native_lib->bundle = bundle; 47 native_lib->bundle_resource_ref = CFBundleOpenBundleResourceMap(bundle); 54 CFBundleCloseBundleResourceMap(library->bundle, 56 CFRelease(library->bundle); 70 return CFBundleGetFunctionPointerForName(library->bundle, symbol_name);
|
/external/icu4c/common/ |
D | wintz.c | 228 UResourceBundle* bundle = NULL; in uprv_detectWindowsTimeZone() local 249 bundle = ures_openDirect(NULL, "windowsZones", &status); in uprv_detectWindowsTimeZone() 250 ures_getByKey(bundle, "mapTimezones", bundle, &status); in uprv_detectWindowsTimeZone() 253 while (U_SUCCESS(status) && ures_hasNext(bundle)) { in uprv_detectWindowsTimeZone() 256 UResourceBundle* winTZ = ures_getNextResource(bundle, NULL, &status); in uprv_detectWindowsTimeZone() 285 ures_close(bundle); in uprv_detectWindowsTimeZone()
|
/external/webkit/Source/WebKit2/Shared/Plugins/Netscape/mac/ |
D | NetscapePluginModuleMac.mm | 36 static bool getPluginArchitecture(CFBundleRef bundle, cpu_type_t& pluginArchitecture) 38 …tainPtr<CFArrayRef> pluginArchitecturesArray(AdoptCF, CFBundleCopyExecutableArchitectures(bundle)); 90 static RetainPtr<CFDictionaryRef> getMIMETypesFromPluginBundle(CFBundleRef bundle) 92 …Filename = static_cast<CFStringRef>(CFBundleGetValueForInfoDictionaryKey(bundle, CFSTR("WebPluginM… 111 …return static_cast<CFDictionaryRef>(CFBundleGetValueForInfoDictionaryKey(bundle, CFSTR("WebPluginM… 114 static bool getPluginInfoFromPropertyLists(CFBundleRef bundle, PluginInfo& pluginInfo) 116 RetainPtr<CFDictionaryRef> mimeTypes = getMIMETypesFromPluginBundle(bundle); 121 …CFStringRef pluginName = static_cast<CFStringRef>(CFBundleGetValueForInfoDictionaryKey(bundle, CFS… 126 …cription = static_cast<CFStringRef>(CFBundleGetValueForInfoDictionaryKey(bundle, CFSTR("WebPluginD… 187 explicit ResourceMap(CFBundleRef bundle) [all …]
|