/frameworks/base/core/java/android/app/ |
D | SystemServiceRegistry.java | 225 public AccessibilityManager createService(ContextImpl ctx) { in registerService() argument 226 return AccessibilityManager.getInstance(ctx); in registerService() 232 public CaptioningManager createService(ContextImpl ctx) { in registerService() argument 233 return new CaptioningManager(ctx); in registerService() 239 public AccountManager createService(ContextImpl ctx) throws ServiceNotFoundException { in registerService() 242 return new AccountManager(ctx, service); in registerService() 248 public ActivityManager createService(ContextImpl ctx) { in registerService() 249 return new ActivityManager(ctx.getOuterContext(), ctx.mMainThread.getHandler()); in registerService() 255 public ActivityTaskManager createService(ContextImpl ctx) { in registerService() 257 ctx.getOuterContext(), ctx.mMainThread.getHandler()); in registerService() [all …]
|
/frameworks/base/services/core/jni/BroadcastRadio/ |
D | Tuner.cpp | 118 auto ctx = new TunerContext(); in nativeInit() local 119 ctx->mHalRev = static_cast<HalRevision>(halRev); in nativeInit() 120 ctx->mWithAudio = withAudio; in nativeInit() 121 ctx->mBand = static_cast<Band>(band); in nativeInit() 123 static_assert(sizeof(jlong) >= sizeof(ctx), "jlong is smaller than a pointer"); in nativeInit() 124 return reinterpret_cast<jlong>(ctx); in nativeInit() 131 auto ctx = reinterpret_cast<TunerContext*>(nativeContext); in nativeFinalize() local 132 delete ctx; in nativeFinalize() 160 auto& ctx = getNativeContext(env, jTuner); in assignHalInterfaces() local 162 if (ctx.mIsClosed) { in assignHalInterfaces() [all …]
|
D | BroadcastRadioService.cpp | 116 auto ctx = reinterpret_cast<ServiceContext*>(nativeContext); in nativeFinalize() local 117 delete ctx; in nativeFinalize() 123 auto& ctx = getNativeContext(nativeContext); in nativeLoadModules() local 139 ctx.mModules.clear(); in nativeLoadModules() 172 auto idx = ctx.mModules.size(); in nativeLoadModules() 173 ctx.mModules.push_back({module10, halRev, {}}); in nativeLoadModules() 174 auto& nModule = ctx.mModules[idx]; in nativeLoadModules() 208 auto& ctx = getNativeContext(nativeContext); in nativeOpenTuner() local 215 if (moduleId < 0 || static_cast<size_t>(moduleId) >= ctx.mModules.size()) { in nativeOpenTuner() 221 auto module = ctx.mModules[moduleId]; in nativeOpenTuner()
|
/frameworks/base/media/jni/ |
D | android_media_ImageReader.cpp | 235 JNIImageReaderContext *ctx; in ImageReader_getContext() local 236 ctx = reinterpret_cast<JNIImageReaderContext *> in ImageReader_getContext() 238 return ctx; in ImageReader_getContext() 244 JNIImageReaderContext* const ctx = ImageReader_getContext(env, thiz); in ImageReader_getProducer() local 245 if (ctx == NULL) { in ImageReader_getProducer() 250 return ctx->getProducer(); in ImageReader_getProducer() 254 jobject thiz, sp<JNIImageReaderContext> ctx) in ImageReader_setNativeContext() argument 258 if (ctx != 0) { in ImageReader_setNativeContext() 259 ctx->incStrong((void*)ImageReader_setNativeContext); in ImageReader_setNativeContext() 265 reinterpret_cast<jlong>(ctx.get())); in ImageReader_setNativeContext() [all …]
|
D | android_media_ImageWriter.cpp | 359 sp<JNIImageWriterContext> ctx(new JNIImageWriterContext(env, weakThiz, clazz)); in ImageWriter_init() local 362 ctx->setProducer(producer); in ImageWriter_init() 368 res = producer->connect(/*api*/NATIVE_WINDOW_API_CAMERA, /*listener*/ctx); in ImageWriter_init() 376 jlong nativeCtx = reinterpret_cast<jlong>(ctx.get()); in ImageWriter_init() 386 ctx->setBufferWidth(width); in ImageWriter_init() 393 ctx->setBufferHeight(height); in ImageWriter_init() 406 ctx->setBufferFormat(surfaceFormat); in ImageWriter_init() 439 if (ctx != 0) { in ImageWriter_init() 440 ctx->incStrong((void*)ImageWriter_init); in ImageWriter_init() 447 JNIImageWriterContext* const ctx = reinterpret_cast<JNIImageWriterContext *>(nativeCtx); in ImageWriter_dequeueImage() local [all …]
|
/frameworks/base/services/core/java/com/android/server/biometrics/face/ |
D | FaceUtils.java | 54 public List<Face> getBiometricsForUser(Context ctx, int userId) { in getBiometricsForUser() argument 55 return getStateForUser(ctx, userId).getBiometrics(); in getBiometricsForUser() 59 public void addBiometricForUser(Context ctx, int userId, in addBiometricForUser() argument 61 getStateForUser(ctx, userId).addBiometric(identifier); in addBiometricForUser() 65 public void removeBiometricForUser(Context ctx, int userId, int faceId) { in removeBiometricForUser() argument 66 getStateForUser(ctx, userId).removeBiometric(faceId); in removeBiometricForUser() 70 public void renameBiometricForUser(Context ctx, int userId, int faceId, CharSequence name) { in renameBiometricForUser() argument 75 getStateForUser(ctx, userId).renameBiometric(faceId, name); in renameBiometricForUser() 83 private FaceUserState getStateForUser(Context ctx, int userId) { in getStateForUser() argument 87 state = new FaceUserState(ctx, userId); in getStateForUser()
|
/frameworks/base/core/jni/ |
D | eventlog_helper.h | 77 android_log_event_list ctx(tag); in writeEventInteger() 78 ctx << (int32_t)value; in writeEventInteger() 79 return ctx.write(LogID); in writeEventInteger() 83 android_log_event_list ctx(tag); in writeEventLong() 84 ctx << (int64_t)value; in writeEventLong() 85 return ctx.write(LogID); in writeEventLong() 89 android_log_event_list ctx(tag); in writeEventFloat() 90 ctx << (float)value; in writeEventFloat() 91 return ctx.write(LogID); in writeEventFloat() 95 android_log_event_list ctx(tag); in writeEventString() [all …]
|
/frameworks/rs/tests/java_api/RsTest_11/src/com/android/rs/test/ |
D | UnitTest.java | 37 protected UnitTest(RSTestCore rstc, String n, int initResult, Context ctx) { in UnitTest() argument 42 mCtx = ctx; in UnitTest() 47 protected UnitTest(RSTestCore rstc, String n, Context ctx) { in UnitTest() argument 48 this(rstc, n, 0, ctx); in UnitTest() 51 protected UnitTest(RSTestCore rstc, Context ctx) { in UnitTest() argument 52 this (rstc, "<Unknown>", ctx); in UnitTest() 55 protected UnitTest(Context ctx) { in UnitTest() argument 56 this (null, ctx); in UnitTest()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/accessibility/ |
D | AccessibilityButtonHelper.java | 31 public static boolean isRequestedByMagnification(Context ctx) { in isRequestedByMagnification() argument 32 return Settings.Secure.getInt(ctx.getContentResolver(), in isRequestedByMagnification() 36 public static boolean isRequestedByAccessibilityService(Context ctx) { in isRequestedByAccessibilityService() argument 37 final AccessibilityManager accessibilityManager = ctx.getSystemService( in isRequestedByAccessibilityService() 54 public static boolean isRequested(Context ctx) { in isRequested() argument 55 return isRequestedByMagnification(ctx) || isRequestedByAccessibilityService(ctx); in isRequested()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/animation/ |
D | DisappearAnimationUtils.java | 28 public DisappearAnimationUtils(Context ctx) { in DisappearAnimationUtils() argument 29 this(ctx, DEFAULT_APPEAR_DURATION, in DisappearAnimationUtils() 31 AnimationUtils.loadInterpolator(ctx, android.R.interpolator.fast_out_linear_in)); in DisappearAnimationUtils() 34 public DisappearAnimationUtils(Context ctx, long duration, float translationScaleFactor, in DisappearAnimationUtils() argument 36 this(ctx, duration, translationScaleFactor, delayScaleFactor, interpolator, in DisappearAnimationUtils() 40 public DisappearAnimationUtils(Context ctx, long duration, float translationScaleFactor, in DisappearAnimationUtils() argument 42 super(ctx, duration, translationScaleFactor, delayScaleFactor, interpolator); in DisappearAnimationUtils()
|
/frameworks/rs/tests/java_api/RsTest_16/src/com/android/rs/test/ |
D | UnitTest.java | 37 protected UnitTest(RSTestCore rstc, String n, int initResult, Context ctx) { in UnitTest() argument 42 mCtx = ctx; in UnitTest() 47 protected UnitTest(RSTestCore rstc, String n, Context ctx) { in UnitTest() argument 48 this(rstc, n, 0, ctx); in UnitTest() 51 protected UnitTest(RSTestCore rstc, Context ctx) { in UnitTest() argument 52 this (rstc, "<Unknown>", ctx); in UnitTest() 55 protected UnitTest(Context ctx) { in UnitTest() argument 56 this (null, ctx); in UnitTest()
|
/frameworks/rs/tests/java_api/RsTest_14/src/com/android/rs/test/ |
D | UnitTest.java | 37 protected UnitTest(RSTestCore rstc, String n, int initResult, Context ctx) { in UnitTest() argument 42 mCtx = ctx; in UnitTest() 47 protected UnitTest(RSTestCore rstc, String n, Context ctx) { in UnitTest() argument 48 this(rstc, n, 0, ctx); in UnitTest() 51 protected UnitTest(RSTestCore rstc, Context ctx) { in UnitTest() argument 52 this (rstc, "<Unknown>", ctx); in UnitTest() 55 protected UnitTest(Context ctx) { in UnitTest() argument 56 this (null, ctx); in UnitTest()
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/ |
D | protobuf.bzl | 3 def _GetPath(ctx, path): 4 if ctx.label.workspace_root: 5 return ctx.label.workspace_root + '/' + path 9 def _GenDir(ctx): 10 if not ctx.attr.includes: 11 return ctx.label.workspace_root 12 if not ctx.attr.includes[0]: 13 return _GetPath(ctx, ctx.label.package) 14 if not ctx.label.package: 15 return _GetPath(ctx, ctx.attr.includes[0]) [all …]
|
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/ |
D | UnitTest.java | 37 protected UnitTest(RSTestCore rstc, String n, int initResult, Context ctx) { in UnitTest() argument 42 mCtx = ctx; in UnitTest() 47 protected UnitTest(RSTestCore rstc, String n, Context ctx) { in UnitTest() argument 48 this(rstc, n, 0, ctx); in UnitTest() 51 protected UnitTest(RSTestCore rstc, Context ctx) { in UnitTest() argument 52 this (rstc, "<Unknown>", ctx); in UnitTest() 55 protected UnitTest(Context ctx) { in UnitTest() argument 56 this (null, ctx); in UnitTest()
|
/frameworks/rs/rsov/tests/RSoVTest/src/com/android/rs/rsov/test/ |
D | UnitTest.java | 40 protected UnitTest(RSoVTestCore rstc, String n, int initResult, Context ctx) { in UnitTest() argument 45 mCtx = ctx; in UnitTest() 50 protected UnitTest(RSoVTestCore rstc, String n, Context ctx) { in UnitTest() argument 51 this(rstc, n, 0, ctx); in UnitTest() 54 protected UnitTest(RSoVTestCore rstc, Context ctx) { in UnitTest() argument 55 this(rstc, "<Unknown>", ctx); in UnitTest() 58 protected UnitTest(Context ctx) { in UnitTest() argument 59 this(null, ctx); in UnitTest()
|
/frameworks/base/core/tests/coretests/src/android/provider/ |
D | FontsContractE2ETest.java | 117 Context ctx = inst.getTargetContext(); in typefaceCacheTest() local 123 FontsContract.requestFonts(ctx, request, new Handler(), null, callback); in typefaceCacheTest() 134 FontsContract.requestFonts(ctx, request, new Handler(), null, callback2); in typefaceCacheTest() 145 FontsContract.requestFonts(ctx, request, new Handler(), null, callback3); in typefaceCacheTest() 156 Context ctx = inst.getTargetContext(); in typefaceNotCacheTest() local 161 ctx, null /* cancellation signal */, request); in typefaceNotCacheTest() 164 ctx, null /* cancellation signal */, result.getFonts()); in typefaceNotCacheTest() 167 ctx, null /* cancellation signal */, request); in typefaceNotCacheTest() 170 ctx, null /* cancellation signal */, result2.getFonts()); in typefaceNotCacheTest() 179 Context ctx = inst.getTargetContext(); in typefaceNullFdTest() local [all …]
|
/frameworks/base/services/core/java/com/android/server/connectivity/tethering/ |
D | TetheringConfiguration.java | 102 public TetheringConfiguration(Context ctx, SharedLog log, int id) { in TetheringConfiguration() argument 106 Resources res = getResources(ctx, subId); in TetheringConfiguration() 115 isDunRequired = checkDunRequired(ctx); in TetheringConfiguration() 122 enableLegacyDhcpServer = getEnableLegacyDhcpServer(ctx); in TetheringConfiguration() 231 public static boolean checkDunRequired(Context ctx) { in checkDunRequired() argument 232 final TelephonyManager tm = (TelephonyManager) ctx.getSystemService(TELEPHONY_SERVICE); in checkDunRequired() 327 private static boolean getEnableLegacyDhcpServer(Context ctx) { in getEnableLegacyDhcpServer() argument 328 final ContentResolver cr = ctx.getContentResolver(); in getEnableLegacyDhcpServer() 333 private Resources getResources(Context ctx, int subId) { in getResources() argument 335 return getResourcesForSubIdWrapper(ctx, subId); in getResources() [all …]
|
D | TetheringDependencies.java | 48 public UpstreamNetworkMonitor getUpstreamNetworkMonitor(Context ctx, StateMachine target, in getUpstreamNetworkMonitor() argument 50 return new UpstreamNetworkMonitor(ctx, target, log, what); in getUpstreamNetworkMonitor() 85 public EntitlementManager getEntitlementManager(Context ctx, StateMachine target, in getEntitlementManager() argument 87 return new EntitlementManager(ctx, target, log, what, systemProperties); in getEntitlementManager()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/wrapper/ |
D | NotificationViewWrapper.java | 54 public static NotificationViewWrapper wrap(Context ctx, View v, ExpandableNotificationRow row) { in wrap() argument 57 return new NotificationBigPictureTemplateViewWrapper(ctx, v, row); in wrap() 59 return new NotificationBigTextTemplateViewWrapper(ctx, v, row); in wrap() 61 return new NotificationMediaTemplateViewWrapper(ctx, v, row); in wrap() 63 return new NotificationMessagingTemplateViewWrapper(ctx, v, row); in wrap() 68 return new NotificationDecoratedCustomViewWrapper(ctx, v, row); in wrap() 70 return new NotificationTemplateViewWrapper(ctx, v, row); in wrap() 72 return new NotificationHeaderViewWrapper(ctx, v, row); in wrap() 74 return new NotificationCustomViewWrapper(ctx, v, row); in wrap() 78 protected NotificationViewWrapper(Context ctx, View view, ExpandableNotificationRow row) { in NotificationViewWrapper() argument
|
/frameworks/av/camera/ndk/impl/ |
D | ACaptureRequest.h | 53 camera_status_t setContext(void* ctx) { in setContext() 54 context = ctx; in setContext() 58 camera_status_t getContext(void** ctx) const { in getContext() 59 *ctx = context; in getContext()
|
/frameworks/base/tools/aapt2/optimize/ |
D | MultiApkGenerator_test.cpp | 110 std::unique_ptr<IAaptContext> ctx = test::ContextBuilder().SetMinSdkVersion(19).Build(); in TEST_F() local 115 MultiApkGeneratorWrapper generator{&apk, ctx.get()}; in TEST_F() 117 generator.FilterTable(ctx.get(), artifact, *apk.GetResourceTable(), &chain); in TEST_F() 137 std::unique_ptr<IAaptContext> ctx = test::ContextBuilder().SetMinSdkVersion(1).Build(); in TEST_F() local 142 MultiApkGeneratorWrapper generator{&apk, ctx.get()};; in TEST_F() 144 generator.FilterTable(ctx.get(), artifact, *apk.GetResourceTable(), &chain); in TEST_F() 162 std::unique_ptr<IAaptContext> ctx = test::ContextBuilder().SetMinSdkVersion(1).Build(); in TEST_F() local 167 MultiApkGeneratorWrapper generator{&apk, ctx.get()}; in TEST_F() 169 generator.FilterTable(ctx.get(), artifact, *apk.GetResourceTable(), &chain); in TEST_F()
|
/frameworks/rs/cpu_ref/ |
D | rsCpuIntrinsicLUT.cpp | 33 RsdCpuScriptIntrinsicLUT(RsdCpuReferenceImpl *ctx, const Script *s, const Element *e); 76 RsdCpuScriptIntrinsicLUT::RsdCpuScriptIntrinsicLUT(RsdCpuReferenceImpl *ctx, in RsdCpuScriptIntrinsicLUT() argument 78 : RsdCpuScriptIntrinsic(ctx, s, e, RS_SCRIPT_INTRINSIC_ID_LUT) { in RsdCpuScriptIntrinsicLUT() 94 RsdCpuScriptImpl * rsdIntrinsic_LUT(RsdCpuReferenceImpl *ctx, in rsdIntrinsic_LUT() argument 97 return new RsdCpuScriptIntrinsicLUT(ctx, s, e); in rsdIntrinsic_LUT()
|
/frameworks/native/opengl/libs/EGL/ |
D | egl_tls.cpp | 32 : error(EGL_SUCCESS), ctx(nullptr), logCallWithNoContext(true) { in egl_tls_t() 157 void egl_tls_t::setContext(EGLContext ctx) { in setContext() argument 159 getTLS()->ctx = ctx; in setContext() 168 return tls->ctx; in getContext()
|
/frameworks/base/services/backup/java/com/android/server/backup/ |
D | KeyValueBackupJob.java | 66 public static void schedule(int userId, Context ctx, BackupManagerConstants constants) { in schedule() argument 67 schedule(userId, ctx, 0, constants); in schedule() 70 public static void schedule(int userId, Context ctx, long delay, in schedule() argument 106 JobScheduler js = (JobScheduler) ctx.getSystemService(Context.JOB_SCHEDULER_SERVICE); in schedule() 114 public static void cancel(int userId, Context ctx) { in cancel() argument 116 JobScheduler js = (JobScheduler) ctx.getSystemService( in cancel()
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/ruby/src/main/java/com/google/protobuf/jruby/ |
D | RubyBuilder.java | 91 … IRubyObject ctx = cMessageBuilderContext.newInstance(context, msgdef, this, Block.NULL_BLOCK); in addMessage() local 95 block.yield(context, ctx); in addMessage() 98 binding.setSelf(ctx); in addMessage() 119 IRubyObject ctx = cEnumBuilderContext.newInstance(context, enumDef, Block.NULL_BLOCK); in addEnum() local 124 block.yield(context, ctx); in addEnum() 127 binding.setSelf(ctx); in addEnum()
|