auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private com.intellij.openapi.editor.markup.GutterIconRenderer getPositionIconRenderer ( boolean isTopFrame ) { if ( ! isTopFrame ) { return null ; } if ( ( myActiveNonLineBreakpoint ) != null ) { return ( ( com.intellij.xdebugger.impl.XBreakpointBase < ? , ? , ? > ) ( myActiveNonLineBreakpoint ) ) . createGutterIconRenderer ( ) ; } if ( ( myCurrentExecutionStack ) != null ) { return myCurrentExecutionStack.getExecutionLineIconRenderer ( ) ; } return null ; }

Target:
private com.intellij.openapi.editor.markup.GutterIconRenderer getPositionIconRenderer ( boolean isTopFrame ) { if ( ! isTopFrame ) { return null ; } com.intellij.xdebugger.impl.XBreakpoint < ? > activeNonLineBreakpoint = getActiveNonLineBreakpoint ( ) ; if ( activeNonLineBreakpoint != null ) { return ( ( com.intellij.xdebugger.impl.XBreakpointBase < ? , ? , ? > ) ( activeNonLineBreakpoint ) ) . createGutterIconRenderer ( ) ; } if ( ( myCurrentExecutionStack ) != null ) { return myCurrentExecutionStack.getExecutionLineIconRenderer ( ) ; } return null ; }
Source:
public org.objectweb.asm.tree.analysis.Value ternaryOperation ( org.objectweb.asm.tree.AbstractInsnNode node , org.objectweb.asm.tree.analysis.Value value1 , org.objectweb.asm.tree.analysis.Value value2 , org.objectweb.asm.tree.analysis.Value value3 ) throws org.objectweb.asm.tree.analysis.AnalyzerException { if ( ( ( value1 == ( com.android.tools.lint.checks.RecycleDetector.RecycleTracker.RECYCLED ) ) || ( value2 == ( com.android.tools.lint.checks.RecycleDetector.RecycleTracker.RECYCLED ) ) ) || ( value3 == ( com.android.tools.lint.checks.RecycleDetector.RecycleTracker.RECYCLED ) ) ) { return com.android.tools.lint.checks.RecycleDetector.RecycleTracker.RECYCLED ; } else if ( ( ( value1 == ( com.android.tools.lint.checks.RecycleDetector.RecycleTracker.INSTANCE ) ) || ( value2 == ( com.android.tools.lint.checks.RecycleDetector.RecycleTracker.INSTANCE ) ) ) || ( value3 == ( com.android.tools.lint.checks.RecycleDetector.RecycleTracker.INSTANCE ) ) ) { return com.android.tools.lint.checks.RecycleDetector.RecycleTracker.INSTANCE ; } return com.android.tools.lint.checks.RecycleDetector.RecycleTracker.UNKNOWN ; }

Target:
public org.objectweb.asm.tree.analysis.Value ternaryOperation ( org.objectweb.asm.tree.AbstractInsnNode node , org.objectweb.asm.tree.analysis.Value value1 , org.objectweb.asm.tree.analysis.Value value2 , org.objectweb.asm.tree.analysis.Value value3 ) throws org.objectweb.asm.tree.analysis.AnalyzerException { if ( ( ( value1 == ( com.android.tools.lint.checks.CleanupDetector.CleanupTracker.RECYCLED ) ) || ( value2 == ( com.android.tools.lint.checks.CleanupDetector.CleanupTracker.RECYCLED ) ) ) || ( value3 == ( com.android.tools.lint.checks.CleanupDetector.CleanupTracker.RECYCLED ) ) ) { return com.android.tools.lint.checks.CleanupDetector.CleanupTracker.RECYCLED ; } else if ( ( ( value1 == ( com.android.tools.lint.checks.CleanupDetector.CleanupTracker.INSTANCE ) ) || ( value2 == ( com.android.tools.lint.checks.CleanupDetector.CleanupTracker.INSTANCE ) ) ) || ( value3 == ( com.android.tools.lint.checks.CleanupDetector.CleanupTracker.INSTANCE ) ) ) { return com.android.tools.lint.checks.CleanupDetector.CleanupTracker.INSTANCE ; } return com.android.tools.lint.checks.CleanupDetector.CleanupTracker.UNKNOWN ; }
Source:
public void writeToParcel ( android.os.Parcel dest , int flags ) { dest.writeString ( getContent ( ) ) ; boolean [ ] values = new boolean [ 2 ] ; values [ 0 ] = isRemote ; values [ 1 ] = isFinished ; dest.writeBooleanArray ( values ) ; }

Target:
static java.util.List < com.android.dialer.rtt.RttTranscriptMessage > toTranscriptMessageList ( java.util.List < com.android.incallui.rtt.impl.RttChatMessage > messageList ) { java.util.List < com.android.dialer.rtt.RttTranscriptMessage > transcriptMessageList = new java.util.ArrayList < > ( ) ; for ( com.android.incallui.rtt.impl.RttChatMessage message : messageList ) { transcriptMessageList.add ( com.android.dialer.rtt.RttTranscriptMessage.newBuilder ( ) . setContent ( message.getContent ( ) ) . setTimestamp ( message.timstamp ) . setIsRemote ( message.isRemote ) . setIsFinished ( message.isFinished ) . build ( ) ) ; } return transcriptMessageList ; }
Source:
public void testDisplayTagAbiList ( ) { com.android.sdkmanager.Main main = new com.android.sdkmanager.Main ( ) ; main.setLogger ( getLog ( ) ) ; main.setSdkManager ( getSdkManager ( ) ) ; getLog ( ) . clear ( ) ; main.displayTagAbiList ( mTarget , "message" ) ; assertEquals ( ( "[P message, P default/armeabi, P , , P tag-1/armeabi, P , , P tag-1/x86, P \n" + "]" ) , getLog ( ) . toString ( ) ) ; }

Target:
public void testDisplayTagAbiList ( ) { com.android.sdkmanager.Main main = new com.android.sdkmanager.Main ( ) ; main.setLogger ( getLog ( ) ) ; main.setSdkManager ( getSdkManager ( ) ) ; getLog ( ) . clear ( ) ; main.displayTagAbiList ( mTarget , "Tag/ABIs: " ) ; assertEquals ( "P Tag/ABIs: default/armeabi, tag-1/armeabi, tag-1/x86\n" , getLog ( ) . toString ( ) ) ; }
Source:
public void addI64 ( android.support.v8.renderscript.Long3 v ) { if ( android.support.v8.renderscript.RenderScript.shouldThunk ( ) ) { mN.addI64 ( new android.support.v8.renderscript.Long3 ( v.x , v.y , v.z ) ) ; return ; } addI64 ( v.x ) ; addI64 ( v.y ) ; addI64 ( v.z ) ; }

Target:
public void addI64 ( android.support.v8.renderscript.Long2 v ) { if ( android.support.v8.renderscript.RenderScript.shouldThunk ( ) ) { mN.addI64 ( v ) ; return ; } addI64 ( v.x ) ; addI64 ( v.y ) ; }
Source:
public boolean perform ( ) { try { Main.SigQuit.kill.invoke ( null , Main.SigQuit.pid , Main.SigQuit.sigquit ) ; } catch ( java.lang.Exception e ) { if ( ! ( e.getClass ( ) . getName ( ) . equals ( "ErrnoException" ) ) ) { e.printStackTrace ( java.lang.System.out ) ; } } return true ; }

Target:
public boolean perform ( ) { try { Main.SigQuit.kill.invoke ( null , Main.SigQuit.pid , Main.SigQuit.sigquit ) ; } catch ( java.lang.OutOfMemoryError e ) { } catch ( java.lang.Exception e ) { if ( ! ( e.getClass ( ) . getName ( ) . equals ( "ErrnoException" ) ) ) { e.printStackTrace ( java.lang.System.out ) ; } } return true ; }
Source:
public void testUpdate_recommendationsDisabled ( ) { java.util.ArrayList < com.android.server.wifi.ScanDetail > scanDetails = new java.util.ArrayList < > ( ) ; org.mockito.Mockito.when ( mFrameworkFacade.getIntegerSetting ( mContext , Settings.Global.NETWORK_RECOMMENDATIONS_ENABLED , 0 ) ) . thenReturn ( 0 ) ; mRecommendedNetworkEvaluator.mContentObserver.onChange ( false ) ; mRecommendedNetworkEvaluator.update ( scanDetails ) ; org.mockito.Mockito.verify ( mExternalScoreEvaluator ) . update ( scanDetails ) ; org.mockito.Mockito.verifyZeroInteractions ( mNetworkScoreManager , mNetworkScoreManager ) ; }

Target:
public void testUpdate_recommendationsDisabled ( ) { java.util.ArrayList < com.android.server.wifi.ScanDetail > scanDetails = new java.util.ArrayList < > ( ) ; org.mockito.Mockito.when ( mFrameworkFacade.getIntegerSetting ( mContext , Settings.Global.NETWORK_RECOMMENDATIONS_ENABLED , 0 ) ) . thenReturn ( 0 ) ; mRecommendedNetworkEvaluator.mContentObserver.onChange ( false ) ; mRecommendedNetworkEvaluator.update ( scanDetails ) ; org.mockito.Mockito.verify ( mExternalScoreEvaluator ) . update ( scanDetails ) ; org.mockito.Mockito.verifyZeroInteractions ( mNetworkScoreManager , mNetworkScoreManager ) ; org.mockito.Mockito.verify ( mWifiConfigManager ) . updateNetworkNotRecommended ( mTrustedWifiConfiguration.networkId , false ) ; }
Source:
private int compressToBytes ( java.lang.String string ) { byte [ ] input = string.getBytes ( ) ; java.util.zip.Deflater deflater = new java.util.zip.Deflater ( ) ; deflater.setInput ( input ) ; deflater.finish ( ) ; return deflater.deflate ( compressedBytes ) ; }

Target:
private int compressToBytes ( java.lang.String string ) { byte [ ] input = string.getBytes ( ) ; java.util.zip.Deflater deflater = new java.util.zip.Deflater ( ) ; try { deflater.setInput ( input ) ; deflater.finish ( ) ; return deflater.deflate ( compressedBytes ) ; } finally { deflater.end ( ) ; } }
Source:
public void test_socket_accept_Blocking_NotBound ( ) throws java.io.IOException { java.net.ServerSocket gotSocket = serverChannel.socket ( ) ; serverChannel.configureBlocking ( true ) ; try { gotSocket.accept ( ) ; fail ( "Should throw an IllegalBlockingModeException" ) ; } catch ( java.nio.channels.IllegalBlockingModeException e ) { } serverChannel.close ( ) ; try { gotSocket.accept ( ) ; fail ( "Should throw an IllegalBlockingModeException" ) ; } catch ( java.nio.channels.IllegalBlockingModeException e ) { } }

Target:
public void test_bind_null ( ) throws java.lang.Exception { java.nio.channels.ServerSocketChannel ssc = java.nio.channels.ServerSocketChannel.open ( ) ; try { assertNull ( ssc.getLocalAddress ( ) ) ; ssc.bind ( null ) ; java.net.InetSocketAddress localAddress = ( ( java.net.InetSocketAddress ) ( ssc.getLocalAddress ( ) ) ) ; assertTrue ( localAddress.getAddress ( ) . isAnyLocalAddress ( ) ) ; assertTrue ( ( ( localAddress.getPort ( ) ) > 0 ) ) ; } finally { ssc.close ( ) ; } }
Source:
public void onCharacteristicChanged ( android.bluetooth.BluetoothGatt gatt , android.bluetooth.BluetoothGattCharacteristic characteristic ) { if ( com.android.cts.verifier.bluetooth.BleClientService.DEBUG ) android.util.Log.d ( com.android.cts.verifier.bluetooth.BleClientService.TAG , "onCharacteristicChanged" ) ; if ( ( ( characteristic.getUuid ( ) ) != null ) && ( characteristic.getUuid ( ) . equals ( com.android.cts.verifier.bluetooth.BleClientService.UPDATE_CHARACTERISTIC_UUID ) ) ) { notifyCharacteristicChanged ( characteristic.getStringValue ( 0 ) ) ; setNotification ( false ) ; sleep ( 1000 ) ; mBluetoothGatt.readRemoteRssi ( ) ; } }

Target:
public void onCharacteristicChanged ( android.bluetooth.BluetoothGatt gatt , android.bluetooth.BluetoothGattCharacteristic characteristic ) { java.util.UUID uid = characteristic.getUuid ( ) ; if ( com.android.cts.verifier.bluetooth.BleClientService.DEBUG ) { android.util.Log.d ( com.android.cts.verifier.bluetooth.BleClientService.TAG , ( "onCharacteristicChanged: " + uid ) ) ; } if ( uid != null ) { if ( uid.equals ( com.android.cts.verifier.bluetooth.BleClientService.INDICATE_CHARACTERISTIC_UUID ) ) { setNotification ( characteristic , false ) ; notifyCharacteristicIndicated ( ) ; } else { ( mNotifyCount ) -- ; setNotification ( characteristic , false ) ; if ( ( mNotifyCount ) == 0 ) { notifyCharacteristicChanged ( ) ; } } } }
Source:
public java.io.File resolveRelativeFilePath ( com.android.tradefed.build.IBuildInfo buildInfo , java.lang.String fileName ) { try { java.io.File f = new java.io.File ( mInvocationHelper.getTestsDir ( ) , java.lang.String.format ( "%s%s" , fileName , ( mAppendBitness ? mAbi.getBitness ( ) : "" ) ) ) ; com.android.tradefed.log.LogUtil.CLog.logAndDisplay ( LogLevel.INFO , "Copying from %s" , f.getAbsolutePath ( ) ) ; return f ; } catch ( java.io.FileNotFoundException e ) { e.printStackTrace ( ) ; } return null ; }

Target:
public java.io.File resolveRelativeFilePath ( com.android.tradefed.build.IBuildInfo buildInfo , java.lang.String fileName ) { java.io.File f = null ; try { f = new java.io.File ( mInvocationHelper.getTestsDir ( ) , java.lang.String.format ( "%s%s" , fileName , ( mAppendBitness ? mAbi.getBitness ( ) : "" ) ) ) ; com.android.tradefed.log.LogUtil.CLog.d ( "Copying from %s" , f.getAbsolutePath ( ) ) ; return f ; } catch ( java.io.FileNotFoundException e ) { com.android.tradefed.log.LogUtil.CLog.e ( e ) ; com.android.tradefed.log.LogUtil.CLog.e ( "File not found: %s" , f ) ; } return null ; }
Source:
public java.lang.String getLongDescription ( ) { java.lang.String s = getDescription ( ) ; if ( ( s == null ) || ( ( s.length ( ) ) == 0 ) ) { s = getShortDescription ( ) ; } if ( ( s.indexOf ( "revision" ) ) == ( - 1 ) ) { s += java.lang.String.format ( "\nRevision %1$d%2$s" , getRevision ( ) , ( isObsolete ( ) ? " (Obsolete)" : "" ) ) ; } return s ; }

Target:
public java.lang.String getLongDescription ( ) { java.lang.String s = getDescription ( ) ; if ( ( s == null ) || ( ( s.length ( ) ) == 0 ) ) { s = getShortDescription ( ) ; } if ( ( s.indexOf ( "revision" ) ) == ( - 1 ) ) { s += java.lang.String.format ( "\nRevision %1$s%2$s" , getPreviewVersion ( ) . toShortString ( ) , ( isObsolete ( ) ? " (Obsolete)" : "" ) ) ; } return s ; }
Source:
public void testKeyStore_SetCertificate_CA_Encrypted_Success ( ) throws java.lang.Exception { final java.security.cert.CertificateFactory f = java.security.cert.CertificateFactory.getInstance ( "X.509" ) ; final java.security.cert.Certificate actual = f.generateCertificate ( new java.io.ByteArrayInputStream ( android.security.AndroidKeyStoreTest.FAKE_CA_1 ) ) ; setupPassword ( ) ; mKeyStore.load ( null , null ) ; mKeyStore.setCertificateEntry ( android.security.AndroidKeyStoreTest.TEST_ALIAS_1 , actual ) ; assertAliases ( new java.lang.String [ ] { android.security.AndroidKeyStoreTest.TEST_ALIAS_1 } ) ; java.security.cert.Certificate retrieved = mKeyStore.getCertificate ( android.security.AndroidKeyStoreTest.TEST_ALIAS_1 ) ; assertEquals ( "Retrieved certificate should be the same as the one inserted" , actual , retrieved ) ; }

Target:
public void testKeyStore_SetCertificate_CA_Encrypted_Success ( ) throws java.lang.Exception { final java.security.cert.CertificateFactory f = java.security.cert.CertificateFactory.getInstance ( "X.509" ) ; final java.security.cert.Certificate actual = f.generateCertificate ( new java.io.ByteArrayInputStream ( android.security.AndroidKeyStoreTest.FAKE_RSA_CA_1 ) ) ; setupPassword ( ) ; mKeyStore.load ( null , null ) ; mKeyStore.setCertificateEntry ( android.security.AndroidKeyStoreTest.TEST_ALIAS_1 , actual ) ; assertAliases ( new java.lang.String [ ] { android.security.AndroidKeyStoreTest.TEST_ALIAS_1 } ) ; java.security.cert.Certificate retrieved = mKeyStore.getCertificate ( android.security.AndroidKeyStoreTest.TEST_ALIAS_1 ) ; assertEquals ( "Retrieved certificate should be the same as the one inserted" , actual , retrieved ) ; }
Source:
public static byte [ ] serializeInternalProviderData ( com.android.tv.dvr.RecordedProgram program ) { java.io.ByteArrayOutputStream bos = new java.io.ByteArrayOutputStream ( ) ; try ( java.io.ObjectOutputStream out = new java.io.ObjectOutputStream ( bos ) ) { if ( ! ( android.text.TextUtils.isEmpty ( program.getSeriesId ( ) ) ) ) { out.writeObject ( program.getSeriesId ( ) ) ; return bos.toByteArray ( ) ; } } catch ( java.io.IOException e ) { android.util.Log.e ( com.android.tv.data.InternalDataUtils.TAG , ( "Could not serialize internal provider contents for program: " + ( program.getTitle ( ) ) ) ) ; } return null ; }

Target:
public static byte [ ] serializeInternalProviderData ( com.android.tv.dvr.data.RecordedProgram program ) { java.io.ByteArrayOutputStream bos = new java.io.ByteArrayOutputStream ( ) ; try ( java.io.ObjectOutputStream out = new java.io.ObjectOutputStream ( bos ) ) { if ( ! ( android.text.TextUtils.isEmpty ( program.getSeriesId ( ) ) ) ) { out.writeObject ( program.getSeriesId ( ) ) ; return bos.toByteArray ( ) ; } } catch ( java.io.IOException e ) { android.util.Log.e ( com.android.tv.data.InternalDataUtils.TAG , ( "Could not serialize internal provider contents for program: " + ( program.getTitle ( ) ) ) ) ; } return null ; }
Source:
public static int readSignedInt ( com.android.dx.util.ByteInput in , int zwidth ) { int result = 0 ; for ( int i = zwidth ; i >= 0 ; i -- ) { result = ( result > > > 8 ) | ( ( ( in.readByte ( ) ) & 255 ) << 24 ) ; } result >>= ( 3 - zwidth ) * 8 ; return result ; }

Target:
public static int readSignedInt ( com.android.dex.util.ByteInput in , int zwidth ) { int result = 0 ; for ( int i = zwidth ; i >= 0 ; i -- ) { result = ( result > > > 8 ) | ( ( ( in.readByte ( ) ) & 255 ) << 24 ) ; } result >>= ( 3 - zwidth ) * 8 ; return result ; }
Source:
public void testCtor0 ( ) throws java.lang.Exception { android.text.format.Time t = new android.text.format.Time ( android.text.format.Time.TIMEZONE_UTC ) ; assertEquals ( Time.TIMEZONE_UTC , t.timezone ) ; }

Target:
public void testCtor ( ) throws java.lang.Exception { java.lang.String tz = android.text.format.Time.TIMEZONE_UTC ; android.text.format.Time t = new android.text.format.Time ( tz ) ; assertEquals ( tz , t.timezone ) ; android.text.format.Time expected = new android.text.format.Time ( tz ) ; android.text.format.cts.TimeTest.Fields.set ( expected , 1970 , 0 , 1 , 0 , 0 , 0 , ( - 1 ) , 0 , 0 , 0 ) ; android.text.format.cts.TimeTest.Fields.assertTimeEquals ( expected , t ) ; }
Source:
public void createGlobalMethodNameProvider ( @ javax.annotation.Nonnull java.util.Map < java.lang.String , java.lang.String > existingNames , @ javax.annotation.Nonnull java.util.Collection < com.android.jack.ir.ast.JMethodId > methodIds ) throws com.android.jack.JackIOException { for ( com.android.jack.ir.ast.JMethodId mid : methodIds ) { if ( ! ( com.android.jack.shrob.obfuscation.Renamer.mustBeRenamed ( mid ) ) ) { existingNames.put ( com.android.jack.shrob.obfuscation.Renamer.getKey ( mid ) , mid.getName ( ) ) ; } } globalMethodNameProvider = new com.android.jack.shrob.obfuscation.nameprovider.MappingNameProvider ( getNameProvider ( obfuscationDictionary ) , existingNames ) ; }

Target:
public void createGlobalMethodNameProvider ( @ javax.annotation.Nonnull java.util.Map < java.lang.String , java.lang.String > existingNames , @ javax.annotation.Nonnull java.util.Collection < com.android.jack.ir.ast.JMethodIdWide > methodIds ) throws com.android.jack.JackIOException { for ( com.android.jack.ir.ast.JMethodIdWide mid : methodIds ) { if ( ! ( com.android.jack.shrob.obfuscation.Renamer.mustBeRenamed ( mid ) ) ) { existingNames.put ( com.android.jack.shrob.obfuscation.Renamer.getKey ( mid ) , mid.getName ( ) ) ; } } globalMethodNameProvider = new com.android.jack.shrob.obfuscation.nameprovider.MappingNameProvider ( getNameProvider ( obfuscationDictionary ) , existingNames ) ; }
Source:
private com.android.jack.dx.rop.annotation.Annotations readAnnotationSet ( @ javax.annotation.Nonnull com.android.jack.dx.io.DexBuffer dex , @ javax.annotation.Nonnegative int annotationSetOffset ) { com.android.jack.dx.io.DexBuffer.Section annotationSetIn = dex.open ( annotationSetOffset ) ; int size = annotationSetIn.readInt ( ) ; com.android.jack.dx.rop.annotation.Annotations annotations = new com.android.jack.dx.rop.annotation.Annotations ( ) ; for ( int j = 0 ; j < size ; j ++ ) { annotations.add ( readAnnotationItem ( dex , annotationSetIn.readInt ( ) ) ) ; } return annotations ; }

Target:
private com.android.jack.dx.rop.annotation.Annotations readAnnotationSet ( @ javax.annotation.Nonnull com.android.jack.dx.io.DexBuffer dex , @ javax.annotation.Nonnegative int annotationSetOffset , @ javax.annotation.Nonnull com.android.jack.dx.rop.cst.CstIndexMap cstIndexMap ) { com.android.jack.dx.io.DexBuffer.Section annotationSetIn = dex.open ( annotationSetOffset ) ; int size = annotationSetIn.readInt ( ) ; com.android.jack.dx.rop.annotation.Annotations annotations = new com.android.jack.dx.rop.annotation.Annotations ( ) ; for ( int j = 0 ; j < size ; j ++ ) { annotations.add ( readAnnotationItem ( dex , annotationSetIn.readInt ( ) , cstIndexMap ) ) ; } return annotations ; }
Source:
static < V > V safeGet ( java.util.Map < ? , V > map , java.lang.Object key ) { try { return map.get ( key ) ; } catch ( java.lang.ClassCastException e ) { return null ; } }

Target:
static < V > V safeRemove ( java.util.Map < ? , V > map , java.lang.Object key ) { com.google.common.base.Preconditions.checkNotNull ( map ) ; try { return map.remove ( key ) ; } catch ( java.lang.ClassCastException e ) { return null ; } catch ( java.lang.NullPointerException e ) { return null ; } }
Source:
private java.util.Map < java.lang.String , com.android.ide.eclipse.adt.internal.resources.DeclareStyleableInfo > preloadAndGetStyleables ( ) { assertSame ( mParser , mParser.preload ( ) ) ; java.util.Map < java.lang.String , com.android.ide.eclipse.adt.internal.resources.DeclareStyleableInfo > styleableList = mParser.getDeclareStyleableList ( ) ; if ( ! ( styleableList instanceof java.util.TreeMap < ? , ? > ) ) { styleableList = new java.util.TreeMap < java.lang.String , com.android.ide.eclipse.adt.internal.resources.DeclareStyleableInfo > ( styleableList ) ; } return styleableList ; }

Target:
private java.util.Map < java.lang.String , com.android.ide.common.resources.platform.DeclareStyleableInfo > preloadAndGetStyleables ( ) { assertSame ( mParser , mParser.preload ( ) ) ; java.util.Map < java.lang.String , com.android.ide.common.resources.platform.DeclareStyleableInfo > styleableList = mParser.getDeclareStyleableList ( ) ; if ( ! ( styleableList instanceof java.util.TreeMap < ? , ? > ) ) { styleableList = new java.util.TreeMap < java.lang.String , com.android.ide.common.resources.platform.DeclareStyleableInfo > ( styleableList ) ; } return styleableList ; }
Source:
public void test_formatDLjava_lang_StringBufferLjava_text_FieldPosition_ArithmeticException ( ) { java.text.DecimalFormat decimalFormat = ( ( java.text.DecimalFormat ) ( java.text.DecimalFormat.getInstance ( java.util.Locale.US ) ) ) ; decimalFormat.setMaximumFractionDigits ( 0 ) ; decimalFormat.setRoundingMode ( java.math.RoundingMode.UNNECESSARY ) ; try { decimalFormat.format ( 11.5 , new java.lang.StringBuffer ( ) , new java.text.FieldPosition ( 0 ) ) ; fail ( "ArithmeticException expected" ) ; } catch ( java.lang.ArithmeticException e ) { } }

Target:
public void test_formatDouble_roundingUnnecessaryArithmeticException ( ) { java.text.DecimalFormat decimalFormat = ( ( java.text.DecimalFormat ) ( java.text.DecimalFormat.getInstance ( java.util.Locale.US ) ) ) ; decimalFormat.setMaximumFractionDigits ( 0 ) ; decimalFormat.setRoundingMode ( java.math.RoundingMode.UNNECESSARY ) ; try { decimalFormat.format ( 11.5 , new java.lang.StringBuffer ( ) , new java.text.FieldPosition ( 0 ) ) ; fail ( "ArithmeticException expected" ) ; } catch ( java.lang.ArithmeticException e ) { } }
Source:
final void get ( long [ ] dst , int dstOffset , int longCount ) { checkNotFreed ( ) ; int byteCount = checkGetBounds ( SizeOf.LONG , dst.length , dstOffset , longCount ) ; this . block.peekLongArray ( ( ( offset ) + ( position ) ) , dst , dstOffset , longCount , order.needsSwap ) ; position += byteCount ; }

Target:
final void get ( long [ ] dst , int dstOffset , int longCount ) { checkIsAccessible ( ) ; int byteCount = checkGetBounds ( SizeOf.LONG , dst.length , dstOffset , longCount ) ; this . block.peekLongArray ( ( ( offset ) + ( position ) ) , dst , dstOffset , longCount , order.needsSwap ) ; position += byteCount ; }
Source:
synchronized void nAllocationData2D ( int dstAlloc , int dstXoff , int dstYoff , int dstMip , int dstFace , int width , int height , int srcAlloc , int srcXoff , int srcYoff , int srcMip , int srcFace ) { validate ( ) ; rsnAllocationData2D ( mContext , dstAlloc , dstXoff , dstYoff , dstMip , dstFace , width , height , srcAlloc , srcXoff , srcYoff , srcMip , srcFace ) ; }

Target:
synchronized void nAllocationElementData1D ( long id , int xoff , int mip , int compIdx , byte [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationElementData1D ( mContext , id , xoff , mip , compIdx , d , sizeBytes ) ; }
Source:
private void maybeBuildBackoffPolicyFromXml ( android.app.job.JobInfo.Builder jobBuilder , org.xmlpull.v1.XmlPullParser parser ) { java.lang.String val = parser.getAttributeValue ( null , "initial-backoff" ) ; if ( val != null ) { long initialBackoff = java.lang.Long.valueOf ( val ) ; val = parser.getAttributeValue ( null , "backoff-policy" ) ; int backoffPolicy = java.lang.Integer.valueOf ( val ) ; jobBuilder.setBackoffCriteria ( initialBackoff , backoffPolicy ) ; } }

Target:
private void maybeBuildBackoffPolicyFromXml ( android.app.job.JobInfo.Builder jobBuilder , org.xmlpull.v1.XmlPullParser parser ) { java.lang.String val = parser.getAttributeValue ( null , "initial-backoff" ) ; if ( val != null ) { long initialBackoff = java.lang.Long.parseLong ( val ) ; val = parser.getAttributeValue ( null , "backoff-policy" ) ; int backoffPolicy = java.lang.Integer.valueOf ( val ) ; jobBuilder.setBackoffCriteria ( initialBackoff , backoffPolicy ) ; } }
Source:
private java.lang.Integer getDynamicId ( java.lang.String name ) { synchronized ( mDynamicIds ) { java.lang.Integer value = mDynamicIds.get ( name ) ; if ( value == null ) { value = new java.lang.Integer ( ( ++ ( mDynamicSeed ) ) ) ; mDynamicIds.put ( name , value ) ; mRevDynamicIds.put ( value , name ) ; } return value ; } }

Target:
private java.lang.Integer getDynamicId ( java.lang.String name ) { synchronized ( mDynamicIds ) { java.lang.Integer value = mDynamicIds.get ( name ) ; if ( value == null ) { value = java.lang.Integer.valueOf ( ( ++ ( mDynamicSeed ) ) ) ; mDynamicIds.put ( name , value ) ; mRevDynamicIds.put ( value , name ) ; } return value ; } }
Source:
void receiveEvent ( com.android.bluetooth.mapclient.EventReport ev ) { if ( com.android.bluetooth.mapclient.MceStateMachine.DBG ) { android.util.Log.d ( com.android.bluetooth.mapclient.MceStateMachine.TAG , ( "Message Type = " + ( ev.getType ( ) ) ) ) ; } if ( com.android.bluetooth.mapclient.MceStateMachine.DBG ) { android.util.Log.d ( com.android.bluetooth.mapclient.MceStateMachine.TAG , ( "Message handle = " + ( ev.getHandle ( ) ) ) ) ; } sendMessage ( com.android.bluetooth.mapclient.MceStateMachine.MSG_NOTIFICATION , ev ) ; }

Target:
void receiveEvent ( com.android.bluetooth.mapclient.EventReport ev ) { if ( com.android.bluetooth.mapclient.MceStateMachine.DBG ) { android.util.Log.d ( com.android.bluetooth.mapclient.MceStateMachine.TAG , ( ( ( "Message Type = " + ( ev.getType ( ) ) ) + ", Message handle = " ) + ( ev.getHandle ( ) ) ) ) ; } sendMessage ( com.android.bluetooth.mapclient.MceStateMachine.MSG_NOTIFICATION , ev ) ; }
Source:
public void run ( ) { com.android.storagemanager.deletionhelper.PackageDeletionTask.PackageDeletionObserver observer = new com.android.storagemanager.deletionhelper.PackageDeletionTask.PackageDeletionObserver ( mPackages.size ( ) ) ; for ( java.lang.String packageName : mPackages ) { mPm.deletePackageAsUser ( packageName , observer , 0 , mUser.getIdentifier ( ) ) ; } }

Target:
public void run ( ) { com.android.storagemanager.deletionhelper.PackageDeletionTask.PackageDeletionObserver observer = new com.android.storagemanager.deletionhelper.PackageDeletionTask.PackageDeletionObserver ( mPackages.size ( ) ) ; for ( java.lang.String packageName : mPackages ) { try { mPm.deletePackageAsUser ( packageName , observer , 0 , mUser.getIdentifier ( ) ) ; } catch ( java.lang.IllegalArgumentException e ) { android.util.Log.w ( com.android.storagemanager.deletionhelper.PackageDeletionTask.TAG , ( "Could not find package, not deleting " + packageName ) , e ) ; } } }
Source:
public void test_putLjava_lang_ObjectLjava_lang_Object ( ) { java.util.WeakHashMap map = new java.util.WeakHashMap ( ) ; map.put ( null , "value" ) ; java.lang.System.gc ( ) ; java.lang.System.runFinalization ( ) ; map.remove ( "nothing" ) ; assertEquals ( "null key was removed" , 1 , map.size ( ) ) ; }

Target:
public void test_putLjava_lang_ObjectLjava_lang_Object ( ) { java.util.WeakHashMap map = new java.util.WeakHashMap ( ) ; map.put ( null , "value" ) ; java.lang.System.gc ( ) ; java.lang.System.gc ( ) ; libcore.java.lang.ref.FinalizationTester.induceFinalization ( ) ; map.remove ( "nothing" ) ; assertEquals ( "null key was removed" , 1 , map.size ( ) ) ; }
Source:
public synchronized void onEvent ( int event , java.lang.String path ) { notify ( ) ; }

Target:
public void opChanged ( int op , int uid , java.lang.String packageName ) { if ( ( op == ( android.app.AppOpsManager.OP_RUN_IN_BACKGROUND ) ) && ( packageName != null ) ) { if ( ( mAppOpsService.checkOperation ( op , uid , packageName ) ) != ( android.app.AppOpsManager.MODE_ALLOWED ) ) { runInBackgroundDisabled ( uid ) ; } } }
Source:
public void testConfigurationUpdatesWhenRotatingToSideFromDocked ( ) throws java.lang.Exception { setDeviceRotation ( 0 ) ; launchActivityInDockStack ( android.server.cts.LAUNCHING_ACTIVITY ) ; launchActivityToSide ( false , false , android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME ) ; final android.server.cts.ReportedSizes initialSizes = getActivityDisplaySize ( android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME , android.server.cts.FULLSCREEN_WORKSPACE_STACK_ID ) ; rotateAndCheckSizes ( initialSizes , android.server.cts.FULLSCREEN_WORKSPACE_STACK_ID ) ; }

Target:
public void testConfigurationUpdatesWhenRotatingToSideFromDocked ( ) throws java.lang.Exception { if ( ! ( supportsSplitScreenMultiWindow ( ) ) ) { com.android.tradefed.log.LogUtil.CLog.logAndDisplay ( LogLevel.INFO , "Skipping test: no multi-window support" ) ; return ; } setDeviceRotation ( 0 ) ; launchActivityInDockStack ( android.server.cts.LAUNCHING_ACTIVITY ) ; launchActivityToSide ( false , false , android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME ) ; final android.server.cts.ReportedSizes initialSizes = getActivityDisplaySize ( android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME , android.server.cts.FULLSCREEN_WORKSPACE_STACK_ID ) ; rotateAndCheckSizes ( initialSizes , android.server.cts.FULLSCREEN_WORKSPACE_STACK_ID ) ; }
Source:
protected boolean cleanup ( ) { if ( mNativeAvailable ) { cleanupNative ( ) ; mNativeAvailable = false ; } if ( ( mPanDevices ) != null ) { java.util.List < android.bluetooth.BluetoothDevice > DevList = getConnectedDevices ( ) ; for ( android.bluetooth.BluetoothDevice dev : DevList ) { handlePanDeviceStateChange ( dev , mPanIfName , BluetoothProfile.STATE_DISCONNECTED , BluetoothPan.LOCAL_PANU_ROLE , BluetoothPan.REMOTE_NAP_ROLE ) ; } mPanDevices.clear ( ) ; } return true ; }

Target:
protected boolean cleanup ( ) { if ( mNativeAvailable ) { cleanupNative ( ) ; mNativeAvailable = false ; } if ( ( mPanDevices ) != null ) { java.util.List < android.bluetooth.BluetoothDevice > devList = getConnectedDevices ( ) ; for ( android.bluetooth.BluetoothDevice dev : devList ) { handlePanDeviceStateChange ( dev , mPanIfName , BluetoothProfile.STATE_DISCONNECTED , BluetoothPan.LOCAL_PANU_ROLE , BluetoothPan.REMOTE_NAP_ROLE ) ; } mPanDevices.clear ( ) ; } return true ; }
Source:
public void destroyAppProfiles ( java.lang.String packageName ) throws com.android.internal.os.InstallerConnection.InstallerException { if ( ! ( checkBeforeRemote ( ) ) ) return ; try { mInstalld.destroyAppProfiles ( packageName ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }

Target:
public void createUserData ( java.lang.String uuid , int userId , int userSerial , int flags ) throws com.android.server.pm.Installer.InstallerException { if ( ! ( checkBeforeRemote ( ) ) ) return ; try { mInstalld.createUserData ( uuid , userId , userSerial , flags ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw com.android.server.pm.Installer.InstallerException.from ( e ) ; } }
Source:
public void test_handshake_failsWithMissingSCT ( ) throws java.lang.Exception { org.conscrypt.OpenSSLSocketImplTest.TestConnection connection = new org.conscrypt.OpenSSLSocketImplTest.TestConnection ( new java.security.cert.X509Certificate [ ] { cert , ca } , certKey , true ) ; connection.clientHooks.ctVerificationEnabled = true ; try { connection.doHandshake ( ) ; fail ( "SSLHandshakeException not thrown" ) ; } catch ( java.util.concurrent.ExecutionException e ) { assertEquals ( javax.net.ssl.SSLHandshakeException.class , e.getCause ( ) . getClass ( ) ) ; assertEquals ( java.security.cert.CertificateException.class , e.getCause ( ) . getCause ( ) . getClass ( ) ) ; } }

Target:
public org.conscrypt.OpenSSLSocketImpl createSocket ( javax.net.ssl.SSLSocketFactory factory , java.net.ServerSocket listener ) throws java.io.IOException { org.conscrypt.OpenSSLSocketImpl socket = super . createSocket ( factory , listener ) ; socket.setEnabledProtocols ( new java.lang.String [ ] { "SSLv3" } ) ; assertEquals ( "SSLv3 should be filtered out" , 0 , socket.getEnabledProtocols ( ) . length ) ; return socket ; }
Source:
protected junit.framework.TestCase getTestCase ( ) throws java.lang.Exception { junit.framework.TestCase testCase = constructor.newInstance ( constructorArgs ) ; if ( ( constructor.getParameterTypes ( ) . length ) == 0 ) { testCase.setName ( method.getName ( ) ) ; } return testCase ; }

Target:
protected junit.framework.TestCase getTestCase ( ) throws java.lang.Exception { if ( ! ( java.lang.reflect.Modifier.isPublic ( constructor.getDeclaringClass ( ) . getModifiers ( ) ) ) ) { throw new junit.framework.AssertionFailedError ( ( ( "Class " + ( testClass.getName ( ) ) ) + " is not public" ) ) ; } junit.framework.TestCase testCase = constructor.newInstance ( constructorArgs ) ; if ( ( constructor.getParameterTypes ( ) . length ) == 0 ) { testCase.setName ( method.getName ( ) ) ; } return testCase ; }
Source:
private void updatePrivateDnsSettings ( ) { mPrivateDnsMode = getStringSetting ( android.provider.Settings.Global.PRIVATE_DNS_MODE ) ; mPrivateDnsSpecifier = getStringSetting ( android.provider.Settings.Global.PRIVATE_DNS_SPECIFIER ) ; }

Target:
public com.android.server.connectivity.DnsManager.PrivateDnsConfig updatePrivateDns ( android.net.Network network , com.android.server.connectivity.DnsManager.PrivateDnsConfig cfg ) { android.util.Slog.w ( com.android.server.connectivity.DnsManager.TAG , ( ( ( ( "updatePrivateDns(" + network ) + ", " ) + cfg ) + ")" ) ) ; return cfg != null ? mPrivateDnsMap.put ( network.netId , cfg ) : mPrivateDnsMap.remove ( network ) ; }
Source:
com.android.incallui.videotech.VideoTech getVideoTech ( ) { if ( ( savedTech ) != null ) { return savedTech ; } for ( com.android.incallui.videotech.VideoTech tech : videoTechs ) { if ( tech.isAvailable ( context ) ) { savedTech = tech ; savedTech.becomePrimary ( ) ; return savedTech ; } } return emptyVideoTech ; }

Target:
public com.android.incallui.videotech.VideoTech getVideoTech ( ) { if ( ( savedTech ) == ( emptyVideoTech ) ) { for ( com.android.incallui.videotech.VideoTech tech : videoTechs ) { if ( tech.isAvailable ( context ) ) { savedTech = tech ; savedTech.becomePrimary ( ) ; break ; } } } else if ( ( ( savedTech ) instanceof com.android.incallui.videotech.duo.DuoVideoTech ) && ( rcsVideoShare.isAvailable ( context ) ) ) { savedTech = rcsVideoShare ; rcsVideoShare.becomePrimary ( ) ; } return savedTech ; }
Source:
public boolean addUser ( com.google.gct.login.User user ) { synchronized ( this ) { if ( allUsers.containsKey ( user.getEmail ( ) ) ) { return false ; } allUsers.put ( user.getEmail ( ) , user ) ; setActiveUser ( user.getEmail ( ) ) ; return true ; } }

Target:
public void addUser ( com.google.gct.login.CredentialedUser user ) { synchronized ( this ) { allUsers.put ( user.getEmail ( ) , user ) ; setActiveUser ( user.getEmail ( ) ) ; } }
Source:
private boolean handleHeadsetHook ( android.view.KeyEvent event ) { com.android.server.telecom.Log.d ( this , "handleHeadsetHook()...%s %s" , event.getAction ( ) , event.getRepeatCount ( ) ) ; if ( event.isLongPress ( ) ) { return mCallsManager.onMediaButton ( com.android.server.telecom.HeadsetMediaButton.LONG_PRESS ) ; } else if ( ( ( event.getAction ( ) ) == ( android.view.KeyEvent.ACTION_UP ) ) && ( ( event.getRepeatCount ( ) ) == 0 ) ) { return mCallsManager.onMediaButton ( com.android.server.telecom.HeadsetMediaButton.SHORT_PRESS ) ; } return true ; }

Target:
private boolean handleHeadsetHook ( android.view.KeyEvent event ) { android.telecom.Log.d ( this , "handleHeadsetHook()...%s %s" , event.getAction ( ) , event.getRepeatCount ( ) ) ; if ( event.isLongPress ( ) ) { return mCallsManager.onMediaButton ( com.android.server.telecom.HeadsetMediaButton.LONG_PRESS ) ; } else if ( ( ( event.getAction ( ) ) == ( android.view.KeyEvent.ACTION_UP ) ) && ( ( event.getRepeatCount ( ) ) == 0 ) ) { return mCallsManager.onMediaButton ( com.android.server.telecom.HeadsetMediaButton.SHORT_PRESS ) ; } return true ; }
Source:
public void testMatchingText ( ) { com.android.ddmuilib.logcat.LogCatMessage msg = new com.android.ddmuilib.logcat.LogCatMessage ( com.android.ddmlib.Log.LogLevel.VERBOSE , "" , "" , "" , "" , "" , "message with word1 and word2" ) ; assertEquals ( true , search ( "word1 with" , msg ) ) ; assertEquals ( true , search ( "text:w.* " , msg ) ) ; assertEquals ( false , search ( "absent" , msg ) ) ; }

Target:
public void testMatchingText ( ) { com.android.ddmlib.logcat.LogCatMessage msg = new com.android.ddmlib.logcat.LogCatMessage ( com.android.ddmlib.Log.LogLevel.VERBOSE , "" , "" , "" , "" , "" , "message with word1 and word2" ) ; assertEquals ( true , search ( "word1 with" , msg ) ) ; assertEquals ( true , search ( "text:w.* " , msg ) ) ; assertEquals ( false , search ( "absent" , msg ) ) ; }
Source:
public com.android.builder.VariantConfiguration addProductFlavor ( @ com.android.annotations.NonNull com.android.builder.DefaultProductFlavor productFlavor , @ com.android.annotations.NonNull com.android.builder.model.SourceProvider sourceProvider ) { mFlavorConfigs.add ( productFlavor ) ; mFlavorSourceProviders.add ( sourceProvider ) ; mMergedFlavor = productFlavor.mergeOver ( mMergedFlavor ) ; computeNdkConfig ( ) ; return this ; }

Target:
public com.android.builder.VariantConfiguration addProductFlavor ( @ com.android.annotations.NonNull com.android.builder.DefaultProductFlavor productFlavor , @ com.android.annotations.NonNull com.android.builder.model.SourceProvider sourceProvider , @ com.android.annotations.NonNull java.lang.String dimensionName ) { mFlavorConfigs.add ( productFlavor ) ; mFlavorSourceProviders.add ( sourceProvider ) ; mFlavorDimensionNames.add ( dimensionName ) ; mMergedFlavor = productFlavor.mergeOver ( mMergedFlavor ) ; computeNdkConfig ( ) ; return this ; }
Source:
synchronized void recordImplicitRejection ( @ com.android.annotations.NonNull com.android.manifmerger.XmlAttribute attribute , @ com.android.annotations.NonNull com.android.manifmerger.XmlElement implicitAttributeOwner ) { java.util.List < com.android.manifmerger.ActionRecorder.AttributeRecord > attributeRecords = getAttributeRecords ( attribute ) ; com.android.manifmerger.ActionRecorder.AttributeRecord attributeRecord = new com.android.manifmerger.ActionRecorder.AttributeRecord ( com.android.manifmerger.ActionRecorder.ActionType.REJECTED , new com.android.manifmerger.ActionRecorder.ActionLocation ( implicitAttributeOwner.getDocument ( ) . getSourceLocation ( ) , implicitAttributeOwner.getPosition ( ) ) , AttributeOperationType.REPLACE ) ; attributeRecords.add ( attributeRecord ) ; }

Target:
synchronized void recordImplicitRejection ( @ com.android.annotations.NonNull com.android.manifmerger.XmlAttribute attribute , @ com.android.annotations.NonNull com.android.manifmerger.XmlElement implicitAttributeOwner ) { java.util.List < com.android.manifmerger.ActionRecorder.AttributeRecord > attributeRecords = getAttributeRecords ( attribute ) ; com.android.manifmerger.ActionRecorder.AttributeRecord attributeRecord = new com.android.manifmerger.ActionRecorder.AttributeRecord ( com.android.manifmerger.ActionRecorder.ActionType.REJECTED , new com.android.manifmerger.ActionRecorder.ActionLocation ( implicitAttributeOwner.getDocument ( ) . getSourceLocation ( ) , implicitAttributeOwner.getPosition ( ) ) , attribute.getId ( ) , AttributeOperationType.REPLACE ) ; attributeRecords.add ( attributeRecord ) ; }
Source:
public void test_ConstructorLjava_io_File ( ) { try { java.util.jar.JarFile jarFile = new java.util.jar.JarFile ( new java.io.File ( "Wrong.file" ) ) ; fail ( "Should throw IOException" ) ; } catch ( java.io.IOException e ) { } try { tests.support.resource.Support_Resources.copyFile ( resources , null , jarName ) ; java.util.jar.JarFile jarFile = new java.util.jar.JarFile ( new java.io.File ( resources , jarName ) ) ; } catch ( java.io.IOException e ) { fail ( "Should not throw IOException" ) ; } }

Target:
public void test_ConstructorLjava_io_File ( ) { try { java.util.jar.JarFile jarFile = new java.util.jar.JarFile ( new java.io.File ( "Wrong.file" ) ) ; fail ( "Should throw IOException" ) ; } catch ( java.io.IOException e ) { } try { java.io.File file = tests.support.resource.Support_Resources.copyFile ( resources , null , jarName ) ; java.util.jar.JarFile jarFile = new java.util.jar.JarFile ( file ) ; jarFile.close ( ) ; } catch ( java.io.IOException e ) { fail ( "Should not throw IOException" ) ; } }
Source:
protected void onActivityResult ( int requestCode , int resultCode , android.content.Intent intent ) { if ( resultCode != ( RESULT_OK ) ) { return ; } switch ( requestCode ) { case NEW_PLAYLIST : android.net.Uri uri = intent.getData ( ) ; if ( uri != null ) { long [ ] list = new long [ 1 ] ; list [ 0 ] = com.android.music.MusicUtils.getCurrentAudioId ( ) ; int playlist = java.lang.Integer.parseInt ( uri.getLastPathSegment ( ) ) ; com.android.music.MusicUtils.addToPlaylist ( this , list , playlist ) ; } break ; } }

Target:
private void toggleShuffle ( ) { com.android.music.utils.LogHelper.d ( com.android.music.MediaPlaybackActivity.TAG , "Shuffle not implemented yet" ) ; com.android.music.Toast.makeText ( this , "Shuffle not implemented yet" , Toast.LENGTH_SHORT ) . show ( ) ; }
Source:
public void reloadLayout ( final com.android.ide.eclipse.adt.internal.editors.layout.LayoutReloadMonitor.ChangeFlags flags , final boolean libraryChanged ) { org.eclipse.swt.widgets.Display display = mConfigComposite.getDisplay ( ) ; display.asyncExec ( new java.lang.Runnable ( ) { public void run ( ) { reloadLayoutSwt ( flags , libraryChanged ) ; } } ) ; }

Target:
public void reloadLayout ( final com.android.ide.eclipse.adt.internal.editors.layout.LayoutReloadMonitor.ChangeFlags flags , final boolean libraryChanged ) { if ( mConfigComposite.isDisposed ( ) ) { return ; } org.eclipse.swt.widgets.Display display = mConfigComposite.getDisplay ( ) ; display.asyncExec ( new java.lang.Runnable ( ) { public void run ( ) { reloadLayoutSwt ( flags , libraryChanged ) ; } } ) ; }
Source:
public java.lang.String wifiAwareCreateNetworkSpecifier ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "role" , description = "The role of the device: Initiator (0) or Responder (1)" ) java.lang.Integer role , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "sessionId" , description = "The session ID returned when session was created using publish or subscribe" ) java.lang.Integer sessionId , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "peerId" , description = "The ID of the peer (obtained through OnMatch or OnMessageReceived" ) java.lang.Integer peerId , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "token" , description = "Arbitrary token message to be sent to peer as part of data-path creation process" ) java.lang.String token ) { android.net.wifi.aware.WifiAwareDiscoveryBaseSession session ; synchronized ( mLock ) { session = mDiscoverySessions.get ( sessionId ) ; } if ( session == null ) { throw new java.lang.IllegalStateException ( ( ( "Calling WifiAwareStartRanging before session (session ID " + sessionId ) + " is ready" ) ) ; } byte [ ] bytes = token.getBytes ( ) ; return session.createNetworkSpecifier ( role , new android.net.wifi.aware.WifiAwareManager.OpaquePeerHandle ( peerId ) , bytes ) ; }

Target:
public java.lang.String wifiAwareCreateNetworkSpecifier ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "role" , description = "The role of the device: Initiator (0) or Responder (1)" ) java.lang.Integer role , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "sessionId" , description = "The session ID returned when session was created using publish or subscribe" ) java.lang.Integer sessionId , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "peerId" , description = "The ID of the peer (obtained through OnMatch or OnMessageReceived" ) java.lang.Integer peerId , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "token" , description = "Arbitrary token message to be sent to peer as part of data-path creation process" ) java.lang.String token ) { android.net.wifi.aware.WifiAwareDiscoveryBaseSession session ; synchronized ( mLock ) { session = mDiscoverySessions.get ( sessionId ) ; } if ( session == null ) { throw new java.lang.IllegalStateException ( ( ( "Calling WifiAwareStartRanging before session (session ID " + sessionId ) + " is ready" ) ) ; } byte [ ] bytes = token.getBytes ( ) ; return session.createNetworkSpecifier ( role , new android.net.wifi.aware.WifiAwareManager.PeerHandle ( peerId ) , bytes ) ; }
Source:
public void setKeepUninstalledPackages ( @ android.annotation.NonNull android.content.ComponentName admin , @ android.annotation.NonNull java.util.List < java.lang.String > packageNames ) { throwIfParentInstance ( "setKeepUninstalledPackages" ) ; if ( ( mService ) != null ) { try { mService.setKeepUninstalledPackages ( admin , packageNames ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } } }

Target:
public boolean isCallerApplicationRestrictionsManagingPackage ( ) { throwIfParentInstance ( "isCallerApplicationRestrictionsManagingPackage" ) ; if ( ( mService ) != null ) { try { return mService.isCallerApplicationRestrictionsManagingPackage ( mContext.getPackageName ( ) ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } } return false ; }
Source:
public boolean satisfiedByUids ( android.net.NetworkCapabilities nc ) { if ( null == ( nc.mUids ) ) return true ; if ( null == ( mUids ) ) return false ; for ( android.net.UidRange requiredRange : mUids ) { if ( ! ( nc.appliesToUidRange ( requiredRange ) ) ) { return false ; } } return true ; }

Target:
public boolean satisfiedByUids ( android.net.NetworkCapabilities nc ) { if ( null == ( nc.mUids ) ) return true ; if ( null == ( mUids ) ) return false ; for ( android.net.UidRange requiredRange : mUids ) { if ( requiredRange.contains ( nc.mEstablishingVpnAppUid ) ) return true ; if ( ! ( nc.appliesToUidRange ( requiredRange ) ) ) { return false ; } } return true ; }
Source:
public void screenTurningOn ( final com.android.internal.policy.impl.ScreenOnListener screenOnListener ) { android.util.EventLog.writeEvent ( 70000 , 1 ) ; if ( false ) { java.lang.RuntimeException here = new java.lang.RuntimeException ( "here" ) ; here.fillInStackTrace ( ) ; android.util.Slog.i ( com.android.internal.policy.impl.PhoneWindowManager.TAG , "Screen turning on..." , here ) ; } synchronized ( mLock ) { mScreenOnEarly = true ; updateOrientationListenerLp ( ) ; updateLockScreenTimeout ( ) ; } waitForKeyguard ( screenOnListener ) ; }

Target:
public void goingToSleep ( int why ) { android.util.EventLog.writeEvent ( 70000 , 0 ) ; if ( com.android.internal.policy.impl.PhoneWindowManager.DEBUG_WAKEUP ) android.util.Slog.i ( com.android.internal.policy.impl.PhoneWindowManager.TAG , "Going to sleep..." ) ; synchronized ( mLock ) { mAwake = false ; mKeyguardDrawComplete = false ; updateWakeGestureListenerLp ( ) ; updateOrientationListenerLp ( ) ; updateLockScreenTimeout ( ) ; } if ( ( mKeyguardDelegate ) != null ) { mKeyguardDelegate.onScreenTurnedOff ( why ) ; } }
Source:
public static < T > void runSizedTests ( java.util.Spliterator < T > spliterator , int expectedSize ) { junit.framework.Assert.assertEquals ( expectedSize , spliterator.estimateSize ( ) ) ; junit.framework.Assert.assertEquals ( expectedSize , spliterator.getExactSizeIfKnown ( ) ) ; }

Target:
public static < T > void runSizedTests ( java.util.Spliterator < T > spliterator , int expectedSize ) { junit.framework.Assert.assertTrue ( spliterator.hasCharacteristics ( java.util.Spliterator.SIZED ) ) ; junit.framework.Assert.assertEquals ( expectedSize , spliterator.estimateSize ( ) ) ; junit.framework.Assert.assertEquals ( expectedSize , spliterator.getExactSizeIfKnown ( ) ) ; }