auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testParse0 ( ) throws java.lang.Exception { android.text.format.Time t = new android.text.format.Time ( android.text.format.Time.TIMEZONE_UTC ) ; assertFalse ( t.parse ( "12345678T901234" ) ) ; assertTrue ( t.parse ( "20081013T160000Z" ) ) ; assertEquals ( 2008 , t.year ) ; assertEquals ( 9 , t.month ) ; assertEquals ( 13 , t.monthDay ) ; assertEquals ( 16 , t.hour ) ; assertEquals ( 0 , t.minute ) ; assertEquals ( 0 , t.second ) ; }

Target:
public void testFormat_null ( ) { android.text.format.Time t = new android.text.format.Time ( android.text.format.Time.TIMEZONE_UTC ) ; assertEquals ( t.format ( "%c" ) , t.format ( null ) ) ; }
Source:
public boolean stopService ( android.content.Intent service ) { warnIfCallingFromSystemProcess ( ) ; return stopServiceAsUser ( service , mUser ) ; }

Target:
private void validateServiceIntent ( android.content.Intent service ) { if ( ( ( service.getComponent ( ) ) == null ) && ( ( service.getPackage ( ) ) == null ) ) { if ( true || ( ( getApplicationInfo ( ) . targetSdkVersion ) >= ( Build.VERSION_CODES.KITKAT ) ) ) { android.util.Log.w ( android.app.ContextImpl.TAG , ( ( ( "Implicit intents with startService are not safe: " + service ) + " " ) + ( android.os.Debug.getCallers ( 2 , 3 ) ) ) ) ; } } }
Source:
public static void send ( android.content.Context context , java.io.File file ) { final android.net.Uri bugreportUri = com.android.traceur.FileSender.getUriForFile ( context , file ) ; android.content.Intent sendIntent = com.android.traceur.FileSender.buildSendIntent ( context , bugreportUri ) ; sendIntent.addFlags ( Intent.FLAG_ACTIVITY_NEW_TASK ) ; context.startActivity ( sendIntent ) ; }

Target:
public static void send ( android.content.Context context , java.io.File file ) { final android.net.Uri traceUri = com.android.traceur.FileSender.getUriForFile ( context , file ) ; android.content.Intent sendIntent = com.android.traceur.FileSender.buildSendIntent ( context , traceUri ) ; sendIntent.addFlags ( Intent.FLAG_ACTIVITY_NEW_TASK ) ; context.startActivity ( sendIntent ) ; }
Source:
private void newLine ( ) { try { synchronized ( this ) { ensureOpen ( ) ; textOut.newLine ( ) ; textOut.flushBuffer ( ) ; charOut.flushBuffer ( ) ; if ( autoFlush ) out.flush ( ) ; } } catch ( java.io.InterruptedIOException x ) { java.lang.Thread.currentThread ( ) . interrupt ( ) ; } catch ( java.io.IOException x ) { trouble = true ; } }

Target:
private void newLine ( ) { try { synchronized ( this ) { ensureOpen ( ) ; java.io.BufferedWriter textOut = getTextOut ( ) ; textOut.newLine ( ) ; textOut.flushBuffer ( ) ; charOut.flushBuffer ( ) ; if ( autoFlush ) out.flush ( ) ; } } catch ( java.io.InterruptedIOException x ) { java.lang.Thread.currentThread ( ) . interrupt ( ) ; } catch ( java.io.IOException x ) { trouble = true ; } }
Source:
public void setActionBarUpIndicator ( android.graphics.drawable.Drawable themeImage , int contentDescRes ) { mActivity.getActionBar ( ) . setDisplayShowHomeEnabled ( true ) ; mSetIndicatorInfo = android.support.v7.app.ActionBarDrawerToggleHoneycomb.setActionBarUpIndicator ( mSetIndicatorInfo , mActivity , themeImage , contentDescRes ) ; mActivity.getActionBar ( ) . setDisplayShowHomeEnabled ( false ) ; }

Target:
public void setActionBarUpIndicator ( android.graphics.drawable.Drawable themeImage , int contentDescRes ) { final android.app.ActionBar actionBar = mActivity.getActionBar ( ) ; if ( actionBar != null ) { actionBar.setDisplayShowHomeEnabled ( true ) ; mSetIndicatorInfo = android.support.v7.app.ActionBarDrawerToggleHoneycomb.setActionBarUpIndicator ( mSetIndicatorInfo , mActivity , themeImage , contentDescRes ) ; actionBar.setDisplayShowHomeEnabled ( false ) ; } }
Source:
void saveProperties ( java.util.Properties props ) { super . saveProperties ( props ) ; mVersion.saveProperties ( props ) ; if ( ( mName ) != null ) { props.setProperty ( com.android.sdklib.internal.repository.AddonPackage.PROP_NAME , mName ) ; } if ( ( mVendor ) != null ) { props.setProperty ( com.android.sdklib.internal.repository.AddonPackage.PROP_VENDOR , mVendor ) ; } }

Target:
void saveProperties ( java.util.Properties props ) { super . saveProperties ( props ) ; mVersion.saveProperties ( props ) ; mLayoutlibVersion.saveProperties ( props ) ; if ( ( mName ) != null ) { props.setProperty ( com.android.sdklib.internal.repository.AddonPackage.PROP_NAME , mName ) ; } if ( ( mVendor ) != null ) { props.setProperty ( com.android.sdklib.internal.repository.AddonPackage.PROP_VENDOR , mVendor ) ; } }
Source:
void onUserInitialized ( com.android.server.am.UserState uss , boolean foreground , int oldUserId , int newUserId ) { synchronized ( this ) { if ( foreground ) { moveUserToForeground ( uss , oldUserId , newUserId ) ; } } completeSwitchAndInitialize ( uss , newUserId , true , false ) ; }

Target:
public android.app.ActivityManager.StackInfo getStackInfo ( int stackId ) { enforceCallingPermission ( android.Manifest.permission.MANAGE_ACTIVITY_STACKS , "getStackInfo()" ) ; long ident = android.os.Binder.clearCallingIdentity ( ) ; try { synchronized ( this ) { return mStackSupervisor.getStackInfoLocked ( stackId ) ; } } finally { android.os.Binder.restoreCallingIdentity ( ident ) ; } }
Source:
protected void dispatchBroadcastMessage ( android.telephony.SmsCbMessage message ) { if ( message.isEmergencyMessage ( ) ) { android.content.Intent intent = new android.content.Intent ( android.provider.Telephony.Sms.Intents.SMS_EMERGENCY_CB_RECEIVED_ACTION ) ; intent.putExtra ( "message" , message ) ; android.telephony.Rlog.d ( com.android.internal.telephony.SMSDispatcher.TAG , "Dispatching emergency SMS CB" ) ; dispatch ( intent , com.android.internal.telephony.SMSDispatcher.RECEIVE_EMERGENCY_BROADCAST_PERMISSION , AppOpsManager.OP_RECEIVE_EMERGECY_SMS ) ; } else { android.content.Intent intent = new android.content.Intent ( android.provider.Telephony.Sms.Intents.SMS_CB_RECEIVED_ACTION ) ; intent.putExtra ( "message" , message ) ; android.telephony.Rlog.d ( com.android.internal.telephony.SMSDispatcher.TAG , "Dispatching SMS CB" ) ; dispatch ( intent , com.android.internal.telephony.SMSDispatcher.RECEIVE_SMS_PERMISSION , AppOpsManager.OP_RECEIVE_SMS ) ; } }

Target:
public java.lang.String getImsSmsFormat ( ) { if ( ( mImsSMSDispatcher ) != null ) { return mImsSMSDispatcher.getImsSmsFormat ( ) ; } else { android.telephony.Rlog.e ( com.android.internal.telephony.SMSDispatcher.TAG , ( ( mImsSMSDispatcher ) + " is null" ) ) ; return null ; } }
Source:
public void dispose ( ) { if ( DBG ) log ( ( "Disposing SIMRecords this=" + ( this ) ) ) ; mCi.unregisterForIccRefresh ( this ) ; mCi.unSetOnSmsOnSim ( this ) ; mParentApp.unregisterForReady ( this ) ; mParentApp.unregisterForLocked ( this ) ; resetRecords ( ) ; super . dispose ( ) ; }

Target:
public void dispose ( ) { if ( DBG ) log ( ( "Disposing SIMRecords this=" + ( this ) ) ) ; mCi.unregisterForIccRefresh ( this ) ; mCi.unSetOnSmsOnSim ( this ) ; mParentApp.unregisterForReady ( this ) ; mParentApp.unregisterForLocked ( this ) ; mContext.unregisterReceiver ( mReceiver ) ; resetRecords ( ) ; super . dispose ( ) ; }
Source:
private static void assertFileContains ( java.io.File file , java.lang.String contents ) throws java.io.IOException { byte [ ] actual = libcore.io.Streams.readFully ( new java.io.FileInputStream ( file ) ) ; byte [ ] expected = contents.getBytes ( "UTF-8" ) ; org.junit.Assert.assertArrayEquals ( expected , actual ) ; }

Target:
private static void assertFileContains ( java.io.File file , java.lang.String contents ) throws java.io.IOException { byte [ ] actual = libcore.io.Streams.readFully ( new java.io.FileInputStream ( file ) ) ; byte [ ] expected = contents.getBytes ( "UTF-8" ) ; assertEquals ( "unexpected size" , expected.length , actual.length ) ; for ( int i = 0 ; i < ( expected.length ) ; i ++ ) { assertEquals ( ( "unexpected value at offset " + i ) , expected [ i ] , actual [ i ] ) ; } }
Source:
void copy3DRangeFromUnchecked ( int xoff , int yoff , int zoff , int w , int h , int d , byte [ ] data ) { mRS.validate ( ) ; validate3DRange ( xoff , yoff , zoff , w , h , d ) ; mRS.nAllocationData3D ( getIDSafe ( ) , xoff , yoff , zoff , mSelectedLOD , w , h , d , data , data.length , Element.DataType.SIGNED_8 ) ; }

Target:
public void copy2DRangeFrom ( int xoff , int yoff , int w , int h , short [ ] data ) { validateIsInt16 ( ) ; copy2DRangeFromUnchecked ( xoff , yoff , w , h , data , Element.DataType.SIGNED_16 , data.length ) ; }
Source:
public static java.nio.FloatBuffer wrap ( float [ ] array , int start , int floatCount ) { java.util.Arrays.checkOffsetAndCount ( array.length , start , floatCount ) ; java.nio.FloatBuffer buf = new java.nio.ReadWriteFloatArrayBuffer ( array ) ; buf.position = start ; buf.limit = start + floatCount ; return buf ; }

Target:
public static java.nio.FloatBuffer wrap ( float [ ] array , int start , int floatCount ) { java.util.Arrays.checkOffsetAndCount ( array.length , start , floatCount ) ; java.nio.FloatBuffer buf = new java.nio.FloatArrayBuffer ( array ) ; buf.position = start ; buf.limit = start + floatCount ; return buf ; }
Source:
public void copy1DRangeFromUnchecked ( int off , int count , float [ ] d ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copy1DRangeFromUnchecked" ) ; int dataSize = ( mType.mElement.getBytesSize ( ) ) * count ; data1DChecks ( off , count , ( ( d.length ) * 4 ) , dataSize ) ; mRS.nAllocationData1D ( getIDSafe ( ) , off , mSelectedLOD , count , d , dataSize , Element.DataType.FLOAT_32 ) ; android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }

Target:
public void copy1DRangeFromUnchecked ( int off , int count , java.lang.Object array ) { copy1DRangeFromUnchecked ( off , count , array , validateObjectIsPrimitiveArray ( array , false ) , java.lang.reflect.Array.getLength ( array ) ) ; }
Source:
public void test_EVP_SignInit ( ) throws java.lang.Exception { final org.conscrypt.OpenSSLDigestContext ctx = new org.conscrypt.OpenSSLDigestContext ( org.conscrypt.NativeCrypto.EVP_MD_CTX_create ( ) ) ; assertEquals ( 1 , org.conscrypt.NativeCrypto.EVP_SignInit ( ctx , org.conscrypt.NativeCrypto.EVP_get_digestbyname ( "SHA-256" ) ) ) ; try { org.conscrypt.NativeCrypto.EVP_SignInit ( ctx , 0 ) ; fail ( ) ; } catch ( java.lang.RuntimeException expected ) { } }

Target:
public void test_EVP_SignInit ( ) throws java.lang.Exception { final org.conscrypt.OpenSSLDigestContext ctx = new org.conscrypt.OpenSSLDigestContext ( org.conscrypt.NativeCrypto.EVP_MD_CTX_create ( ) ) ; assertEquals ( 1 , org.conscrypt.NativeCrypto.EVP_SignInit ( ctx , org.conscrypt.NativeCrypto.EVP_get_digestbyname ( "sha256" ) ) ) ; try { org.conscrypt.NativeCrypto.EVP_SignInit ( ctx , 0 ) ; fail ( ) ; } catch ( java.lang.RuntimeException expected ) { } }
Source:
protected void doBackup ( java.io.File toFile , java.io.File backupFile ) throws java.io.IOException { com.intellij.updater.Utils.copy ( toFile , backupFile ) ; }

Target:
public java.lang.String toString ( ) { java.lang.String moveInfo = "" ; if ( ! ( mySource.equals ( myPath ) ) ) { moveInfo = ( ( "[" + ( myIsMove ? "= " : "~ " ) ) + ( mySource ) ) + "]" ; } return ( super . toString ( ) ) + moveInfo ; }
Source:
public void testNetworkEventSerialization ( ) { android.net.ConnectivityMetricsEvent ev = com.android.server.connectivity.MetricsTestUtil.describeIpEvent ( com.android.server.connectivity.MetricsTestUtil.aType ( android.net.metrics.NetworkEvent.class ) , com.android.server.connectivity.MetricsTestUtil.anInt ( 100 ) , com.android.server.connectivity.MetricsTestUtil.anInt ( 5 ) , com.android.server.connectivity.MetricsTestUtil.aLong ( 20410 ) ) ; java.lang.String want = com.android.server.connectivity.IpConnectivityEventBuilderTest.joinLines ( "dropped_events: 0" , "events <" , " network_event <" , " event_type: 5" , " latency_ms: 20410" , " network_id <" , " network_id: 100" , " >" , " >" , " time_ms: 1" , ">" ) ; com.android.server.connectivity.IpConnectivityEventBuilderTest.verifySerialization ( want , ev ) ; }

Target:
public void testNetworkEventSerialization ( ) { android.net.ConnectivityMetricsEvent ev = com.android.server.connectivity.MetricsTestUtil.describeIpEvent ( com.android.server.connectivity.MetricsTestUtil.aType ( android.net.metrics.NetworkEvent.class ) , com.android.server.connectivity.MetricsTestUtil.anInt ( 100 ) , com.android.server.connectivity.MetricsTestUtil.anInt ( 5 ) , com.android.server.connectivity.MetricsTestUtil.aLong ( 20410 ) ) ; java.lang.String want = com.android.server.connectivity.IpConnectivityEventBuilderTest.joinLines ( "dropped_events: 0" , "events <" , " network_event <" , " event_type: 5" , " latency_ms: 20410" , " network_id <" , " network_id: 100" , " >" , " >" , " time_ms: 1" , ">" , "version: 2" ) ; com.android.server.connectivity.IpConnectivityEventBuilderTest.verifySerialization ( want , ev ) ; }
Source:
public void testDisableWifiFromSoftApModeActiveState ( ) throws java.lang.Exception { enterSoftApActiveMode ( ) ; mWifiStateMachinePrime.disableWifi ( ) ; mLooper.dispatchNext ( ) ; verify ( mSoftApManager ) . stop ( ) ; verify ( mWificond ) . tearDownInterfaces ( ) ; org.junit.Assert.assertEquals ( "WifiDisabled" , mWifiStateMachinePrime.getCurrentMode ( ) ) ; }

Target:
public void testSwitchModeWhenSoftApActiveMode ( ) throws java.lang.Exception { enterSoftApActiveMode ( ) ; mWifiStateMachinePrime.enterClientMode ( ) ; mLooper.dispatchAll ( ) ; verify ( mSoftApManager ) . stop ( ) ; verify ( mWificond ) . tearDownInterfaces ( ) ; org.junit.Assert.assertEquals ( com.android.server.wifi.WifiStateMachinePrimeTest.CLIENT_MODE_STATE_STRING , mWifiStateMachinePrime.getCurrentMode ( ) ) ; }
Source:
void copy2DRangeFromUnchecked ( int xoff , int yoff , int w , int h , int [ ] data ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copy2DRangeFromUnchecked" ) ; mRS.validate ( ) ; validate2DRange ( xoff , yoff , w , h ) ; mRS.nAllocationData2D ( getIDSafe ( ) , xoff , yoff , mSelectedLOD , mSelectedFace.mID , w , h , data , ( ( data.length ) * 4 ) , Element.DataType.SIGNED_32 ) ; android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }

Target:
public void copy2DRangeFrom ( int xoff , int yoff , int w , int h , float [ ] data ) { validateIsFloat32 ( ) ; copy2DRangeFromUnchecked ( xoff , yoff , w , h , data , Element.DataType.FLOAT_32 , data.length ) ; }
Source:
public final void init ( int opmode , java.security.Key key , java.security.AlgorithmParameters params , java.security.SecureRandom random ) throws java.security.InvalidAlgorithmParameterException , java.security.InvalidKeyException { checkMode ( opmode ) ; getSpi ( key ) . engineInit ( opmode , key , params , random ) ; mode = opmode ; }

Target:
public final void init ( int opmode , java.security.Key key , java.security.AlgorithmParameters params , java.security.SecureRandom random ) throws java.security.InvalidAlgorithmParameterException , java.security.InvalidKeyException { checkMode ( opmode ) ; getSpi ( new javax.crypto.Cipher.InitParams ( javax.crypto.Cipher.InitType.ALGORITHM_PARAMS , opmode , key , random , null , params ) ) ; mode = opmode ; }
Source:
public void fillOval ( int x1 , int y1 , int x2 , int y2 ) { checkGC ( ) ; int x = mHScale.translate ( x1 ) ; int y = mVScale.translate ( y1 ) ; int w = mHScale.scale ( ( x2 - x1 ) ) ; int h = mVScale.scale ( ( y2 - y1 ) ) ; getGc ( ) . fillOval ( x , y , w , h ) ; }

Target:
public void fillOval ( int x1 , int y1 , int x2 , int y2 ) { checkGC ( ) ; useFillAlpha ( ) ; int x = mHScale.translate ( x1 ) ; int y = mVScale.translate ( y1 ) ; int w = mHScale.scale ( ( x2 - x1 ) ) ; int h = mVScale.scale ( ( y2 - y1 ) ) ; getGc ( ) . fillOval ( x , y , w , h ) ; }
Source:
void copy3DRangeFromUnchecked ( int xoff , int yoff , int zoff , int w , int h , int d , short [ ] data ) { mRS.validate ( ) ; validate3DRange ( xoff , yoff , zoff , w , h , d ) ; mRS.nAllocationData3D ( getIDSafe ( ) , xoff , yoff , zoff , mSelectedLOD , w , h , d , data , ( ( data.length ) * 2 ) ) ; }

Target:
public void copy1DRangeFrom ( int off , int count , float [ ] d ) { validateIsFloat32 ( ) ; copy1DRangeFromUnchecked ( off , count , d , Element.DataType.FLOAT_32 , d.length ) ; }
Source:
public void setSignificantDigitsUsed ( boolean useSignificantDigits ) { this . useSignificantDigits = useSignificantDigits ; }

Target:
public synchronized void setSignificantDigitsUsed ( boolean useSignificantDigits ) { if ( useSignificantDigits ) { properties.setMinimumSignificantDigits ( 1 ) ; properties.setMaximumSignificantDigits ( 6 ) ; } else { properties.setMinimumSignificantDigits ( Properties.DEFAULT_MINIMUM_SIGNIFICANT_DIGITS ) ; properties.setMaximumSignificantDigits ( Properties.DEFAULT_MAXIMUM_SIGNIFICANT_DIGITS ) ; properties.setSignificantDigitsMode ( null ) ; } refreshFormatter ( ) ; }
Source:
public java.lang.String findLibrary ( java.lang.String libraryName ) { java.lang.String fileName = java.lang.System.mapLibraryName ( libraryName ) ; for ( dalvik.system.DexPathList.Element element : nativeLibraryPathElements ) { java.lang.String path = element.findNativeLibrary ( fileName ) ; if ( path != null ) { return path ; } } return null ; }

Target:
public java.lang.String findLibrary ( java.lang.String libraryName ) { java.lang.String fileName = java.lang.System.mapLibraryName ( libraryName ) ; for ( dalvik.system.DexPathList.NativeLibraryElement element : nativeLibraryPathElements ) { java.lang.String path = element.findNativeLibrary ( fileName ) ; if ( path != null ) { return path ; } } return null ; }
Source:
public void doImport ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JSession session ) throws com.android.jack.resource.ResourceReadingException { try { for ( com.android.sched.vfs.InputVFS resourceDir : resourceDirs ) { importResourceDirElement ( resourceDir.getRootInputVDir ( ) . list ( ) , session , "" ) ; } } catch ( com.android.jack.resource.ResourceImportConflictException e ) { throw new com.android.jack.resource.ResourceReadingException ( e ) ; } }

Target:
public void doImport ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JSession session ) throws com.android.jack.resource.ResourceReadingException { try { for ( com.android.sched.vfs.InputVFS resourceDir : resourceDirs ) { importResourceDirElement ( resourceDir.getRootInputVDir ( ) . list ( ) , session , "" , resourceDir.getLocation ( ) ) ; } } catch ( com.android.jack.resource.ResourceImportConflictException e ) { throw new com.android.jack.resource.ResourceReadingException ( e ) ; } }
Source:
private void launchAssistLongPressAction ( ) { performHapticFeedbackLw ( null , HapticFeedbackConstants.LONG_PRESS , false ) ; sendCloseSystemWindows ( com.android.internal.policy.impl.PhoneWindowManager.SYSTEM_DIALOG_REASON_ASSIST ) ; android.content.Intent intent = new android.content.Intent ( android.content.Intent.ACTION_SEARCH_LONG_PRESS ) ; intent.setFlags ( Intent.FLAG_ACTIVITY_NEW_TASK ) ; try { android.app.SearchManager searchManager = getSearchManager ( ) ; if ( searchManager != null ) { searchManager.stopSearch ( ) ; } mContext.startActivity ( intent ) ; } catch ( android.content.ActivityNotFoundException e ) { android.util.Slog.w ( com.android.internal.policy.impl.PhoneWindowManager.TAG , "No activity to handle assist long press action." , e ) ; } }

Target:
private void launchAssistLongPressAction ( ) { performHapticFeedbackLw ( null , HapticFeedbackConstants.LONG_PRESS , false ) ; sendCloseSystemWindows ( com.android.internal.policy.impl.PhoneWindowManager.SYSTEM_DIALOG_REASON_ASSIST ) ; android.content.Intent intent = new android.content.Intent ( android.content.Intent.ACTION_SEARCH_LONG_PRESS ) ; intent.setFlags ( Intent.FLAG_ACTIVITY_NEW_TASK ) ; try { android.app.SearchManager searchManager = getSearchManager ( ) ; if ( searchManager != null ) { searchManager.stopSearch ( ) ; } mContext.startActivityAsUser ( intent , new android.os.UserHandle ( android.os.UserHandle.USER_CURRENT ) ) ; } catch ( android.content.ActivityNotFoundException e ) { android.util.Slog.w ( com.android.internal.policy.impl.PhoneWindowManager.TAG , "No activity to handle assist long press action." , e ) ; } }
Source:
public void loadAnnotations ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface loading , @ javax.annotation.Nonnull com.android.jack.jayce.JayceClassOrInterfaceLoader classOrInterfaceLoader ) { com.android.jack.ir.ast.JSession session = com.android.jack.Jack.getSession ( ) ; com.android.jack.jayce.v0004.io.ExportSession exportSession = new com.android.jack.jayce.v0004.io.ExportSession ( session.getPhantomLookup ( ) , session , com.android.jack.jayce.NodeLevel.STRUCTURE ) ; for ( com.android.jack.jayce.v0004.nodes.NAnnotation annotation : annotations ) { com.android.jack.ir.ast.JAnnotation annotationLiteral = annotation.exportAsJast ( exportSession ) ; loading.addAnnotation ( annotationLiteral ) ; annotationLiteral.updateParents ( loading ) ; } }

Target:
public void loadAnnotations ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface loading , @ javax.annotation.Nonnull com.android.jack.jayce.JayceClassOrInterfaceLoader loader ) { if ( ! ( annotations.isEmpty ( ) ) ) { com.android.jack.jayce.v0004.io.ExportSession exportSession = new com.android.jack.jayce.v0004.io.ExportSession ( loader.getSession ( ) , com.android.jack.jayce.NodeLevel.STRUCTURE ) ; for ( com.android.jack.jayce.v0004.nodes.NAnnotation annotation : annotations ) { com.android.jack.ir.ast.JAnnotation annotationLiteral = annotation.exportAsJast ( exportSession ) ; loading.addAnnotation ( annotationLiteral ) ; annotationLiteral.updateParents ( loading ) ; } } }
Source:
static com.google.common.base.CharMatcher inRange ( final char startInclusive , final char endInclusive , java.lang.String description ) { return new com.google.common.base.CharMatcher ( description ) { @ java.lang.Override public boolean matches ( char c ) { return ( startInclusive <= c ) && ( c <= endInclusive ) ; } @ java.lang.Override void setBits ( com.google.common.base.CharMatcher.LookupTable table ) { char c = startInclusive ; while ( true ) { table.set ( c ) ; if ( ( c ++ ) == endInclusive ) { break ; } } } @ java.lang.Override public com.google.common.base.CharMatcher precomputed ( ) { return this ; } } ; }

Target:
static com.google.common.base.CharMatcher inRange ( final char startInclusive , final char endInclusive , java.lang.String description ) { return new com.google.common.base.CharMatcher.FastMatcher ( description ) { @ java.lang.Override public boolean matches ( char c ) { return ( startInclusive <= c ) && ( c <= endInclusive ) ; } @ com.google.common.annotations.GwtIncompatible ( value = "java.util.BitSet" ) @ java.lang.Override void setBits ( java.util.BitSet table ) { table.set ( startInclusive , ( endInclusive + 1 ) ) ; } } ; }
Source:
public void testDenialWithPrejudice23 ( ) throws java.lang.Exception { assertNull ( getDevice ( ) . installPackage ( com.android.cts.migration.MigrationHelper.getTestFile ( mCtsBuild , android.appsecurity.cts.PermissionsHostTest.APK_23 ) , false , false ) ) ; runDeviceTests ( android.appsecurity.cts.PermissionsHostTest.USES_PERMISSION_PKG , "com.android.cts.usepermission.UsePermissionTest23" , "testDenialWithPrejudice" ) ; }

Target:
public void testRevokeAffectsWholeGroup23 ( ) throws java.lang.Exception { assertNull ( getDevice ( ) . installPackage ( com.android.cts.migration.MigrationHelper.getTestFile ( mCtsBuild , android.appsecurity.cts.PermissionsHostTest.APK_23 ) , false , false ) ) ; try { runDeviceTests ( android.appsecurity.cts.PermissionsHostTest.PKG , "com.android.cts.usepermission.UsePermissionTest23" , "testRevokeAffectsWholeGroup_part1" ) ; } catch ( java.lang.AssertionError expected ) { } runDeviceTests ( android.appsecurity.cts.PermissionsHostTest.PKG , "com.android.cts.usepermission.UsePermissionTest23" , "testRevokeAffectsWholeGroup_part2" ) ; }
Source:
protected void clean ( org.eclipse.core.runtime.IProgressMonitor monitor ) throws org.eclipse.core.runtime.CoreException { super . clean ( monitor ) ; if ( DEBUG ) { java.lang.System.out.println ( ( "CLEAN(PRE) " + ( getProject ( ) . getName ( ) ) ) ) ; } doClean ( getProject ( ) , monitor ) ; if ( ( mGenFolder ) != null ) { mGenFolder.refreshLocal ( IResource.DEPTH_INFINITE , monitor ) ; } }

Target:
protected void clean ( org.eclipse.core.runtime.IProgressMonitor monitor ) throws org.eclipse.core.runtime.CoreException { super . clean ( monitor ) ; if ( DEBUG_LOG ) { com.android.ide.eclipse.adt.AdtPlugin.log ( IStatus.INFO , "%s CLEAN(PRE)" , getProject ( ) . getName ( ) ) ; } doClean ( getProject ( ) , monitor ) ; if ( ( mGenFolder ) != null ) { mGenFolder.refreshLocal ( IResource.DEPTH_INFINITE , monitor ) ; } }
Source:
public void requestNetwork ( android.net.NetworkRequest request , int timeoutMs , android.net.ConnectivityManager.NetworkCallback networkCallback ) { if ( timeoutMs <= 0 ) { throw new java.lang.IllegalArgumentException ( ( "Non-positive timeoutMs: " + timeoutMs ) ) ; } int legacyType = inferLegacyTypeForNetworkCapabilities ( request.networkCapabilities ) ; requestNetwork ( request , networkCallback , timeoutMs , legacyType , getDefaultHandler ( ) ) ; }

Target:
public void requestNetwork ( android.net.NetworkRequest request , android.net.ConnectivityManager.NetworkCallback networkCallback , int timeoutMs ) { android.net.ConnectivityManager.checkTimeout ( timeoutMs ) ; int legacyType = inferLegacyTypeForNetworkCapabilities ( request.networkCapabilities ) ; requestNetwork ( request , networkCallback , timeoutMs , legacyType , getDefaultHandler ( ) ) ; }
Source:
private static int countPathKeys ( java.lang.String path ) { if ( ( path.length ( ) ) == 0 ) { return 0 ; } int num = 1 ; for ( int i = 0 ; i < ( path.length ( ) ) ; ++ i ) { if ( ( path.charAt ( i ) ) == ( com.ibm.icu.impl.ICUResourceBundle.RES_PATH_SEP_CHAR ) ) { ++ num ; } } return num ; }

Target:
private static int countPathKeys ( java.lang.String path ) { if ( path.isEmpty ( ) ) { return 0 ; } int num = 1 ; for ( int i = 0 ; i < ( path.length ( ) ) ; ++ i ) { if ( ( path.charAt ( i ) ) == ( com.ibm.icu.impl.ICUResourceBundle.RES_PATH_SEP_CHAR ) ) { ++ num ; } } return num ; }
Source:
public void onLoadChildren ( final java.lang.String parentMediaId , final com.android.bluetooth.a2dpsink.mbs.Result < java.util.List < android.media.browse.MediaBrowser.MediaItem > > result ) { android.util.Log.d ( com.android.bluetooth.a2dpsink.mbs.A2dpMediaBrowserService.TAG , ( "onLoadChildren parentMediaId=" + parentMediaId ) ) ; java.util.List < android.media.browse.MediaBrowser.MediaItem > items = new java.util.ArrayList < android.media.browse.MediaBrowser.MediaItem > ( ) ; result.sendResult ( items ) ; }

Target:
public synchronized void onLoadChildren ( final java.lang.String parentMediaId , final com.android.bluetooth.a2dpsink.mbs.Result < java.util.List < android.media.browse.MediaBrowser.MediaItem > > result ) { if ( ( mAvrcpCtrlSrvc ) == null ) { android.util.Log.e ( com.android.bluetooth.a2dpsink.mbs.A2dpMediaBrowserService.TAG , "AVRCP not yet connected." ) ; result.sendResult ( com.android.bluetooth.a2dpsink.mbs.A2dpMediaBrowserService.mEmptyList ) ; return ; } android.util.Log.d ( com.android.bluetooth.a2dpsink.mbs.A2dpMediaBrowserService.TAG , ( "onLoadChildren parentMediaId=" + parentMediaId ) ) ; mAvrcpCtrlSrvc.getChildren ( mA2dpDevice , parentMediaId , 0 , 255 ) ; synchronized ( this ) { mParentIdToRequestMap.put ( parentMediaId , result ) ; } result.detach ( ) ; }
Source:
public void writeDescriptor ( int clientIf , java.lang.String address , int srvcType , int srvcInstanceId , android.os.ParcelUuid srvcId , int charInstanceId , android.os.ParcelUuid charId , int descrInstanceId , android.os.ParcelUuid descrId , int writeType , int authReq , byte [ ] value ) { com.android.bluetooth.gatt.GattService service = getService ( ) ; if ( service == null ) return ; service.writeDescriptor ( clientIf , address , srvcType , srvcInstanceId , srvcId.getUuid ( ) , charInstanceId , charId.getUuid ( ) , descrInstanceId , descrId.getUuid ( ) , writeType , authReq , value ) ; }

Target:
public void writeCharacteristic ( int clientIf , java.lang.String address , int handle , int writeType , int authReq , byte [ ] value ) { com.android.bluetooth.gatt.GattService service = getService ( ) ; if ( service == null ) return ; service.writeCharacteristic ( clientIf , address , handle , writeType , authReq , value ) ; }
Source:
public com.android.sched.vfs.VPath getPath ( ) { return new com.android.sched.vfs.VPath ( getNativePath ( ) . getPath ( ) , java.io.File.separatorChar ) ; }

Target:
java.io.InputStream openRead ( @ javax.annotation.Nonnull com.android.sched.vfs.ParentVFile file ) throws com.android.sched.util.file.WrongPermissionException { assert ! ( isClosed ( ) ) ; assert ( ( permissions ) & ( com.android.sched.util.file.FileOrDirectory.Permission.READ ) ) != 0 ; java.io.File path = getNativeFile ( file.getPath ( ) ) ; try { return new java.io.FileInputStream ( path ) ; } catch ( java.io.FileNotFoundException e ) { com.android.sched.util.file.FileOrDirectory.checkPermissions ( path , file.getLocation ( ) , Permission.READ ) ; throw new com.android.sched.util.ConcurrentIOException ( e ) ; } }
Source:
private static java.math.BigInteger fieldElement2Integer ( java.math.BigInteger n , org.bouncycastle.math.ec.ECFieldElement fieldElement ) { java.math.BigInteger num = fieldElement.toBigInteger ( ) ; while ( ( num.bitLength ( ) ) >= ( n.bitLength ( ) ) ) { num = num.clearBit ( ( ( num.bitLength ( ) ) - 1 ) ) ; } return num ; }

Target:
private static java.math.BigInteger fieldElement2Integer ( java.math.BigInteger n , org.bouncycastle.math.ec.ECFieldElement fe ) { return org.bouncycastle.crypto.signers.DSTU4145Signer.truncate ( fe.toBigInteger ( ) , ( ( n.bitLength ( ) ) - 1 ) ) ; }
Source:
public void err ( @ org.gradle.api.Nullable java.lang.String line ) { super . err ( line ) ; }

Target:
public static java.util.List < java.lang.String > runAndGetOutput ( @ com.android.annotations.NonNull com.android.ide.common.process.ProcessInfo processInfo , @ com.android.annotations.NonNull com.android.ide.common.process.ProcessExecutor processExecutor ) throws com.android.ide.common.process.ProcessException { com.android.ide.common.process.CachedProcessOutputHandler handler = new com.android.ide.common.process.CachedProcessOutputHandler ( ) ; processExecutor.execute ( processInfo , handler ) . rethrowFailure ( ) . assertNormalExitValue ( ) ; return com.google.common.base.Splitter.on ( '\n' ) . splitToList ( handler.getProcessOutput ( ) . getStandardOutputAsString ( ) ) ; }
Source:
void splitFromConference ( com.android.server.telecom.Call call ) { final java.lang.String callId = mCallIdMapper.getCallId ( call ) ; if ( ( callId != null ) && ( isServiceValid ( "splitFromConference" ) ) ) { try { logOutgoing ( "splitFromConference %s" , callId ) ; mServiceInterface.splitFromConference ( callId ) ; } catch ( android.os.RemoteException ignored ) { } } }

Target:
void splitFromConference ( com.android.server.telecom.Call call ) { final java.lang.String callId = mCallIdMapper.getCallId ( call ) ; if ( ( callId != null ) && ( isServiceValid ( "splitFromConference" ) ) ) { try { logOutgoing ( "splitFromConference %s" , callId ) ; mServiceInterface.splitFromConference ( callId , android.telecom.Log.getExternalSession ( ) ) ; } catch ( android.os.RemoteException ignored ) { } } }
Source:
public static void writeEntry ( java.io.DataOutput out , com.intellij.history.core.tree.Entry e ) throws java.io.IOException { int id = - 1 ; java.lang.Class c = e.getClass ( ) ; if ( c.equals ( com.intellij.history.core.tree.FileEntry.class ) ) id = 0 ; if ( c.equals ( com.intellij.history.core.tree.DirectoryEntry.class ) ) id = 1 ; if ( id == ( - 1 ) ) throw new java.io.IOException ( ( "unexpected entry type: " + c ) ) ; com.intellij.util.io.DataInputOutputUtil.writeINT ( out , id ) ; e.write ( out ) ; }

Target:
public static void writeEntry ( java.io.DataOutput out , com.intellij.history.core.tree.Entry e ) throws java.io.IOException { int id = - 1 ; java.lang.Class c = e.getClass ( ) ; if ( c.equals ( com.intellij.history.core.tree.FileEntry.class ) ) id = 0 ; if ( c.equals ( com.intellij.history.core.tree.DirectoryEntry.class ) ) id = 1 ; if ( id == ( - 1 ) ) throw new java.io.IOException ( ( "unexpected entry type: " + c ) ) ; out.writeInt ( id ) ; e.write ( out ) ; }
Source:
private boolean isEthernet ( java.lang.String ifName ) throws java.lang.Exception { java.lang.String s = libcore.io.IoUtils.readFileAsString ( ( ( "/sys/class/net/" + ifName ) + "/type" ) ) . trim ( ) ; if ( s.startsWith ( "0x" ) ) { return ( java.lang.Integer.parseInt ( s.substring ( 2 ) , 16 ) ) == ( libcore.java.net.NetworkInterfaceTest.ARPHRD_ETHER ) ; } else { return ( java.lang.Integer.parseInt ( s ) ) == ( libcore.java.net.NetworkInterfaceTest.ARPHRD_ETHER ) ; } }

Target:
private static boolean isEthernet ( java.lang.String ifName ) throws java.lang.Exception { return libcore.java.net.NetworkInterfaceTest.ethernetNamePattern.matcher ( ifName ) . matches ( ) ; }
Source:
void needGlobalAttributesUpdate ( boolean force ) { android.view.View.AttachInfo ai = mAttachInfo ; if ( ai != null ) { if ( ( ai.mKeepScreenOn ) || force ) { ai.mRecomputeGlobalAttributes = true ; } } }

Target:
void needGlobalAttributesUpdate ( boolean force ) { final android.view.View.AttachInfo ai = mAttachInfo ; if ( ai != null ) { if ( ( ( force || ( ai.mKeepScreenOn ) ) || ( ( ai.mSystemUiVisibility ) != 0 ) ) || ( ai.mHasSystemUiListeners ) ) { ai.mRecomputeGlobalAttributes = true ; } } }
Source:
private void writeBlockHeader ( int len ) throws java.io.IOException { if ( len <= 255 ) { hbuf [ 0 ] = java.io.ObjectStreamConstants.TC_BLOCKDATA ; hbuf [ 1 ] = ( ( byte ) ( len ) ) ; out.write ( hbuf , 0 , 2 ) ; } else { hbuf [ 0 ] = java.io.ObjectStreamConstants.TC_BLOCKDATALONG ; java.io.Bits.putInt ( hbuf , 1 , len ) ; out.write ( hbuf , 0 , 5 ) ; } }

Target:
private void writeBlockHeader ( int len ) throws java.io.IOException { if ( len <= 255 ) { hbuf [ 0 ] = java.io.ObjectStreamConstants.TC_BLOCKDATA ; hbuf [ 1 ] = ( ( byte ) ( len ) ) ; out.write ( hbuf , 0 , 2 ) ; } else { hbuf [ 0 ] = java.io.ObjectStreamConstants.TC_BLOCKDATALONG ; java.io.Bits.putInt ( hbuf , 1 , len ) ; out.write ( hbuf , 0 , 5 ) ; } warnIfClosed ( ) ; }
Source:
public void onSdkChange ( ) { com.android.ide.eclipse.adt.internal.sdk.Sdk currentSdk = com.android.ide.eclipse.adt.internal.sdk.Sdk.getCurrent ( ) ; if ( currentSdk != null ) { com.android.sdklib.IAndroidTarget target = currentSdk.getTarget ( mEditedFile.getProject ( ) ) ; if ( target != null ) { mConfigComposite.onSdkLoaded ( target ) ; mConfigListener.onConfigurationChange ( ) ; } } }

Target:
public void onSdkChange ( ) { com.android.sdklib.IAndroidTarget target = getRenderingTarget ( ) ; if ( target != null ) { mConfigComposite.onSdkLoaded ( target ) ; mConfigListener.onConfigurationChange ( ) ; } }
Source:
public void testResConfigs ( ) throws java.lang.Exception { TranslationDetector.sCompleteRegions = false ; assertEquals ( ( "" + ( ( ( ( ( ( ( ( ( ( "res/values/strings.xml:25: Error: \"menu_settings\" is not translated in \"cs\" (Czech), \"de-rDE\" (German: Germany) [MissingTranslation]\n" + " <string name=\"menu_settings\">Settings</string>\n" ) + " ~~~~~~~~~~~~~~~~~~~~\n" ) + "res/values-cs/arrays.xml:3: Error: \"security_questions\" is translated here but not found in default locale [ExtraTranslation]\n" ) + " <string-array name=\"security_questions\">\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + " res/values-es/strings.xml:12: Also translated here\n" ) + "res/values-de-rDE/strings.xml:11: Error: \"continue_skip_label\" is translated here but not found in default locale [ExtraTranslation]\n" ) + " <string name=\"continue_skip_label\">\"Weiter\"</string>\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "3 errors, 0 warnings\n" ) ) , lintProject ( "res/values/strings.xml" , "res/values-cs/strings.xml" , "res/values-de-rDE/strings.xml" , "res/values-es/strings.xml" , "res/values-es-rUS/strings.xml" , "res/values-land/strings.xml" , "res/values-cs/arrays.xml" , "res/values-es/donottranslate.xml" , "res/values-nl-rNL/strings.xml" ) ) ; }

Target:
public void testResConfigs ( ) throws java.lang.Exception { TranslationDetector.sCompleteRegions = false ; assertEquals ( ( "" + ( ( ( ( ( ( ( ( ( ( "res/values/strings.xml:25: Error: \"menu_settings\" is not translated in \"cs\" (Czech), \"de-DE\" (German: Germany) [MissingTranslation]\n" + " <string name=\"menu_settings\">Settings</string>\n" ) + " ~~~~~~~~~~~~~~~~~~~~\n" ) + "res/values-cs/arrays.xml:3: Error: \"security_questions\" is translated here but not found in default locale [ExtraTranslation]\n" ) + " <string-array name=\"security_questions\">\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + " res/values-es/strings.xml:12: Also translated here\n" ) + "res/values-de-rDE/strings.xml:11: Error: \"continue_skip_label\" is translated here but not found in default locale [ExtraTranslation]\n" ) + " <string name=\"continue_skip_label\">\"Weiter\"</string>\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "3 errors, 0 warnings\n" ) ) , lintProject ( "res/values/strings.xml" , "res/values-cs/strings.xml" , "res/values-de-rDE/strings.xml" , "res/values-es/strings.xml" , "res/values-es-rUS/strings.xml" , "res/values-land/strings.xml" , "res/values-cs/arrays.xml" , "res/values-es/donottranslate.xml" , "res/values-nl-rNL/strings.xml" ) ) ; }
Source:
public com.android.ide.eclipse.adt.internal.resources.manager.ProjectResources getFrameworkResources ( ) { if ( ( mEditedFile ) != null ) { com.android.ide.eclipse.adt.internal.sdk.Sdk currentSdk = com.android.ide.eclipse.adt.internal.sdk.Sdk.getCurrent ( ) ; if ( currentSdk != null ) { com.android.sdklib.IAndroidTarget target = currentSdk.getTarget ( mEditedFile.getProject ( ) ) ; if ( target != null ) { com.android.ide.eclipse.adt.internal.sdk.AndroidTargetData data = currentSdk.getTargetData ( target ) ; if ( data != null ) { return data.getFrameworkResources ( ) ; } } } } return null ; }

Target:
private com.android.sdklib.IAndroidTarget getRenderingTarget ( ) { com.android.ide.eclipse.adt.internal.sdk.Sdk currentSdk = com.android.ide.eclipse.adt.internal.sdk.Sdk.getCurrent ( ) ; if ( currentSdk == null ) { return null ; } com.android.sdklib.IAndroidTarget renderingTarget = mConfigComposite.getRenderingTarget ( ) ; if ( renderingTarget != null ) { return renderingTarget ; } if ( ( mEditedFile ) != null ) { return currentSdk.getTarget ( mEditedFile.getProject ( ) ) ; } return null ; }
Source:
public void partActivated ( org.eclipse.ui.IWorkbenchPart part ) { com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPart gep = getGraphicalEditorPart ( part ) ; if ( gep != null ) { updateMenuActions ( gep ) ; } }

Target:
public void dragStart ( org.eclipse.swt.dnd.DragSourceEvent event ) { if ( ! ( adjustEventCoordinates ( event ) ) ) { event.doit = false ; return ; } com.android.ide.eclipse.adt.internal.editors.layout.gle2.LayoutCanvas canvas = mGraphicalEditorPart.getCanvasControl ( ) ; if ( canvas != null ) { canvas.getDragSourceListener ( ) . dragStart ( event ) ; } }
Source:
private void transform ( @ javax.annotation.Nonnull org.objectweb.asm.tree.ClassNode cn , @ javax.annotation.Nonnull java.io.OutputStream os ) throws java.io.IOException { com.android.sched.util.stream.UncloseableOutputStream uos = new com.android.sched.util.stream.UncloseableOutputStream ( os ) ; java.util.zip.DeflaterOutputStream dos = new java.util.zip.DeflaterOutputStream ( uos , new java.util.zip.Deflater ( ) ) ; try { com.android.jill.backend.jayce.JayceWriter writer = createWriter ( dos ) ; com.android.jill.frontend.java.ClassNodeWriter asm2jayce = new com.android.jill.frontend.java.ClassNodeWriter ( writer , new com.android.jill.frontend.java.SourceInfoWriter ( writer ) , options ) ; asm2jayce.write ( cn ) ; writer.flush ( ) ; } finally { dos.close ( ) ; } }

Target:
private void transform ( @ javax.annotation.Nonnull org.objectweb.asm.tree.ClassNode cn , @ javax.annotation.Nonnull java.io.OutputStream os , @ javax.annotation.Nonnull com.android.sched.util.location.Location location ) throws com.android.sched.util.file.CannotWriteException { com.android.jill.backend.jayce.JayceWriter writer = createWriter ( os ) ; com.android.jill.frontend.java.ClassNodeWriter asm2jayce = new com.android.jill.frontend.java.ClassNodeWriter ( writer , new com.android.jill.frontend.java.SourceInfoWriter ( writer ) , options ) ; try { asm2jayce.write ( cn ) ; writer.flush ( ) ; } catch ( java.io.IOException e ) { throw new com.android.sched.util.file.CannotWriteException ( location , e ) ; } }
Source:
public static com.intellij.psi.search.GlobalSearchScope compose ( java.util.List < com.intellij.openapi.vfs.VirtualFile > roots ) { if ( roots.isEmpty ( ) ) { return EMPTY_SCOPE ; } com.intellij.psi.search.GlobalSearchScope scope = new com.intellij.psi.search.NonClasspathDirectoryScope ( roots.get ( 0 ) ) ; for ( int i = 1 ; i < ( roots.size ( ) ) ; i ++ ) { scope = scope.uniteWith ( new com.intellij.psi.search.NonClasspathDirectoryScope ( roots.get ( i ) ) ) ; } return scope ; }

Target:
public static com.intellij.psi.search.GlobalSearchScope compose ( java.util.List < com.intellij.openapi.vfs.VirtualFile > roots ) { if ( roots.isEmpty ( ) ) { return EMPTY_SCOPE ; } return new com.intellij.psi.search.NonClasspathDirectoriesScope ( roots ) ; }
Source:
public void testEncryption ( ) throws java.lang.Exception { if ( ( ! ( isRequired ( ) ) ) || ( android.security.cts.EncryptionTest.deviceIsEncrypted ( ) ) ) { return ; } assertFalse ( "Device encryption is required" , android.security.cts.EncryptionTest.aesIsFast ( ) ) ; }

Target:
public void testEncryption ( ) throws java.lang.Exception { if ( android.security.cts.EncryptionTest.deviceIsEncrypted ( ) ) { return ; } if ( hasLowRAM ( ) ) { android.util.Log.i ( android.security.cts.EncryptionTest.TAG , "hasLowRAM: true" ) ; return ; } assertFalse ( "Device encryption is required" , android.security.cts.EncryptionTest.aesIsFast ( ) ) ; }
Source:
public void writeToParcel ( android.os.Parcel dest , int flags ) { dest.writeInt ( ( mSupport5gBand ? 1 : 0 ) ) ; dest.writeInt ( mMasterPreference ) ; dest.writeInt ( mClusterLow ) ; dest.writeInt ( mClusterHigh ) ; }

Target:
public void writeToParcel ( android.os.Parcel dest , int flags ) { dest.writeInt ( ( mSupport5gBand ? 1 : 0 ) ) ; dest.writeInt ( mMasterPreference ) ; dest.writeInt ( mClusterLow ) ; dest.writeInt ( mClusterHigh ) ; dest.writeIntArray ( mDiscoveryWindowInterval ) ; }
Source:
public com.google.common.collect.ImmutableSet < V > get ( @ javax.annotation.Nullable K key ) { com.google.common.collect.ImmutableSet < V > set = ( ( com.google.common.collect.ImmutableSet < V > ) ( map.get ( key ) ) ) ; if ( set != null ) { return set ; } else if ( ( emptySet ) != null ) { return emptySet ; } else { return com.google.common.collect.ImmutableSet.< V > of ( ) ; } }

Target:
public com.google.common.collect.ImmutableSet < V > get ( @ javax.annotation.Nullable K key ) { com.google.common.collect.ImmutableSet < V > set = ( ( com.google.common.collect.ImmutableSet < V > ) ( map.get ( key ) ) ) ; return com.google.common.base.MoreObjects.firstNonNull ( set , emptySet ) ; }
Source:
public void rejectCall ( com.android.server.telecom.Call call , boolean rejectWithMessage , java.lang.String textMessage ) { if ( ! ( mCalls.contains ( call ) ) ) { com.android.server.telecom.Log.i ( this , "Request to reject a non-existent call %s" , call ) ; } else { for ( com.android.server.telecom.CallsManager.CallsManagerListener listener : mListeners ) { listener.onIncomingCallRejected ( call , rejectWithMessage , textMessage ) ; } call.reject ( rejectWithMessage , textMessage ) ; } }

Target:
public void rejectCall ( com.android.server.telecom.Call call , boolean rejectWithMessage , java.lang.String textMessage ) { if ( ! ( mCalls.contains ( call ) ) ) { android.telecom.Log.i ( this , "Request to reject a non-existent call %s" , call ) ; } else { for ( com.android.server.telecom.CallsManager.CallsManagerListener listener : mListeners ) { listener.onIncomingCallRejected ( call , rejectWithMessage , textMessage ) ; } call.reject ( rejectWithMessage , textMessage ) ; } }
Source:
public static void checkClientTrusted ( javax.net.ssl.X509TrustManager x509tm , java.security.cert.X509Certificate [ ] chain , java.lang.String authType , java.net.Socket socket ) throws java.security.cert.CertificateException { if ( x509tm instanceof javax.net.ssl.X509ExtendedTrustManager ) { javax.net.ssl.X509ExtendedTrustManager x509etm = ( ( javax.net.ssl.X509ExtendedTrustManager ) ( x509tm ) ) ; x509etm.checkClientTrusted ( chain , authType , socket ) ; } else { x509tm.checkClientTrusted ( chain , authType ) ; } }

Target:
public static void checkServerTrusted ( javax.net.ssl.X509TrustManager x509tm , java.security.cert.X509Certificate [ ] chain , java.lang.String authType , java.lang.String host ) throws java.security.cert.CertificateException { if ( x509tm instanceof org.conscrypt.TrustManagerImpl ) { org.conscrypt.TrustManagerImpl tm = ( ( org.conscrypt.TrustManagerImpl ) ( x509tm ) ) ; tm.checkServerTrusted ( chain , authType , host ) ; } else { x509tm.checkServerTrusted ( chain , authType ) ; } }
Source:
public void loadAnnotations ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod loading ) { com.android.jack.ir.ast.JSession session = com.android.jack.Jack.getSession ( ) ; com.android.jack.jayce.v0004.io.ExportSession exportSession = new com.android.jack.jayce.v0004.io.ExportSession ( session.getPhantomLookup ( ) , session , com.android.jack.jayce.NodeLevel.STRUCTURE ) ; for ( com.android.jack.jayce.v0004.nodes.NAnnotation annotation : annotations ) { com.android.jack.ir.ast.JAnnotation annote = annotation.exportAsJast ( exportSession ) ; loading.addAnnotation ( annote ) ; annote.updateParents ( loading ) ; } }

Target:
public void loadAnnotations ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod loading , @ javax.annotation.Nonnull com.android.jack.jayce.JayceMethodLoader loader ) { if ( ! ( annotations.isEmpty ( ) ) ) { com.android.jack.jayce.v0004.io.ExportSession exportSession = new com.android.jack.jayce.v0004.io.ExportSession ( loader.getSession ( ) , com.android.jack.jayce.NodeLevel.STRUCTURE ) ; for ( com.android.jack.jayce.v0004.nodes.NAnnotation annotation : annotations ) { com.android.jack.ir.ast.JAnnotation annote = annotation.exportAsJast ( exportSession ) ; loading.addAnnotation ( annote ) ; annote.updateParents ( loading ) ; } } }
Source:
private boolean getAutoTimeZone ( ) { try { return ( Settings.Global.getInt ( mCr , Settings.Global.AUTO_TIME_ZONE ) ) > 0 ; } catch ( android.provider.Settings snfe ) { return true ; } }

Target:
private boolean networkCountryIsoChanged ( java.lang.String newCountryIsoCode , java.lang.String prevCountryIsoCode ) { if ( android.text.TextUtils.isEmpty ( newCountryIsoCode ) ) { if ( com.android.internal.telephony.ServiceStateTracker.DBG ) { log ( "countryIsoChanged: no new country ISO code" ) ; } return false ; } if ( android.text.TextUtils.isEmpty ( prevCountryIsoCode ) ) { if ( com.android.internal.telephony.ServiceStateTracker.DBG ) { log ( "countryIsoChanged: no previous country ISO code" ) ; } return true ; } return ! ( newCountryIsoCode.equals ( prevCountryIsoCode ) ) ; }
Source:
public void setListening ( boolean listening ) { mListening = listening ; if ( mListening ) { mContext.registerReceiver ( mNfcReceiver , new android.content.IntentFilter ( android.nfc.NfcAdapter.ACTION_ADAPTER_STATE_CHANGED ) ) ; if ( ( mAdapter ) == null ) { try { mAdapter = android.nfc.NfcAdapter.getNfcAdapter ( mContext ) ; } catch ( java.lang.UnsupportedOperationException e ) { mAdapter = null ; } } } else { mContext.unregisterReceiver ( mNfcReceiver ) ; } }

Target:
private android.nfc.NfcAdapter getAdapter ( ) { if ( ( mAdapter ) == null ) { try { mAdapter = android.nfc.NfcAdapter.getNfcAdapter ( mContext ) ; } catch ( java.lang.UnsupportedOperationException e ) { mAdapter = null ; } } return mAdapter ; }