Lines Matching refs:runtime_flags

162 static uint32_t EnableDebugFeatures(uint32_t runtime_flags) {  in EnableDebugFeatures()  argument
164 if ((runtime_flags & DEBUG_ENABLE_CHECKJNI) != 0) { in EnableDebugFeatures()
174 runtime_flags &= ~DEBUG_ENABLE_CHECKJNI; in EnableDebugFeatures()
177 if ((runtime_flags & DEBUG_ENABLE_JNI_LOGGING) != 0) { in EnableDebugFeatures()
179 runtime_flags &= ~DEBUG_ENABLE_JNI_LOGGING; in EnableDebugFeatures()
182 Dbg::SetJdwpAllowed((runtime_flags & DEBUG_ENABLE_JDWP) != 0); in EnableDebugFeatures()
183 runtime_flags &= ~DEBUG_ENABLE_JDWP; in EnableDebugFeatures()
185 const bool safe_mode = (runtime_flags & DEBUG_ENABLE_SAFEMODE) != 0; in EnableDebugFeatures()
190 runtime_flags &= ~DEBUG_ENABLE_SAFEMODE; in EnableDebugFeatures()
194 runtime_flags &= ~DEBUG_ENABLE_ASSERT; in EnableDebugFeatures()
196 if ((runtime_flags & DEBUG_ALWAYS_JIT) != 0) { in EnableDebugFeatures()
202 runtime_flags &= ~DEBUG_ALWAYS_JIT; in EnableDebugFeatures()
206 if ((runtime_flags & DEBUG_JAVA_DEBUGGABLE) != 0) { in EnableDebugFeatures()
208 runtime_flags |= DEBUG_GENERATE_MINI_DEBUG_INFO; in EnableDebugFeatures()
215 runtime_flags &= ~DEBUG_JAVA_DEBUGGABLE; in EnableDebugFeatures()
222 if ((runtime_flags & DEBUG_NATIVE_DEBUGGABLE) != 0) { in EnableDebugFeatures()
224 runtime_flags |= DEBUG_GENERATE_DEBUG_INFO; in EnableDebugFeatures()
226 runtime_flags &= ~DEBUG_NATIVE_DEBUGGABLE; in EnableDebugFeatures()
229 if ((runtime_flags & DEBUG_GENERATE_MINI_DEBUG_INFO) != 0) { in EnableDebugFeatures()
232 runtime_flags &= ~DEBUG_GENERATE_MINI_DEBUG_INFO; in EnableDebugFeatures()
235 if ((runtime_flags & DEBUG_GENERATE_DEBUG_INFO) != 0) { in EnableDebugFeatures()
238 runtime_flags &= ~DEBUG_GENERATE_DEBUG_INFO; in EnableDebugFeatures()
241 if ((runtime_flags & DEBUG_IGNORE_APP_SIGNAL_HANDLER) != 0) { in EnableDebugFeatures()
243 runtime_flags &= ~DEBUG_IGNORE_APP_SIGNAL_HANDLER; in EnableDebugFeatures()
246 runtime->SetProfileableFromShell((runtime_flags & PROFILE_FROM_SHELL) != 0); in EnableDebugFeatures()
247 runtime_flags &= ~PROFILE_FROM_SHELL; in EnableDebugFeatures()
249 return runtime_flags; in EnableDebugFeatures()
268 jint runtime_flags) { in ZygoteHooks_nativePostForkSystemServer() argument
284 bool profile_system_server = (runtime_flags & PROFILE_SYSTEM_SERVER) == PROFILE_SYSTEM_SERVER; in ZygoteHooks_nativePostForkSystemServer()
291 jint runtime_flags, in ZygoteHooks_nativePostForkChild() argument
303 runtime_flags = EnableDebugFeatures(runtime_flags); in ZygoteHooks_nativePostForkChild()
308 if ((runtime_flags & DISABLE_VERIFIER) != 0) { in ZygoteHooks_nativePostForkChild()
310 runtime_flags &= ~DISABLE_VERIFIER; in ZygoteHooks_nativePostForkChild()
313 if ((runtime_flags & ONLY_USE_SYSTEM_OAT_FILES) != 0 || is_system_server) { in ZygoteHooks_nativePostForkChild()
315 runtime_flags &= ~ONLY_USE_SYSTEM_OAT_FILES; in ZygoteHooks_nativePostForkChild()
319 (runtime_flags & HIDDEN_API_ENFORCEMENT_POLICY_MASK) >> API_ENFORCEMENT_POLICY_SHIFT); in ZygoteHooks_nativePostForkChild()
320 runtime_flags &= ~HIDDEN_API_ENFORCEMENT_POLICY_MASK; in ZygoteHooks_nativePostForkChild()
322 if ((runtime_flags & DISABLE_TEST_API_ENFORCEMENT_POLICY) != 0u) { in ZygoteHooks_nativePostForkChild()
327 runtime_flags &= ~DISABLE_TEST_API_ENFORCEMENT_POLICY; in ZygoteHooks_nativePostForkChild()
329 bool profile_system_server = (runtime_flags & PROFILE_SYSTEM_SERVER) == PROFILE_SYSTEM_SERVER; in ZygoteHooks_nativePostForkChild()
330 runtime_flags &= ~PROFILE_SYSTEM_SERVER; in ZygoteHooks_nativePostForkChild()
333 (runtime_flags & USE_APP_IMAGE_STARTUP_CACHE) != 0u); in ZygoteHooks_nativePostForkChild()
334 runtime_flags &= ~USE_APP_IMAGE_STARTUP_CACHE; in ZygoteHooks_nativePostForkChild()
336 if (runtime_flags != 0) { in ZygoteHooks_nativePostForkChild()
337 LOG(ERROR) << StringPrintf("Unknown bits set in runtime_flags: %#x", runtime_flags); in ZygoteHooks_nativePostForkChild()