/external/chromium_org/third_party/leveldatabase/src/helpers/memenv/ |
D | memenv_test.cc | 18 Env* env_; member in leveldb::MemEnvTest 21 : env_(NewMemEnv(Env::Default())) { in MemEnvTest() 24 delete env_; in ~MemEnvTest() 33 ASSERT_OK(env_->CreateDir("/dir")); in TEST() 36 ASSERT_TRUE(!env_->FileExists("/dir/non_existent")); in TEST() 37 ASSERT_TRUE(!env_->GetFileSize("/dir/non_existent", &file_size).ok()); in TEST() 38 ASSERT_OK(env_->GetChildren("/dir", &children)); in TEST() 42 ASSERT_OK(env_->NewWritableFile("/dir/f", &writable_file)); in TEST() 46 ASSERT_TRUE(env_->FileExists("/dir/f")); in TEST() 47 ASSERT_OK(env_->GetFileSize("/dir/f", &file_size)); in TEST() [all …]
|
/external/chromium_org/android_webview/native/ |
D | aw_contents_client_bridge_unittest.cc | 53 JNIEnv* env_; member in android_webview::__anon8102970f0111::AwContentsClientBridgeTest 59 env_ = AttachCurrentThread(); in SetUp() 60 ASSERT_THAT(env_, NotNull()); in SetUp() 61 ASSERT_TRUE(android_webview::RegisterAwContentsClientBridge(env_)); in SetUp() 62 ASSERT_TRUE(RegisterNativesImpl(env_)); in SetUp() 63 ASSERT_TRUE(net::android::RegisterJni(env_)); in SetUp() 64 jbridge_.Reset(env_, in SetUp() 65 Java_MockAwContentsClientBridge_getAwContentsClientBridge(env_).obj()); in SetUp() 66 bridge_.reset(new AwContentsClientBridge(env_, jbridge_.obj())); in SetUp() 99 Java_MockAwContentsClientBridge_getKeyTypes(env_, jbridge_.obj()); in TestCertType() [all …]
|
D | input_stream_unittest.cc | 39 env_ = AttachCurrentThread(); in SetUp() 40 ASSERT_THAT(env_, NotNull()); in SetUp() 41 ASSERT_TRUE(android_webview::RegisterInputStream(env_)); in SetUp() 42 ASSERT_TRUE(RegisterNativesImpl(env_)); in SetUp() 49 Java_InputStreamUnittest_getCountingStream(env_, stream_size); in DoReadCountedStreamTest() 60 JNIEnv* env_; member in InputStreamTest 65 Java_InputStreamUnittest_getEmptyStream(env_); in TEST_F() 125 Java_InputStreamUnittest_getThrowingStream(env_); in TEST_F()
|
/external/chromium_org/base/android/ |
D | scoped_java_ref.h | 29 JNIEnv* env_; 102 ScopedJavaLocalRef() : env_(NULL) {} in ScopedJavaLocalRef() 107 : env_(other.env_) { in ScopedJavaLocalRef() 108 this->SetNewLocalRef(env_, other.obj()); in ScopedJavaLocalRef() 113 : env_(NULL) { in ScopedJavaLocalRef() 119 ScopedJavaLocalRef(JNIEnv* env, T obj) : JavaRef<T>(env, obj), env_(env) {} in ScopedJavaLocalRef() 132 this->ResetLocalRef(env_); in Reset() 140 this->Reset(other.env_, other.obj()); in Reset() 147 this->Reset(env_, other.obj()); in Reset() 153 env_ = this->SetNewLocalRef(env, obj); in Reset() [all …]
|
D | scoped_java_ref.cc | 18 ScopedJavaLocalFrame::ScopedJavaLocalFrame(JNIEnv* env) : env_(env) { in ScopedJavaLocalFrame() 19 int failed = env_->PushLocalFrame(kDefaultLocalFrameCapacity); in ScopedJavaLocalFrame() 24 : env_(env) { in ScopedJavaLocalFrame() 25 int failed = env_->PushLocalFrame(capacity); in ScopedJavaLocalFrame() 29 ScopedJavaLocalFrame::~ScopedJavaLocalFrame() { env_->PopLocalFrame(NULL); } in ~ScopedJavaLocalFrame()
|
D | trace_event_binding.cc | 31 : env_(env), in TraceEventDataConverter() 38 env_->ReleaseStringUTFChars(jname_, name_); in ~TraceEventDataConverter() 40 env_->ReleaseStringUTFChars(jarg_, arg_); in ~TraceEventDataConverter() 49 JNIEnv* env_; member in base::android::__anonb5d98f670111::TraceEventDataConverter
|
/external/chromium_org/third_party/leveldatabase/src/util/ |
D | env_test.cc | 20 Env* env_; member in leveldb::EnvPosixTest 21 EnvPosixTest() : env_(Env::Default()) { } in EnvPosixTest() 30 env_->Schedule(&SetBool, &called); in TEST() 57 env_->Schedule(&CB::Run, &cb1); in TEST() 58 env_->Schedule(&CB::Run, &cb2); in TEST() 59 env_->Schedule(&CB::Run, &cb3); in TEST() 60 env_->Schedule(&CB::Run, &cb4); in TEST() 86 env_->StartThread(&ThreadBody, &state); in TEST()
|
/external/chromium_org/third_party/leveldatabase/src/db/ |
D | repair.cc | 49 env_(options.env), in Repairer() 101 Env* const env_; member in leveldb::__anon150b94c70111::Repairer 118 Status status = env_->GetChildren(dbname_, &filenames); in FindFiles() 179 Status status = env_->NewSequentialFile(logname, &lfile); in ConvertLogToTable() 186 reporter.env = env_; in ConvertLogToTable() 227 status = BuildTable(dbname_, env_, options_, table_cache_, iter, &meta); in ConvertLogToTable() 262 Status status = env_->GetFileSize(fname, &t.meta.file_size); in ScanTable() 266 Status s2 = env_->GetFileSize(fname, &t.meta.file_size); in ScanTable() 328 Status s = env_->NewWritableFile(copy, &file); in RepairTable() 363 s = env_->RenameFile(copy, orig); in RepairTable() [all …]
|
D | db_test.cc | 94 SpecialEnv* env_; in NewWritableFile() member in leveldb::SpecialEnv::NewWritableFile::DataFile 99 : env_(env), in NewWritableFile() 104 if (env_->no_space_.Acquire_Load() != NULL) { in NewWritableFile() 114 if (env_->data_sync_error_.Acquire_Load() != NULL) { in NewWritableFile() 117 while (env_->delay_data_sync_.Acquire_Load() != NULL) { in NewWritableFile() 125 SpecialEnv* env_; in NewWritableFile() member in leveldb::SpecialEnv::NewWritableFile::ManifestFile 128 ManifestFile(SpecialEnv* env, WritableFile* b) : env_(env), base_(b) { } in NewWritableFile() 131 if (env_->manifest_write_error_.Acquire_Load() != NULL) { in NewWritableFile() 140 if (env_->manifest_sync_error_.Acquire_Load() != NULL) { in NewWritableFile() 204 SpecialEnv* env_; member in leveldb::DBTest [all …]
|
D | corruption_test.cc | 29 test::ErrorEnv env_; member in leveldb::CorruptionTest 37 options_.env = &env_; in CorruptionTest() 129 ASSERT_OK(env_.GetChildren(dbname_, &filenames)); in Corrupt() 214 env_.writable_file_error_ = true; in TEST() 221 env_.writable_file_error_ = true; in TEST() 231 ASSERT_GE(env_.num_writable_file_errors_, 1); in TEST() 232 env_.writable_file_error_ = false; in TEST() 344 env_.SleepForMicroseconds(100000); in TEST()
|
D | db_impl.cc | 117 : env_(raw_options.env), in DBImpl() 158 env_->UnlockFile(db_lock_); in ~DBImpl() 186 Status s = env_->NewWritableFile(manifest, &file); in NewDB() 202 s = SetCurrentFile(env_, dbname_, 1); in NewDB() 204 env_->DeleteFile(manifest); in NewDB() 230 env_->GetChildren(dbname_, &filenames); // Ignoring errors on purpose in DeleteObsoleteFiles() 268 env_->DeleteFile(dbname_ + "/" + filenames[i]); in DeleteObsoleteFiles() 280 env_->CreateDir(dbname_); in Recover() 282 Status s = env_->LockFile(LockFileName(dbname_), &db_lock_); in Recover() 287 if (!env_->FileExists(CurrentFileName(dbname_))) { in Recover() [all …]
|
D | table_cache.cc | 35 : env_(options->env), in TableCache() 56 s = env_->NewRandomAccessFile(fname, &file); in FindTable() 59 if (env_->NewRandomAccessFile(old_fname, &file).ok()) { in FindTable()
|
/external/chromium_org/sandbox/linux/suid/client/ |
D | setuid_sandbox_client.cc | 144 sandbox_client->env_ = environment; in Create() 149 : env_(NULL), in SetuidSandboxClient() 154 delete env_; in ~SetuidSandboxClient() 173 int ipc_fd = GetIPCDescriptor(env_); in ChrootMe() 186 pid_t helper_pid = GetHelperPID(env_); in ChrootMe() 217 return GetHelperApi(env_) == kSUIDSandboxApiNumber; in IsSuidSandboxUpToDate() 221 return GetIPCDescriptor(env_) >= 0; in IsSuidSandboxChild() 225 return env_->HasVar(kSandboxPIDNSEnvironmentVarName); in IsInNewPIDNamespace() 229 return env_->HasVar(kSandboxNETNSEnvironmentVarName); in IsInNewNETNamespace() 315 SaveSUIDUnsafeEnvironmentVariables(env_); in SetupLaunchEnvironment() [all …]
|
/external/chromium_org/chrome/browser/net/spdyproxy/ |
D | data_reduction_proxy_settings_unittest_android.cc | 102 env_ = base::android::AttachCurrentThread(); in SetUp() 103 DataReductionProxySettingsAndroid::Register(env_); in SetUp() 112 JNIEnv* env_; member in DataReductionProxySettingsAndroidTest 118 Settings()->GetDataReductionProxyOrigin(env_, NULL); in TEST_F() 132 Settings()->GetDataReductionProxyOrigin(env_, NULL); in TEST_F() 141 env_, data_reduction_proxy::prefs::kDailyHttpOriginalContentLength); in TEST_F() 144 jsize java_array_len = env_->GetArrayLength(result.obj()); in TEST_F() 150 env_->GetLongArrayRegion(result.obj(), i, 1, &value); in TEST_F()
|
/external/chromium_org/third_party/webrtc/modules/utility/source/ |
D | helpers_android.cc | 19 : attached_(false), jvm_(jvm), env_(NULL) { in AttachThreadScoped() 20 jint ret_val = jvm->GetEnv(reinterpret_cast<void**>(&env_), JNI_VERSION_1_4); in AttachThreadScoped() 23 ret_val = jvm_->AttachCurrentThread(&env_, NULL); in AttachThreadScoped() 35 JNIEnv* AttachThreadScoped::env() { return env_; } in env()
|
/external/chromium_org/components/autofill/core/browser/android/ |
D | auxiliary_profile_loader_android.cc | 15 env_, \ 52 env_ = env; in Init() 53 populator_ = Java_PersonalAutofillPopulator_create(env_, context); in Init() 110 env_, in GetEmailAddresses() 118 env_, in GetPhoneNumbers()
|
/external/chromium_org/android_webview/browser/ |
D | aw_form_database_service_unittest.cc | 38 env_ = AttachCurrentThread(); in SetUp() 39 ASSERT_TRUE(env_ != NULL); in SetUp() 40 ASSERT_TRUE(l10n_util::RegisterLocalizationUtil(env_)); in SetUp() 55 JNIEnv* env_; member in android_webview::AwFormDatabaseServiceTest
|
/external/chromium_org/ui/aura/test/ |
D | env_test_helper.h | 16 explicit EnvTestHelper(Env* env) : env_(env) {} in EnvTestHelper() 20 env_->input_state_lookup_ = input_state_lookup.Pass(); in SetInputStateLookup() 24 Env* env_;
|
/external/conscrypt/src/compat/native/ |
D | ScopedUtfChars.h | 34 ScopedUtfChars(JNIEnv* env, jstring s) : env_(env), string_(s) { in ScopedUtfChars() 45 env_->ReleaseStringUTFChars(string_, utf_chars_); in ~ScopedUtfChars() 62 JNIEnv* env_;
|
/external/chromium_org/chrome/browser/extensions/api/declarative/ |
D | rules_registry_with_cache_unittest.cc | 49 env_.GetExtensionPrefs(); // Force creation before adding extensions. in SetUp() 57 extension1_ = env_.MakeExtension(manifest_extra); in SetUp() 63 extension2_ = env_.MakeExtension(manifest_extra); in SetUp() 102 TestingProfile* profile() const { return env_.profile(); } in profile() 105 TestExtensionEnvironment env_; member in extensions::RulesRegistryWithCacheTest 226 ExtensionPrefs* extension_prefs = env_.GetExtensionPrefs(); in TEST_F() 228 TestingValueStore* store = env_.GetExtensionSystem()->value_store(); in TEST_F() 297 ExtensionPrefs* extension_prefs = env_.GetExtensionPrefs(); in TEST_F() 338 ExtensionService* extension_service = env_.GetExtensionService(); in TEST_F() 354 env_.GetExtensionSystem()->SetReady(); in TEST_F() [all …]
|
/external/chromium_org/content/browser/ |
D | utility_process_host_impl.cc | 44 env_(env), in UtilitySandboxedProcessLauncherDelegate() 66 return env_; in GetEnvironment() 80 base::EnvironmentMap env_; member in content::UtilitySandboxedProcessLauncherDelegate 168 env_ = env; in SetEnv() 261 no_sandbox_, env_, in StartProcess()
|
/external/chromium_org/apps/ |
D | saved_files_service_unittest.cc | 42 extension_ = env_.MakeExtension(*base::test::ParseJson( in SetUp() 53 service_ = SavedFilesService::Get(env_.profile()); in SetUp() 85 extensions::TestExtensionEnvironment env_; member in SavedFilesServiceUnitTest 151 extension_ = env_.MakeExtension(*base::test::ParseJson( in TEST_F()
|
/external/chromium_org/google_apis/ |
D | google_api_keys_unittest.cc | 55 GoogleAPIKeysTest() : env_(base::Environment::Create()) { in GoogleAPIKeysTest() 74 cache.was_set = env_->HasVar(cache.variable_name); in SetUp() 77 env_->GetVar(cache.variable_name, &cache.value); in SetUp() 78 env_->UnSetVar(cache.variable_name); in SetUp() 88 env_->SetVar(cache.variable_name, cache.value); in TearDown() 94 scoped_ptr<base::Environment> env_; member in GoogleAPIKeysTest
|
/external/chromium_org/content/browser/indexed_db/leveldb/ |
D | leveldb_database.cc | 89 env_.reset(); in ~LevelDBDatabase() 122 : env_(env), lock_(lock) {} in LockImpl() 123 virtual ~LockImpl() { env_->UnlockFile(lock_); } in ~LockImpl() 125 leveldb::Env* env_; member in content::__anon75b63bb40111::LockImpl 312 result->env_ = in_memory_env.Pass(); in OpenInMemory()
|
/external/chromium_org/v8/test/cctest/ |
D | test-log.cc | 65 env_(v8::Context::New(CcTest::isolate())), in ScopedLoggerInitializer() 67 env_->Enter(); in ScopedLoggerInitializer() 71 env_->Exit(); in ~ScopedLoggerInitializer() 78 v8::Handle<v8::Context>& env() { return env_; } in env() 104 v8::Handle<v8::Context> env_; member in __anonef5af6330111::ScopedLoggerInitializer
|