/frameworks/base/core/java/android/app/ |
D | SystemServiceRegistry.java | 249 public AccessibilityManager createService(ContextImpl ctx) { in registerService() argument 250 return AccessibilityManager.getInstance(ctx); in registerService() 256 public CaptioningManager createService(ContextImpl ctx) { in registerService() argument 257 return new CaptioningManager(ctx); in registerService() 263 public AccountManager createService(ContextImpl ctx) throws ServiceNotFoundException { in registerService() 266 return new AccountManager(ctx, service); in registerService() 272 public ActivityManager createService(ContextImpl ctx) { in registerService() 273 return new ActivityManager(ctx.getOuterContext(), ctx.mMainThread.getHandler()); in registerService() 279 public ActivityTaskManager createService(ContextImpl ctx) { in registerService() 281 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 …]
|
/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 | 385 sp<JNIImageWriterContext> ctx(new JNIImageWriterContext(env, weakThiz, clazz)); in ImageWriter_init() local 388 ctx->setProducer(producer); in ImageWriter_init() 394 res = producer->connect(/*api*/NATIVE_WINDOW_API_CAMERA, /*listener*/ctx); in ImageWriter_init() 402 jlong nativeCtx = reinterpret_cast<jlong>(ctx.get()); in ImageWriter_init() 412 ctx->setBufferWidth(width); in ImageWriter_init() 419 ctx->setBufferHeight(height); in ImageWriter_init() 452 ctx->setBufferFormat(surfaceFormat); in ImageWriter_init() 485 if (ctx != 0) { in ImageWriter_init() 486 ctx->incStrong((void*)ImageWriter_init); in ImageWriter_init() 493 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/native/libs/adbd_auth/include/ |
D | adbd_auth.h | 69 void adbd_auth_delete(AdbdAuthContext* ctx) __INTRODUCED_IN(30); 79 void adbd_auth_run(AdbdAuthContext* ctx) __INTRODUCED_IN(30); 90 void adbd_auth_get_public_keys(AdbdAuthContext* ctx, 102 uint64_t adbd_auth_notify_auth(AdbdAuthContext* ctx, 112 void adbd_auth_notify_disconnect(AdbdAuthContext* ctx, 125 void adbd_auth_prompt_user(AdbdAuthContext* ctx, const char* public_key, size_t len, void* opaque) 139 __attribute__((weak)) uint64_t adbd_auth_prompt_user_with_id(AdbdAuthContext* ctx, 152 uint64_t adbd_auth_tls_device_connected(AdbdAuthContext* ctx, 164 void adbd_auth_tls_device_disconnected(AdbdAuthContext* ctx,
|
/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/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/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/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_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/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_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/base/packages/Tethering/src/com/android/networkstack/tethering/ |
D | TetheringDependencies.java | 76 public UpstreamNetworkMonitor getUpstreamNetworkMonitor(Context ctx, StateMachine target, in getUpstreamNetworkMonitor() argument 78 return new UpstreamNetworkMonitor(ctx, target, log, what); in getUpstreamNetworkMonitor() 109 public EntitlementManager getEntitlementManager(Context ctx, Handler h, SharedLog log, in getEntitlementManager() argument 111 return new EntitlementManager(ctx, h, log, callback); in getEntitlementManager() 117 public TetheringConfiguration generateTetheringConfiguration(Context ctx, SharedLog log, in generateTetheringConfiguration() argument 119 return new TetheringConfiguration(ctx, log, subId); in generateTetheringConfiguration() 133 public TetheringNotificationUpdater getNotificationUpdater(@NonNull final Context ctx, in getNotificationUpdater() argument 135 return new TetheringNotificationUpdater(ctx, looper); in getNotificationUpdater()
|
/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/native/services/surfaceflinger/FrameTracer/ |
D | FrameTracer.cpp | 66 duration](FrameTracerDataSource::TraceContext ctx) { in traceTimestamp() argument 73 tracePendingFencesLocked(ctx, layerId, bufferID); in traceTimestamp() 76 traceLocked(ctx, layerId, bufferID, frameNumber, timestamp, type, duration); in traceTimestamp() 84 startTime](FrameTracerDataSource::TraceContext ctx) { in traceFence() argument 93 tracePendingFencesLocked(ctx, layerId, bufferID); in traceFence() 96 traceSpanLocked(ctx, layerId, bufferID, frameNumber, type, startTime, signalTime); in traceFence() 108 void FrameTracer::tracePendingFencesLocked(FrameTracerDataSource::TraceContext& ctx, in tracePendingFencesLocked() argument 125 traceSpanLocked(ctx, layerId, bufferID, pendingFence.frameNumber, pendingFence.type, in tracePendingFencesLocked() 135 void FrameTracer::traceLocked(FrameTracerDataSource::TraceContext& ctx, int32_t layerId, in traceLocked() argument 138 auto packet = ctx.NewTracePacket(); in traceLocked() [all …]
|
/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/native/cmds/servicemanager/ |
D | Access.cpp | 113 bool Access::canFind(const CallingContext& ctx,const std::string& name) { in canFind() argument 114 return actionAllowedFromLookup(ctx, name, "find"); in canFind() 117 bool Access::canAdd(const CallingContext& ctx, const std::string& name) { in canAdd() argument 118 return actionAllowedFromLookup(ctx, name, "add"); in canAdd() 121 bool Access::canList(const CallingContext& ctx) { in canList() argument 122 return actionAllowed(ctx, mThisProcessContext, "list", "service_manager"); in canList()
|
D | ServiceManager.cpp | 132 auto ctx = mAccess->getCallingContext(); in tryGetService() local 140 uid_t appid = multiuser_get_app_id(ctx.uid); in tryGetService() 150 if (!mAccess->canFind(ctx, name)) { in tryGetService() 183 auto ctx = mAccess->getCallingContext(); in addService() local 186 if (multiuser_get_app_id(ctx.uid) >= AID_APP) { in addService() 190 if (!mAccess->canAdd(ctx, name)) { in addService() 220 .debugPid = ctx.debugPid, in addService() 263 auto ctx = mAccess->getCallingContext(); in registerForNotifications() local 265 if (!mAccess->canFind(ctx, name)) { in registerForNotifications() 297 auto ctx = mAccess->getCallingContext(); in unregisterForNotifications() local [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/wrapper/ |
D | NotificationViewWrapper.java | 59 public static NotificationViewWrapper wrap(Context ctx, View v, ExpandableNotificationRow row) { in wrap() argument 62 return new NotificationBigPictureTemplateViewWrapper(ctx, v, row); in wrap() 64 return new NotificationBigTextTemplateViewWrapper(ctx, v, row); in wrap() 66 return new NotificationMediaTemplateViewWrapper(ctx, v, row); in wrap() 68 return new NotificationMessagingTemplateViewWrapper(ctx, v, row); in wrap() 70 return new NotificationConversationTemplateViewWrapper(ctx, (ConversationLayout) v, in wrap() 76 return new NotificationDecoratedCustomViewWrapper(ctx, v, row); in wrap() 78 return new NotificationTemplateViewWrapper(ctx, v, row); in wrap() 80 return new NotificationHeaderViewWrapper(ctx, v, row); in wrap() 82 return new NotificationCustomViewWrapper(ctx, v, row); in wrap() [all …]
|
/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/libs/adbd_auth/ |
D | adbd_auth.cpp | 534 void adbd_auth_delete(AdbdAuthContext* ctx) { in adbd_auth_delete() argument 535 delete ctx; in adbd_auth_delete() 538 void adbd_auth_run(AdbdAuthContext* ctx) { in adbd_auth_run() argument 539 return ctx->Run(); in adbd_auth_run() 542 void adbd_auth_get_public_keys(AdbdAuthContext* ctx, in adbd_auth_get_public_keys() argument 545 ctx->IteratePublicKeys(callback, opaque); in adbd_auth_get_public_keys() 548 uint64_t adbd_auth_notify_auth(AdbdAuthContext* ctx, const char* public_key, size_t len) { in adbd_auth_notify_auth() argument 549 return ctx->NotifyAuthenticated(std::string_view(public_key, len)); in adbd_auth_notify_auth() 552 void adbd_auth_notify_disconnect(AdbdAuthContext* ctx, uint64_t id) { in adbd_auth_notify_disconnect() argument 553 return ctx->NotifyDisconnected(id); in adbd_auth_notify_disconnect() [all …]
|
/frameworks/native/opengl/libs/EGL/ |
D | egl_tls.cpp | 32 : error(EGL_SUCCESS), ctx(nullptr), logCallWithNoContext(true) { in egl_tls_t() 155 void egl_tls_t::setContext(EGLContext ctx) { in setContext() argument 157 getTLS()->ctx = ctx; in setContext() 166 return tls->ctx; in getContext()
|
/frameworks/base/services/backup/java/com/android/server/backup/ |
D | KeyValueBackupJob.java | 67 public static void schedule(int userId, Context ctx, BackupManagerConstants constants) { in schedule() argument 68 schedule(userId, ctx, 0, constants); in schedule() 71 public static void schedule(int userId, Context ctx, long delay, in schedule() argument 107 JobScheduler js = (JobScheduler) ctx.getSystemService(Context.JOB_SCHEDULER_SERVICE); in schedule() 115 public static void cancel(int userId, Context ctx) { in cancel() argument 117 JobScheduler js = (JobScheduler) ctx.getSystemService( in cancel()
|