Question: When Andy Dufresne was incarcerated, who did he befriend?
About the article "The Shawshank Redemption", section "Abstract".

Candidate passages:
Dufresne first played professionally in 1992 when he first played for the Valenciennes FC.
He was there for a full five years before he was transferred.
These years were not to be his last at Valenciennes FC. 
Season one.
Before the start of the season, Andy fell into a large construction pit and broke both his legs while, in an intoxicated state, attempting to retrieve a discarded toaster from the bottom of the pit.
Although Ann was unaware at first that he was drunk at the time of the fall, the incident inspires her to attend parks and recreation meetings to advocate the pit be filled in, which leads Ann to befriend parks deputy director Leslie Knope.
With both legs in casts, Andy is pampered by Ann, who brings him food and lets him play video games all day.
When the doctors inform Andy that the casts can be removed, Andy delays the removal for several weeks so he can continue receiving this treatment from Ann.
After the casts are removed Ann discovers the truth and becomes extremely angry with Andy, quickly leading to their break-up. 
  Tim Robbins as Andy Dufresne  Morgan Freeman as Ellis Boyd "Red" Redding, Andy's best friend and the film's narrator; convicted of murder in 1927.
Before Freeman was cast, Clint Eastwood, Harrison Ford, Paul Newman, and Robert Redford were each considered for the role.
Although written as a middle-aged Irishman with greying red hair (as in the novella), Darabont cast Freeman for his authoritative presence and demeanor; he could not see anyone else as Red.
The short dialogue with Andy is a jest towards this casting decision, as when asked about the origin of his nickname, Red answers, "Maybe it's because I'm Irish."
Bob Gunton as Warden Samuel Norton.
He is well versed in the Bible and presents himself as a pious, devout Christian and reform-minded administrator, while his actions reveal him to be corrupt, ruthless, and remorseless.
William Sadler as Heywood, a member of Red's gang of long-serving convicts.
Clancy Brown as Capt.
Byron Hadley, chief of the guards.
Hadley is a sadistic guard who thinks nothing of delivering beatings to the inmates to keep them in line.
When cast for the role, Brown declined the offer to study real-life prison guards as preparation for his role, because he did not want to base it on any one person.
Gil Bellows as Tommy Williams, a young convict whose experiences in a previous prison hold the truth about Andy's innocence.
Mark Rolston as Bogs Diamond, the head of "The Sisters" gang and a prison rapist.
James Whitmore as Brooks Hatlen, prison librarian/trustee and one of the oldest convicts at Shawshank, having been in prison since 1905.
Darabont cast Whitmore because he was one of his favorite character actors.
Jeffrey DeMunn as the prosecuting attorney in Andy Dufresne's trial.  
Season one.
At the start of the series, Ann Perkins was dating Andy Dwyer, her live-in boyfriend.
Ann matured faster than Andy did and, while Ann entered into a career in nursing, Andy remained lazy, spoiled and unemployed.
After Andy falls into a large pit next to her apartment and breaks his legs, Ann is inspired to attend parks and recreation meetings to advocate the pit be filled in, which leads Ann to befriend parks deputy director Leslie Knope.
Eventually, after Andy's leg casts are removed, Ann learns he could have taken them off weeks prior, but did not because he enjoyed being pampered and spoiled by Ann.
This leads to an angry confrontation, and eventually the two break up, much to Andy's despair. 
  Kurt Dussander remembers using a "bank in the State of Maine" to purchase stocks under an assumed name.
He goes on to say that the banker who bought them for Dussander went to jail for murdering his wife a year after he purchased them.
He even references Andy Dufresne by name — he remembers the name because "it sounds a little like mine."
Andy Dufresne is a central character in "Rita Hayworth and Shawshank Redemption", the novella preceding "Apt Pupil" in "Different Seasons".
When confronting Todd about his murders, Dussander mentions a serial killer named "Springheel Jack".
This killer is the focus of "Strawberry Spring", a short story published in the King collection "Night Shift" (1978).
The guidance counselor Ed French mentions his hotel room is number 217, the same as the famous Overlook Hotel room in King's "The Shining".
There is an incident with a blue jay in "Apt Pupil" that mirrors events in two other King novels.
Whilst cycling, Todd spots an injured blue jay on the ground, with its beak 'opening and closing' slowly.
The bird symbolizes Todd's innocence and his mother.
In "Roadwork", Barton George Dawes tells a similar story about owning a rifle to a story told by Audrey Wyler in "Desperation", In "Desperation", Audrey says "The year I was twelve, my old man gave me a .22.
The first thing I did was to go outside our house in Sedilia and shoot a jay.
When I went over to it, it was still alive, too.
It was trembling all over, staring straight ahead, and its beak was opening and closing, very slowly."
In "Roadwork", Dawes is thinking about .22 single-shot rifle he had as a boy.
"He (Dawes) had wanted that rifle for three years and when he finally got it he couldn't think of anything to do with it.
He shot at cans for a while, then shot a blue jay.
The jay hadn't been a clean kill.
It sat in the snow surrounded by a pink blood stain, its beak slowly opening and closing."
In all three stories the breed of bird is identical, as is the detail about the beak 'opening and closing' slowly.