/external/chromium-trace/catapult/devil/devil/android/sdk/ |
D | shared_prefs_test.py | 58 prefs = shared_prefs.SharedPrefs( 60 self.assertEquals(len(prefs), 0) # collection is empty before loading 61 prefs.SetInt('myValue', 444) 62 self.assertEquals(len(prefs), 1) 63 self.assertEquals(prefs.GetInt('myValue'), 444) 64 self.assertTrue(prefs.HasProperty('myValue')) 65 prefs.Remove('myValue') 66 self.assertEquals(len(prefs), 0) 67 self.assertFalse(prefs.HasProperty('myValue')) 69 prefs.GetInt('myValue') [all …]
|
/external/libmojo/third_party/catapult/devil/devil/android/sdk/ |
D | shared_prefs_test.py | 57 prefs = shared_prefs.SharedPrefs( 59 self.assertEquals(len(prefs), 0) # collection is empty before loading 60 prefs.SetInt('myValue', 444) 61 self.assertEquals(len(prefs), 1) 62 self.assertEquals(prefs.GetInt('myValue'), 444) 63 self.assertTrue(prefs.HasProperty('myValue')) 64 prefs.Remove('myValue') 65 self.assertEquals(len(prefs), 0) 66 self.assertFalse(prefs.HasProperty('myValue')) 68 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 | 180 LZ4F_preferences_t prefs; in basicTests() local 181 memset(&prefs, 0, sizeof(prefs)); in basicTests() 322 prefs.frameInfo.blockSizeID = LZ4F_max64KB; in basicTests() 323 prefs.frameInfo.contentChecksumFlag = LZ4F_contentChecksumEnabled; in basicTests() 324 …ressFrame(compressedBuffer, LZ4F_compressFrameBound(testSize, &prefs), CNBuffer, testSize, &prefs); in basicTests() 329 prefs.frameInfo.contentChecksumFlag = LZ4F_noContentChecksum; in basicTests() 330 …ressFrame(compressedBuffer, LZ4F_compressFrameBound(testSize, &prefs), CNBuffer, testSize, &prefs); in basicTests() 335 prefs.frameInfo.blockSizeID = LZ4F_max256KB; in basicTests() 336 prefs.frameInfo.contentChecksumFlag = LZ4F_contentChecksumEnabled; in basicTests() 337 …ressFrame(compressedBuffer, LZ4F_compressFrameBound(testSize, &prefs), CNBuffer, testSize, &prefs); in basicTests() [all …]
|
/external/lz4/lib/ |
D | lz4frame.c | 170 LZ4F_preferences_t prefs; member 289 LZ4F_preferences_t prefs; in LZ4F_compressFrameBound() local 292 if (preferencesPtr!=NULL) prefs = *preferencesPtr; in LZ4F_compressFrameBound() 293 else memset(&prefs, 0, sizeof(prefs)); in LZ4F_compressFrameBound() 294 prefs.autoFlush = 1; in LZ4F_compressFrameBound() 296 return headerSize + LZ4F_compressBound_internal(srcSize, &prefs, 0);; in LZ4F_compressFrameBound() 313 LZ4F_preferences_t prefs; in LZ4F_compressFrame() local 326 prefs = *preferencesPtr; in LZ4F_compressFrame() 328 memset(&prefs, 0, sizeof(prefs)); in LZ4F_compressFrame() 329 if (prefs.frameInfo.contentSize != 0) in LZ4F_compressFrame() [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/boringssl/src/ssl/ |
D | ssl_privkey.cc | 464 const uint16_t *prefs, size_t num_prefs) { in set_algorithm_prefs() argument 468 *out_prefs = (uint16_t *)BUF_memdup(prefs, num_prefs * sizeof(prefs[0])); in set_algorithm_prefs() 478 int SSL_CTX_set_signing_algorithm_prefs(SSL_CTX *ctx, const uint16_t *prefs, in SSL_CTX_set_signing_algorithm_prefs() argument 481 prefs, num_prefs); in SSL_CTX_set_signing_algorithm_prefs() 484 int SSL_set_signing_algorithm_prefs(SSL *ssl, const uint16_t *prefs, in SSL_set_signing_algorithm_prefs() argument 487 prefs, num_prefs); in SSL_set_signing_algorithm_prefs() 490 int SSL_CTX_set_verify_algorithm_prefs(SSL_CTX *ctx, const uint16_t *prefs, in SSL_CTX_set_verify_algorithm_prefs() argument 493 prefs, num_prefs); in SSL_CTX_set_verify_algorithm_prefs()
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
D | PreferenceManagerTest.java | 29 … SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(Robolectric.application); in shouldProvideDefaultSharedPreferences() local 31 assertNotNull(prefs); in shouldProvideDefaultSharedPreferences() 32 assertEquals(13, prefs.getInt("foobar", 0)); in shouldProvideDefaultSharedPreferences()
|
/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 | 449 LZ4F_preferences_t prefs; in LZ4IO_compressFilename_extRess() local 456 memset(&prefs, 0, sizeof(prefs)); in LZ4IO_compressFilename_extRess() 460 prefs.autoFlush = 1; in LZ4IO_compressFilename_extRess() 461 prefs.compressionLevel = compressionLevel; in LZ4IO_compressFilename_extRess() 462 prefs.frameInfo.blockMode = (LZ4F_blockMode_t)g_blockIndependence; in LZ4IO_compressFilename_extRess() 463 prefs.frameInfo.blockSizeID = (LZ4F_blockSizeID_t)g_blockSizeId; in LZ4IO_compressFilename_extRess() 464 prefs.frameInfo.contentChecksumFlag = (LZ4F_contentChecksum_t)g_streamChecksum; in LZ4IO_compressFilename_extRess() 467 prefs.frameInfo.contentSize = fileSize; /* == 0 if input == stdin */ in LZ4IO_compressFilename_extRess() 480 … size_t const cSize = LZ4F_compressFrame(dstBuffer, dstBufferSize, srcBuffer, readSize, &prefs); in LZ4IO_compressFilename_extRess() 496 size_t headerSize = LZ4F_compressBegin(ctx, dstBuffer, dstBufferSize, &prefs); in LZ4IO_compressFilename_extRess()
|
/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/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/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)
|