/external/chromium-trace/catapult/devil/devil/android/sdk/ |
D | shared_prefs_test.py | 60 prefs = shared_prefs.SharedPrefs( 62 self.assertEquals(len(prefs), 0) # collection is empty before loading 63 prefs.SetInt('myValue', 444) 64 self.assertEquals(len(prefs), 1) 65 self.assertEquals(prefs.GetInt('myValue'), 444) 66 self.assertTrue(prefs.HasProperty('myValue')) 67 prefs.Remove('myValue') 68 self.assertEquals(len(prefs), 0) 69 self.assertFalse(prefs.HasProperty('myValue')) 71 prefs.GetInt('myValue') [all …]
|
/external/webrtc/webrtc/base/ |
D | proxydetect_unittest.cc | 59 bool GetProxyInfo(const std::string prefs, ProxyInfo* info) { in GetProxyInfo() argument 63 files.push_back(rtc::FakeFileSystem::File("prefs.js", prefs)); in GetProxyInfo() 89 std::string prefs(kFirefoxHeader); in TEST_F() local 90 prefs.append("user_pref(\"network.proxy.socks\", \"proxy.socks.com\");\n"); in TEST_F() 91 prefs.append("user_pref(\"network.proxy.socks_port\", 6666);\n"); in TEST_F() 92 prefs.append("user_pref(\"network.proxy.type\", 1);\n"); in TEST_F() 94 EXPECT_TRUE(GetProxyInfo(prefs, &proxy_info)); in TEST_F() 105 std::string prefs(kFirefoxHeader); in TEST_F() local 107 prefs.append("user_pref(\"network.proxy.ssl\", \"proxy.ssl.com\");\n"); in TEST_F() 108 prefs.append("user_pref(\"network.proxy.ssl_port\", 7777);\n"); in TEST_F() [all …]
|
/external/lz4/tests/ |
D | frametest.c | 187 LZ4F_preferences_t prefs; in basicTests() local 188 memset(&prefs, 0, sizeof(prefs)); in basicTests() 353 prefs.frameInfo.blockSizeID = LZ4F_max64KB; in basicTests() 354 prefs.frameInfo.contentChecksumFlag = LZ4F_contentChecksumEnabled; in basicTests() 355 …essFrame(compressedBuffer, LZ4F_compressFrameBound(testSize, &prefs), CNBuffer, testSize, &prefs)); in basicTests() 359 prefs.frameInfo.contentChecksumFlag = LZ4F_noContentChecksum; in basicTests() 360 …essFrame(compressedBuffer, LZ4F_compressFrameBound(testSize, &prefs), CNBuffer, testSize, &prefs)); in basicTests() 364 prefs.frameInfo.blockSizeID = LZ4F_max256KB; in basicTests() 365 prefs.frameInfo.contentChecksumFlag = LZ4F_contentChecksumEnabled; in basicTests() 366 …essFrame(compressedBuffer, LZ4F_compressFrameBound(testSize, &prefs), CNBuffer, testSize, &prefs)); in basicTests() [all …]
|
/external/lz4/lib/ |
D | lz4frame.c | 208 LZ4F_preferences_t prefs; member 337 LZ4F_preferences_t prefs; in LZ4F_compressFrameBound() local 340 if (preferencesPtr!=NULL) prefs = *preferencesPtr; in LZ4F_compressFrameBound() 341 else MEM_INIT(&prefs, 0, sizeof(prefs)); in LZ4F_compressFrameBound() 342 prefs.autoFlush = 1; in LZ4F_compressFrameBound() 344 return headerSize + LZ4F_compressBound_internal(srcSize, &prefs, 0);; in LZ4F_compressFrameBound() 363 LZ4F_preferences_t prefs; in LZ4F_compressFrame_usingCDict() local 370 prefs = *preferencesPtr; in LZ4F_compressFrame_usingCDict() 372 MEM_INIT(&prefs, 0, sizeof(prefs)); in LZ4F_compressFrame_usingCDict() 373 if (prefs.frameInfo.contentSize != 0) in LZ4F_compressFrame_usingCDict() [all …]
|
/external/replicaisland/src/com/replica/replicaisland/ |
D | AndouKun.java | 102 … SharedPreferences prefs = getSharedPreferences(PreferenceConstants.PREFERENCE_NAME, MODE_PRIVATE); in onCreate() local 103 … final boolean debugLogs = prefs.getBoolean(PreferenceConstants.PREFERENCE_ENABLE_DEBUG, false); in onCreate() 143 mPrefsEditor = prefs.edit(); in onCreate() 158 mLevelRow = prefs.getInt(PreferenceConstants.PREFERENCE_LEVEL_ROW, 0); in onCreate() 159 mLevelIndex = prefs.getInt(PreferenceConstants.PREFERENCE_LEVEL_INDEX, 0); in onCreate() 160 int completed = prefs.getInt(PreferenceConstants.PREFERENCE_LEVEL_COMPLETED, 0); in onCreate() 161 mTotalGameTime = prefs.getFloat(PreferenceConstants.PREFERENCE_TOTAL_GAME_TIME, 0.0f); in onCreate() 162 mRobotsDestroyed = prefs.getInt(PreferenceConstants.PREFERENCE_ROBOTS_DESTROYED, 0); in onCreate() 163 mPearlsCollected = prefs.getInt(PreferenceConstants.PREFERENCE_PEARLS_COLLECTED, 0); in onCreate() 164 mPearlsTotal = prefs.getInt(PreferenceConstants.PREFERENCE_PEARLS_TOTAL, 0); in onCreate() [all …]
|
D | MainMenuActivity.java | 139 … SharedPreferences prefs = getSharedPreferences(PreferenceConstants.PREFERENCE_NAME, MODE_PRIVATE); in onCreate() local 140 final int row = prefs.getInt(PreferenceConstants.PREFERENCE_LEVEL_ROW, 0); in onCreate() 141 final int index = prefs.getInt(PreferenceConstants.PREFERENCE_LEVEL_INDEX, 0); in onCreate() 144 final int linear = prefs.getInt(PreferenceConstants.PREFERENCE_LINEAR_MODE, 0); in onCreate() 190 … SharedPreferences prefs = getSharedPreferences(PreferenceConstants.PREFERENCE_NAME, MODE_PRIVATE); in onResume() local 191 final int row = prefs.getInt(PreferenceConstants.PREFERENCE_LEVEL_ROW, 0); in onResume() 192 final int index = prefs.getInt(PreferenceConstants.PREFERENCE_LEVEL_INDEX, 0); in onResume() 209 final int lastVersion = prefs.getInt(PreferenceConstants.PREFERENCE_LAST_VERSION, 0); in onResume() 221 SharedPreferences.Editor editor = prefs.edit(); in onResume() 226 SharedPreferences.Editor editor = prefs.edit(); in onResume() [all …]
|
D | ExtrasMenuActivity.java | 43 … SharedPreferences prefs = getSharedPreferences(PreferenceConstants.PREFERENCE_NAME, MODE_PRIVATE); 44 final int row = prefs.getInt(PreferenceConstants.PREFERENCE_LEVEL_ROW, 0); 45 final int index = prefs.getInt(PreferenceConstants.PREFERENCE_LEVEL_INDEX, 0); 57 … SharedPreferences prefs = getSharedPreferences(PreferenceConstants.PREFERENCE_NAME, MODE_PRIVATE); 58 final int row = prefs.getInt(PreferenceConstants.PREFERENCE_LEVEL_ROW, 0); 59 final int index = prefs.getInt(PreferenceConstants.PREFERENCE_LEVEL_INDEX, 0); 94 … SharedPreferences prefs = getSharedPreferences(PreferenceConstants.PREFERENCE_NAME, MODE_PRIVATE); in onCreate() local 95 …final boolean extrasUnlocked = prefs.getBoolean(PreferenceConstants.PREFERENCE_EXTRAS_UNLOCKED, fa… in onCreate()
|
D | GameOverActivity.java | 140 … SharedPreferences prefs = getSharedPreferences(PreferenceConstants.PREFERENCE_NAME, MODE_PRIVATE); in onCreate() local 141 final float playTime = prefs.getFloat(PreferenceConstants.PREFERENCE_TOTAL_GAME_TIME, 0.0f); in onCreate() 142 final int ending = prefs.getInt(PreferenceConstants.PREFERENCE_LAST_ENDING, -1); in onCreate() 143 … final int pearlsCollected = prefs.getInt(PreferenceConstants.PREFERENCE_PEARLS_COLLECTED, 0); in onCreate() 144 final int pearlsTotal = prefs.getInt(PreferenceConstants.PREFERENCE_PEARLS_TOTAL, 0); in onCreate() 146 final int enemies = prefs.getInt(PreferenceConstants.PREFERENCE_ROBOTS_DESTROYED, 0); in onCreate()
|
D | SetPreferencesActivity.java | 62 … SharedPreferences prefs = getSharedPreferences(PreferenceConstants.PREFERENCE_NAME, MODE_PRIVATE); in onDialogClosed() local 63 SharedPreferences.Editor editor = prefs.edit(); in onDialogClosed()
|
/external/ipsec-tools/src/racoon/ |
D | policy.c | 141 || spidx->prefs != prefixlen) 192 || a->prefs != b->prefs 252 b->prefs); 254 b->prefs); 256 a, b->prefs, saddr2str((struct sockaddr *)&sa1)); 258 b, b->prefs, saddr2str((struct sockaddr *)&sa2)); 322 u_int8_t prefs, prefd; local 332 prefs = spidx.prefs; 338 prefs = spidx.prefd; 339 prefd = spidx.prefs; [all …]
|
D | policy.h | 64 u_int8_t prefs; /* prefix length in bits for src */ member 116 (idx)->prefs = (ps); \ 129 (idx)->prefs = (ps); \
|
/external/objenesis/tck-android/ |
D | .gitignore | 6 org.eclipse.m2e.core.prefs 7 org.eclipse.core.resources.prefs 8 org.eclipse.pde.core.prefs
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
D | CalendarUtil.java | 67 Map<String, String> prefs = new TreeMap<String, String>(); field in CalendarUtil.CalendarPreferences 80 String type = prefs.get(region); in getCalendarTypeForRegion() 93 prefs.put(key.toString(), type); in put()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | CalendarUtil.java | 65 Map<String, String> prefs = new TreeMap<String, String>(); field in CalendarUtil.CalendarPreferences 78 String type = prefs.get(region); in getCalendarTypeForRegion() 91 prefs.put(key.toString(), type); in put()
|
/external/zxing/qr_scanner/src/com/google/zxing/client/android/camera/ |
D | CameraConfigurationManager.java | 79 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); in setDesiredCameraParameters() local 81 initializeTorch(parameters, prefs); in setDesiredCameraParameters() 105 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); in setTorch() local 114 private static void initializeTorch(Camera.Parameters parameters, SharedPreferences prefs) { in initializeTorch() argument
|
/external/lz4/programs/ |
D | lz4io.c | 541 LZ4F_preferences_t prefs; in LZ4IO_compressFilename_extRess() local 548 memset(&prefs, 0, sizeof(prefs)); in LZ4IO_compressFilename_extRess() 552 prefs.autoFlush = 1; in LZ4IO_compressFilename_extRess() 553 prefs.compressionLevel = compressionLevel; in LZ4IO_compressFilename_extRess() 554 prefs.frameInfo.blockMode = (LZ4F_blockMode_t)g_blockIndependence; in LZ4IO_compressFilename_extRess() 555 prefs.frameInfo.blockSizeID = (LZ4F_blockSizeID_t)g_blockSizeId; in LZ4IO_compressFilename_extRess() 556 prefs.frameInfo.blockChecksumFlag = (LZ4F_blockChecksum_t)g_blockChecksum; in LZ4IO_compressFilename_extRess() 557 prefs.frameInfo.contentChecksumFlag = (LZ4F_contentChecksum_t)g_streamChecksum; in LZ4IO_compressFilename_extRess() 558 prefs.favorDecSpeed = g_favorDecSpeed; in LZ4IO_compressFilename_extRess() 561 prefs.frameInfo.contentSize = fileSize; /* == 0 if input == stdin */ in LZ4IO_compressFilename_extRess() [all …]
|
/external/python/cpython3/Lib/idlelib/ |
D | macosx.py | 114 prefs = readSystemPreferences() 115 if prefs and prefs.get('AppleWindowTabbingMode') == 'always':
|
/external/autotest/client/site_tests/power_VideoDetector/ |
D | power_VideoDetector.py | 35 prefs = { 'has_ambient_light_sensor' : 0, 41 self._pref_change = power_utils.PowerPrefChanger(prefs)
|
/external/libbackup/src/com/google/android/libraries/backup/shadow/ |
D | SharedPreferencesBackupHelperSimulator.java | 87 Map<String, ?> prefs = context.getSharedPreferences(prefGroup, MODE_PRIVATE).getAll(); in backup() local 88 if (prefs.isEmpty()) { in backup() 94 for (Map.Entry<String, ?> prefEntry : prefs.entrySet()) { in backup()
|
/external/ipsec-tools/src/libipsec/ |
D | pfkey.c | 859 pfkey_send_spdadd(int so, struct sockaddr *src, u_int prefs, in pfkey_send_spdadd() argument 866 src, prefs, dst, prefd, proto, in pfkey_send_spdadd() 881 pfkey_send_spdadd2(int so, struct sockaddr *src, u_int prefs, in pfkey_send_spdadd2() argument 888 src, prefs, dst, prefd, proto, in pfkey_send_spdadd2() 903 pfkey_send_spdupdate(int so, struct sockaddr *src, u_int prefs, in pfkey_send_spdupdate() argument 910 src, prefs, dst, prefd, proto, in pfkey_send_spdupdate() 925 pfkey_send_spdupdate2(int so, struct sockaddr *src, u_int prefs, in pfkey_send_spdupdate2() argument 932 src, prefs, dst, prefd, proto, in pfkey_send_spdupdate2() 947 pfkey_send_spddelete(int so, struct sockaddr *src, u_int prefs, in pfkey_send_spddelete() argument 959 src, prefs, dst, prefd, proto, in pfkey_send_spddelete() [all …]
|
/external/libchrome/mojo/public/cpp/bindings/ |
D | sync_call_restrictions.h | 36 namespace prefs { 92 friend class prefs::PersistentPrefStoreClient;
|
/external/autotest/client/site_tests/power_AudioDetector/ |
D | power_AudioDetector.py | 61 prefs = { 'disable_idle_suspend' : 0, 69 self._pref_change = power_utils.PowerPrefChanger(prefs)
|
/external/boringssl/src/ssl/ |
D | ssl_privkey.cc | 488 int SSL_CTX_set_signing_algorithm_prefs(SSL_CTX *ctx, const uint16_t *prefs, in SSL_CTX_set_signing_algorithm_prefs() argument 490 return ctx->cert->sigalgs.CopyFrom(MakeConstSpan(prefs, num_prefs)); in SSL_CTX_set_signing_algorithm_prefs() 493 int SSL_set_signing_algorithm_prefs(SSL *ssl, const uint16_t *prefs, in SSL_set_signing_algorithm_prefs() argument 498 return ssl->config->cert->sigalgs.CopyFrom(MakeConstSpan(prefs, num_prefs)); in SSL_set_signing_algorithm_prefs() 814 int SSL_CTX_set_verify_algorithm_prefs(SSL_CTX *ctx, const uint16_t *prefs, in SSL_CTX_set_verify_algorithm_prefs() argument 816 return ctx->verify_sigalgs.CopyFrom(MakeConstSpan(prefs, num_prefs)); in SSL_CTX_set_verify_algorithm_prefs()
|
/external/autotest/client/site_tests/power_BacklightControl/ |
D | power_BacklightControl.py | 44 prefs = { 'has_ambient_light_sensor' : 0, 52 self._pref_change = power_utils.PowerPrefChanger(prefs)
|
/external/python/cpython2/Lib/plat-mac/ |
D | pimp.py | 364 def __init__(self, prefs): argument 366 self.preferences = prefs 1014 prefs = PimpPreferences(**prefargs) 1016 prefs.setWatcher(watcher) 1017 rv = prefs.check() 1020 db = PimpDatabase(prefs) 1021 db.appendURL(prefs.pimpDatabase)
|